On Thu, Feb 10, 2011 at 2:54 PM, Vick Khera <[email protected]> wrote: > On Thu, Feb 10, 2011 at 9:23 AM, Pieter Hintjens <[email protected]> wrote: >> To continue the ZFL updates, the library now builds on Windows (MS >> Visual Studio 2008, at least). >> > > Trying to build ZFL on FreeBSD 7.2 against current (few minutes ago) > git version of libzmq. > > First problem: the configure script does not look in /usr/local/lib > (default install directory for libzmq) when testing for zmq_init > existence. > > Once past that (hand hacked the configure script to look in > -L/usr/local/lib), the src/Makefile hard-codes -DLINUX in the > CPPFLAGS, causing build error when looking for mcheck.h. > > Once past that (hand-hacked to change to -DFreeBSD), I get this: > > zfl_config_json.c:29:17: error: zmq.h: No such file or directory > > Once past that (hand hack src/Makefile to add -I/usr/local/include to > INCLUDES), I get this: > > /usr/bin/ld: cannot find -lzmq > > The fix for which is to edit src/Makefile and add -L/usr/local/lib to LIBS. > > Finally repeat all three hacks above in the examples/Makefile as well.
Hello, you should be able to run configure with: CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure This is not ideal but should do the trick without having to edit Makefiles. -- Mikko Koppanen _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
