Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

translating a build script for JNI for linux to JNI for OS X



Dear all,

I'm beside myself with confusion...which is not all that unusual.

I'm trying to compile a JNI wrapper for a third party library. The source code for the JNI wrapper exists as does a build file but it's for linux. Additionally, the compiled binaries for the actual code exist for OS X.

However, I cannot even begin to figure out how to make this work on OS X. I have the following command:

echo compiling JNI wrapper
g++ -O3 -DNDEBUG -feliminate-unused-debug-symbols -fpic -s -shared -o libjsmile.so ../*.cpp -I$JINC -I$JINC/linux -I../cppsmile -L../cppsmile -lsmilearn -lsmile

and I don't know how to translate it into OS X speak.

For the full code, the binaries and source are here:


and the source for the JNI wrapper is here:


I put the binaries into the cppsmile directory of the jsmile_src.

Any pointers would be helpful. I would suppose that most of the work has been done for me and I just need to figure out the incantation for g++ (ie, I don't need to put all of this stuff into an XCode JNI project). However, if that would be easier...that's great, too.

I would also love to contribute the solution back to this project.

Cheers,
Steve


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.