Installation procedure for running MTConnect Agent on Windows.
The windows binary releases come with a prebuilt exe that is statically linked with the Microsoft Runtime libraries.
Aside from the standard system libraries, the agent only requires winsock libraries. The agent has been test with version of Windows 2000 and later.
You can download the C++ Agent toolkit - Pre-built binaries here: C++ Agent Windows Binaries
If instead of using the pre built binaries you would like to build the Agent yourself on Windows then follow this section.
The MTConnect Agent uses the conan package manager to install dependencies:
python 3 and Conan Package Manager Downloads
Download the Windows installer for your platform and run the installer.
You also need git and ruby if you want to embed mruby.
CMake is installed as part of Visual Studio. If you are using Visual Studio for the build, use the bundled version. Otherwise download from CMake.
Install dependencies from the downloads above. Make sure python, ruby, and cmake are in your path.
pip install --upgrade pip
pip install conan
Clone the agent to another directory:
git clone https://github.com/mtconnect/cppagent.git
Make a build subdirectory of cppagent
cd cppagent
conan export conan\mqtt_cpp
conan export conan\mruby
Make sure to setup the environment For VS 2022:
"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars64.bat"
conan build . --build=missing -pr conan/profiles/vs64
OR
conan build . --build=missing -pr conan/profiles/vs64debug
or
"C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
conan build . --build=missing -pr conan/profiles/vs64
OR
conan build . --build=missing -pr conan/profiles/vs64debug
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars32.bat"
conan build . --build=missing -pr conan/profiles/vs32
The windows XP 140 XP toolchain needs to be installed under individual component in the Visual Studio 2022 installer.
conan install . --build=missing -pr conan/profiles/vsxp
cpack -G ZIP