At this moment, compilation has been tested on Windows 7&10, and is supported when using Visual Studio 2013. Patches for other versions are welcome.
Using a combination of pre-compiled binaries and self-compiled dependencies in a
local workspace. To make things easier, use a MinGW shell for your editing work,
and only use the Windows cmd
for configuring and building. You might also
need to disable the Windows firewall.
-
Install cmake, make sure to select the "Add CMake to system path for all users" option in the install dialog box.
-
Make a directory to work in, e.g.:
mkdir ign-ws cd ign-ws
-
Download the following dependencies into that directory:
Choose one of these options:
-
Unzip each of them. The Windows unzip utility will likely create an incorrect directory structure, where a directory with the name of the zip contains the directory that has the source files. Here is an example:
ign-ws/cppzmq-noarch/cppzmq
The correct structure is
ign-ws/cppzmq
To fix this problem, manually move the nested directories up one level.
-
Clone and prepare the Ignition Math dependency:
git clone https://github.com/ignitionrobotics/ign-math cd ign-math mkdir build
-
In a Windows Command Prompt, load your compiler setup, e.g.:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
-
In the Windows Command Promp, configure and build:
cd ign-math\build ..\configure nmake install
-
Clone and prepare the Ignition Msgs dependency:
git clone https://github.com/ignitionrobotics/ign-msgs cd ign-msgs mkdir build
-
In the Windows Command Prompt, configure and build:
cd ign-msgs\build ..\configure nmake install
-
Clone ign-transport:
git clone https://github.com/ignitionrobotics/ign-transport cd ign-transport mkdir build
-
In the Windows Command Prompt, configure and build:
cd ign-transport\build ..\configure nmake install
You should now have an installation of ign-transport in ign-ws/ign-transport/build/install.
-
Before running any executables, you need to modify your
PATH
to include the directories including your DLL dependencies to let Windows find dynamic libs (similar toLD_LIBRARY_PATH
on Linux). Don't put quotes around the path, even if it contains spaces. E.g., if you're working inC:\My Stuff\ign-ws
:set PATH=%PATH%;C:\My Stuff\ign-ws\ZeroMQ 4.0.4\bin;C:\My Stuff\ign-ws\ign-msgs\build\install\Release\lib
-
Now build the examples:
cd ign-ws\ign-transport\example mkdir build cd build ..\configure nmake
-
Now try an example:
-
In one Windows terminal run:
responser
-
In another Windows terminal run:
requester
-
-
In the Windows Command Prompt, run the test suite:
cd ign-transport\build ctest