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:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
or
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
conan install . -if build -s build_type=Release --build=missing -pr conan/profiles/vs64
conan build . -bf build
conan install . -if build -s build_type=Release --build=missing -pr conan/profiles/vs32
conan build . -bf build
The windows XP 140 XP toolchain needs to be installed under individual component in the Visual Studio 2019 installer.
conan install . -s build_type=Release --build=missing -pr conan/profiles/vsxp
conan build . -bf build
cpack -G ZIP