Build

These pages document building ØMQ in different exotic environments. To get edit access, first join this site. All contributions fall under the Terms of Use of this site.


Android (Edit) By martin_sustrik 10 Dec 2011 14:34
Cross-compiling for ARM (Edit) By pieterh 11 Apr 2013 09:22
Building ZeroMQ with encryption support (Edit) By frankzmq 07 Mar 2016 10:42
iOS (Edit) By martin_sustrik 15 Jan 2012 22:59
MinGW (Edit) By martin_sustrik 10 Dec 2011 14:43
Cross-compiling for PowerPC (Edit) By frankzmq 07 Mar 2016 10:35
Linux on Sparc (Edit) By martin_sustrik 10 Dec 2011 14:41

Building in Windows

Building in Windows can be done using DevStudio 2008, DevStudio 2010, DevStudio 2012, DevStudio 2013 and DevStudio 2015.

First, get the source code to a working directory:

cd /d e:\git
git clone https://github.com/zeromq/libzmq.git

Then, start a CMD.EXE window using the DevStudio you want to build using from DevStudio Tools.
Then execute the commands below:

cd libzmq\builds\msvc\build
./build.bat

In order to have the option to build with libsodium, it must be cloned to a sibling directory:

git clone https://github.com/jedisct1/libsodium

Using build.bat will build for all targets and platforms in the solution file.
If you prefer to build just one specific target, open the solution file for your target DevStudio version and build it from there.

e:\git\libzmq\builds\msvc>dir/s/b *.sln
e:\git\libzmq\builds\msvc\vs2008\libzmq.sln
e:\git\libzmq\builds\msvc\vs2010\libzmq.sln
e:\git\libzmq\builds\msvc\vs2012\libzmq.sln
e:\git\libzmq\builds\msvc\vs2013\libzmq.sln
e:\git\libzmq\builds\msvc\vs2015\libzmq.sln

Options to build with sodium, tweet, draftapi, gssapi and openpgm are available in Visual Studio in the ZMQ Options property page.