[zeromq-dev] How to build the Java Binding...

Jeff Vienneau jpvienneau at gmail.com
Wed Apr 7 14:00:18 CEST 2010


Hi,

I am trying to build the Java msvc project and am getting an error with
context.cpp not being able to see the zmq.h. What is the proper placement of
the java binding project within the zmq project?

I placed it in the root of my zmq install. However I am not sure how the
msvc solution should be able to find the zmq includes folder in order to
resolve: #include <zmq.h>.

Thanks..

Here  is my build log:

1>------ Build started: Project: jzmq, Configuration: Debug Win32 ------
1>Compiling Java classes
1>        1 file(s) copied.
1>Generating JNI header
1>Generating JNI header
1>Generating JNI header
1>Compiling...
1>Context.cpp
1>c:\code\zmq\zeromq-2.0.6\java\src\context.cpp(23) : fatal error C1083:
Cannot open include file: 'zmq.h': No such file or directory
1>Poller.cpp
1>c:\code\zmq\zeromq-2.0.6\java\src\poller.cpp(23) : fatal error C1083:
Cannot open include file: 'zmq.h': No such file or directory
1>Socket.cpp
1>c:\code\zmq\zeromq-2.0.6\java\src\socket.cpp(24) : fatal error C1083:
Cannot open include file: 'zmq.h': No such file or directory
1>Generating Code...
1>Build log was saved at
"file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\jzmq\Debug\BuildLog.htm"
1>jzmq - 3 error(s), 0 warning(s)
2>------ Build started: Project: remote_lat, Configuration: Debug Win32
------
3>------ Build started: Project: local_lat, Configuration: Debug Win32
------
3>Compiling Java classes
2>Compiling Java classes
2>Build log was saved at
"file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\remote_lat\Debug\BuildLog.htm"
3>Build log was saved at
"file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\local_lat\Debug\BuildLog.htm"
2>remote_lat - 0 error(s), 0 warning(s)
3>local_lat - 0 error(s), 0 warning(s)
4>------ Build started: Project: local_thr, Configuration: Debug Win32
------
5>------ Build started: Project: remote_thr, Configuration: Debug Win32
------
5>Compiling Java classes
4>Compiling Java classes
5>Build log was saved at
"file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\remote_thr\Debug\BuildLog.htm"
4>Build log was saved at
"file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\local_thr\Debug\BuildLog.htm"
5>remote_thr - 0 error(s), 0 warning(s)
4>local_thr - 0 error(s), 0 warning(s)
========== Build: 4 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100407/77367699/attachment.html>


More information about the zeromq-dev mailing list