zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.75k stars 2.36k forks source link

How to build with libsodium.a and libpgm_noinst.a? #1294

Closed metadings closed 9 years ago

metadings commented 9 years ago

A breaking change to 4.1 is also that the zmq_msg_t has a size of 48 bytes! I got killed by SIGSEGV!

The libpgm is built, however the flag pgm_LIBS is just ignored or whatever. It says "No package 'openpgm-5.2' found." How do I include the openpgm library now?

metadings commented 9 years ago

I got it for Windows in VS2010, setting

(under ZeroMQ Options) openpgm = yes
C/C++ additional includedirectories = $(ProjectDir)\..\..\..\..\..\openpgm\pgm\include\
Linker additional librarypaths = $(ProjectDir)\..\..\..\..\..\openpgm\pgm\build\lib\Debug\
Linker additional dependencies = libpgm.lib

Now going to Linux... I got it, using

./configure --with-libsodium --with-pgm
    sodium_CFLAGS="-I/home/metadings/Documents/libsodium/src/libsodium/include/"
    sodium_LIBS=/home/metadings/Documents/libsodium/src/libsodium/.libs/libsodium.a
    pgm_CFLAGS="-I/home/metadings/Documents/libpgm/openpgm/pgm/include"
    pgm_LIBS=/home/metadings/Documents/libpgm/openpgm/pgm/.libs/libpgm.a
jemc commented 9 years ago

Thanks for posting the solution for future readers.