[kepler-dev] [Bug 5346] Kepler 2.2r3 Mac OS 64-bit Matlab demo fails with 'no suitable image found'

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Sat May 14 08:12:04 PDT 2011


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5346

--- Comment #10 from Christopher Brooks <cxh at eecs.berkeley.edu> 2011-05-14 08:12:03 PDT ---
The attachment was built under Mac OS X 10.5.8 by running
cd $PTII/ptolemy/matlab
make clean
make

The commands were:
# Making 32 and 64 bit Universal Library libptmatlabUniversal.jnilib and then
copying to libptmatlab.jnilib
CLASSPATH="../.." "/usr/bin/javah" -jni -o ptmatlab.h ptolemy.matlab.Engine
"/usr/bin/gcc" -DPT_NO_ENGGETARRAY -DPT_NO_ENGPUTARRAY -DPT_NO_MXGETNAME
-DHAVE_MALLOC_SIZE \
        "-I/Applications/MATLAB_R2009b.app/extern/include" \
        "-I/System/Library/Frameworks/JavaVM.framework/Headers" \
       
"-I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../include/darwin"
\
        ptmatlab.cc -fno-exceptions -dynamiclib -o libptmatlab32.jnilib   
-L"/Applications/MATLAB_R2009b.app/bin/maci"  -leng -lmx -lmex
CLASSPATH="../.." "/usr/bin/javah" -jni -o ptmatlab.h ptolemy.matlab.Engine
"/usr/bin/gcc" -DPT_NO_ENGGETARRAY -DPT_NO_ENGPUTARRAY -DPT_NO_MXGETNAME
-DHAVE_MALLOC_SIZE -m64 \
        "-I/Applications/MATLAB_R2009b.app/extern/include" \
        "-I/System/Library/Frameworks/JavaVM.framework/Headers" \
       
"-I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../include/darwin"
\
        ptmatlab.cc -fno-exceptions -dynamiclib -o libptmatlab64.jnilib   
-L"/Applications/MATLAB_R2009b.app/bin/maci64"  -leng -lmx -lmex;
# Creating libptmatlabUniversal.jnilib from libptmatlab32.jnilib
libptmatlab64.jnilib
lipo -create -arch i386 libptmatlab32.jnilib -arch x86_64 libptmatlab64.jnilib
-o libptmatlabUniversal.jnilib
# The file command reports that libptmatlab.jnilib is: 
libptmatlab.jnilib: Mach-O universal binary with 2 architectures
libptmatlab.jnilib (for architecture i386):    Mach-O dynamically linked shared
library i386
libptmatlab.jnilib (for architecture x86_64):    Mach-O 64-bit dynamically
linked shared library x86_64



Note that it was built with Matlab R2009b.  There could be compatibility
issues between different versions of Matlab.

Also, I'm building with the 64-bit Java 1.6.  Both 32-bit and 64-bit
versions of the library are generated, I have not tried the 32-bit version.

FWIW, it looks like Matlab is available for $115 for research use:
http://software.engineering.ucdavis.edu/

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list