Building 0.3.12 Java SWIG in Mac OS X
Posted by Ken Anderson-2 on Apr 26, 2006; 8:51am
URL: http://quantlib.414.s1.nabble.com/Building-0-3-12-Java-SWIG-in-Mac-OS-X-tp4745.html
I'm having a very hard time getting a compiled and linked version of
quantlib_wrap.cpp in the Java directory of the SWIG project.
Whenever I try to make, it says there's nothing to make in the Java
directory:
Making all in CSharp
make all-am
make[2]: Nothing to be done for `all-am'.
Making all in Guile
make all-am
make[2]: Nothing to be done for `all-am'.
Making all in Java
make all-am
make[2]: Nothing to be done for `all-am'.
All the boost libraries and quantlib libraries (static only) are
built into /usr/local/lib with headers in /usr/local/include.
I've tried all manner of combinations of compiler flags to get this
to work. I can get it to successfully compile into a .o, but I
cannot get it to output a jnilib file. Has anyone gotten this to
work on any Unix flavor?
By the way, I get 3.11 to link with this:
g++ -dynamiclib -l QuantLib -l QuantLibFunctions -l QuantLib-0.3.11 -
o libQuantLibJNI.jnilib quantlib_wrap.o -framework JavaVM
Thanks,
Ken