Re: [Quickfix-developers] Newbie: Building QuickFIX with Java on Linux
Brought to you by:
orenmnero
|
From: Shepheard, T. \(London\) <Tob...@ml...> - 2007-08-08 17:41:30
|
A few thoughts: *) The error combined with the lack of any -I$JAVA_HOME type entry in the make snippet below, suggests to me the configure isn't pulling in the Java includes for some reason. Your configure logs may have a clue in them as to why that is. I haven't written a makefile for 8 years so won't try guessing much further without something more to go on! *) Try with Java 1.4 (doubt that's the problem though) *) Have you got the latest autoconf / automake / libtool? I guess with Feisty Fawn you're probably fairly up to date *) Have you considered using QuickFix/J (pure Java implementation) instead? Bit of a cop-out answer but it's a lot simpler if you want to use Java! Regards Toby -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Ryan Jazayeri Sent: 07 August 2007 19:05 To: qui...@li... Subject: [Quickfix-developers] Newbie: Building QuickFIX with Java on Linux QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Hello, I am running Linux (Ubuntu 7.04 Feisty Fawn). My gcc version is 4.1.2, and java version is 1.6.0.=20 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=3DCXX --mode=3Dcompile 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?=20 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?=20 -RJ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers -------------------------------------------------------- This message w/attachments (message) may be privileged, confidential or = proprietary, and if you are not an intended recipient, please notify the = sender, do not use or share it and delete it. Unless specifically = indicated, this message is not an offer to sell or a solicitation of any = investment products or other financial product or service, an official = confirmation of any transaction, or an official statement of Merrill = Lynch. Subject to applicable law, Merrill Lynch may monitor, review and = retain e-communications (EC) traveling through its networks/systems. The = laws of the country of each sender/recipient may impact the handling of = EC, and EC may be archived, supervised and produced in countries other = than the country in which you are located. This message cannot be = guaranteed to be secure or error-free. This message is subject to terms = available at the following link: = http://www.ml.com/e-communications_terms/. By messaging with Merrill = Lynch you consent to the foregoing. -------------------------------------------------------- |