[Quickfix-developers] Newbie: Building QuickFIX with Java on Linux
Brought to you by:
orenmnero
|
From: Ryan J. <rj...@fx...> - 2007-08-07 18:05:26
|
Hello, I am running Linux (Ubuntu 7.04 Feisty Fawn). My gcc version is 4.1.2, and java version is 1.6.0. I am trying to build QuickFIX with Java. Following the online documentation, I run: ./bootstrap ./configure --with-java make The 'bootstrap' and 'configure' both seem to work. But when I run 'make', it breaks with the following (excerpt of) error message: ... make[4]: Leaving directory `/home/jaz/quickfix/quickfix/src/java/src' make[4]: Entering directory `/home/jaz/quickfix/quickfix/src/java' /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -g -O2 -Wall -ansi -Wpointer-arith -Wwrite-strings -I/usr/include/libxml2 -I/include -I/include/linux -MT JVM.lo -MD -MP -MF .deps/JVM.Tpo -c -o JVM.lo JVM.cpp g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -g -O2 -Wall -ansi -Wpointer-arith -Wwrite-strings -I/usr/include/libxml2 -I/include -I/include/linux -MT JVM.lo -MD -MP -MF .deps/JVM.Tpo -c JVM.cpp -fPIC -DPIC -o .libs/JVM.o In file included from JVM.cpp:28: JVM.h:22:17: error: jni.h: No such file or directory JVM.h:51: error: 'JNIEnv' has not been declared JVM.h:52: error: 'JavaVM' has not been declared JVM.h:52: error: 'static void JVM::set(int*)' cannot be overloaded ... ... It seems to me that g++ cannot find the file jni.h. What do I need to do to get g++ to find jni.h? My $JAVA_HOME is /usr/lib/jvm/java-6-sun ; the jni file is located here: /usr/lib/jvm/java-6-sun/include/jni.h Any ideas? -RJ |