[zeromq-dev] Compilation Errors while compiling the source code for Java API

Martin Sustrik sustrik at 250bpm.com
Sat Jun 5 15:55:27 CEST 2010


Hi,

I've just fixed the java binding to comply with 0MQ/2.0.7.

Try getting the source from github now.

Martin


Sudhakar Nagireddy wrote:
> Hi,
> 
> I am getting the following error while compiling the 0MQ source code for 
> Java API on Fedora Core 11 64bit arch. It cannot find the file 
> org_zeromq_ZMQ_Context.h. Does any one know how to fix this problem?
> 
> Thanks,
> Sudhakar
> 
> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   
> -D_REENTRANT -D_THREAD_SAFE  -I/usr/java/jdk1.6.0_18/include 
> -I/usr/java/jdk1.6.0_18/include/linux -Wall -g -O2 -MT 
> libjzmq_la-Context.lo -MD -MP -MF .deps/libjzmq_la-Context.Tpo -c -o 
> libjzmq_la-Context.lo `test -f 'Context.cpp' || echo './'`Context.cpp
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE 
> -I/usr/java/jdk1.6.0_18/include -I/usr/java/jdk1.6.0_18/include/linux 
> -Wall -g -O2 -MT libjzmq_la-Context.lo -MD -MP -MF 
> .deps/libjzmq_la-Context.Tpo -c Context.cpp  -fPIC -DPIC -o 
> .libs/libjzmq_la-Context.o
> Context.cpp:27:36: error: org_zeromq_ZMQ_Context.h: No such file or 
> directory
> /usr/local/include/zmq.h: In function âvoid 
> Java_org_zeromq_ZMQ_00024Context_construct(JNIEnv*, _jobject*, jint, 
> jint, jint)â:
> /usr/local/include/zmq.h:147: error: too many arguments to function 
> âvoid* zmq_init(int)â
> Context.cpp:57: error: at this point in file
> make[2]: *** [libjzmq_la-Context.lo] Error 1
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list