Ok, I checked the current source, and everything almost works. This is a small
patch that just fixes the shared object name and the path to the jni headers for
darwin-i686.
I was able to compile all the targets with a simple make (from x86-64 linux),
and this is the result:
file `find . -type f -executable | grep -v '\.pl$'`
./mswin-amd64/jjmpeg.dll: PE32+ executable (DLL) (console) x86-64, for MS
Windows
./linux-amd64/libjjmpeg.so: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked, not stripped
./darwin-amd64/libjjmpeg.dylib: Mach-O 64-bit dynamically linked shared library
./mswin-i386/jjmpeg.dll: PE32 executable (DLL) (console) Intel 80386, for
MS Windows
./linux-i386/libjjmpeg.so: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked, not stripped
./darwin-i386/libjjmpeg.dylib: Mach-O dynamically linked shared library i386
I can not test now since I don't have access to a mac at the moment, but I think
that for native compilation on mac you should just set CROSS variable to the
empty string in darwin-i386/Makefile and darwin-amd64/Makefile.
If you want to crosscompile you need to set up a darwin cross compiler, but this
is a little bit a pain (you need to copy the osx SDK installation from a mac,
compile Apple's binutils and that doesn't work out of the box, then compile gcc...)
Giulio
Il 01/08/2012 05:16, Michael Zucchi ha scritto:
>