Mac OS X x86_64 smile binary

The engine.
Post Reply
dtodor
Posts: 13
Joined: Tue Feb 03, 2009 8:30 am

Mac OS X x86_64 smile binary

Post by dtodor »

Is there a plan to release a x86_64 binary for Mac OS X? Now that Java 6 is 64 bit, using jSmile requires to switch JVMs. Actually, I'm not quite sure whether it would be possible to create a 64 bit JNI library which uses the 32 bit version of smile.
mark
Posts: 179
Joined: Tue Nov 27, 2007 4:02 pm

Post by mark »

We can probably do that, but give us some time to organize this. I will get back to you in a couple of weeks with more information. In the meantime, you could try to create a 64 bit JNI library using the 32 bit version of SMILE.
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Re: Mac OS X x86_64 smile binary

Post by shooltz[BayesFusion] »

dtodor wrote:Is there a plan to release a x86_64 binary for Mac OS X?
We don't have the capability to produce x64 binary for OSX. We're building SMILE for this platform on virtualized Darwin 8.0; its compiler can only emit PPC or 32-bit x86.

If anybody can provide us with Darwin VM with 64-bit capable gcc, we can certainly build 64-bit binary :)
jliem
Posts: 8
Joined: Fri Sep 11, 2009 9:25 pm

Post by jliem »

I'm on Snow Leopard and just tried the compilation of jsmile with the "-arch i386" flag. It does compile, but smile does not run due to not being 64 bits (as far as I understand it, see below).

Our research project is playing with jsmile as a component, but I cannot run it anymore since I've upgraded to Snow Leopard. :(

What could we contribute for you to be able to build a 64 bits version on Darwin? What kind of OS are you on? What kind of virtual machine are you currently using?

jochem-liems-macbook-pro:src jliem$ ./build; ./verify
compiling java source
compiling JNI wrapper
ls: *.so: No such file or directory
-rw-r--r-- 1 jliem staff 33166 Nov 20 11:29 smile.jar
*** testing DeMorgan nodes
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/jliem/Garp3/VirtualCharacters/BehaviorEngine/src/java/libjsmile.jnilib: no suitable image found. Did find: /Users/jliem/Garp3/VirtualCharacters/BehaviorEngine/src/java/libjsmile.jnilib: mach-o, but wrong architecture
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1795)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at smile.Wrapper.<clinit>(Wrapper.java:28)
at testApp.testDeMorgan(testApp.java:58)
at testApp.main(testApp.java:20)
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Post by shooltz[BayesFusion] »

jliem wrote:What could we contribute for you to be able to build a 64 bits version on Darwin?
VMWare image of Darwin or OSX with JDK installed and gcc version with the support for targetting x64.
jliem
Posts: 8
Joined: Fri Sep 11, 2009 9:25 pm

Post by jliem »

I've been investigating the possibility of running Darwin 10 or OSX 10.6 (Snow Leopard) in a virtual machine. I think this is currently difficult.

People have gotten OSX 10.6 to run in VMWare on the Mac [1], but not on other platforms as far as I found. Even on a Mac this breaks the EULA.

Darwin 10 also does not seem to be a solution. Apple only provides the sources of the applications. There are attempts to create usable binaries, but currently only release based on Darwin 9 [2].

I would very much like to keep using Smile in our research project [3]. Is there perhaps another solution to produce a binary? I could for example compile an obfuscated version of the code, or provide SSH access to my laptop for a day.

[1] http://forums.mactalk.com.au/11/72594-s ... ation.html
[2] http://en.wikipedia.org/wiki/Darwin_(op ... PureDarwin
[3] http://www.dynalearn.eu
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Post by shooltz[BayesFusion] »

I was able to build for x64, but can't verify if it runs correctly (my current platform only supports cross-compiles to 64-bit). You can download the file at http://genie.sis.pitt.edu/download/jsmi ... x64.tar.gz
jliem
Posts: 8
Joined: Fri Sep 11, 2009 9:25 pm

Post by jliem »

Thanks for providing this x64 build. I've only done some minor testing, but it seems to work fine.

Many thanks for the effort!
Post Reply