[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
Fri Mar 11 10:09:41 PST 2011


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

--- Comment #5 from Christopher Brooks <cxh at eecs.berkeley.edu> 2011-03-11 10:09:40 PST ---
I'm having Matlab licensing problems, but when I run
$PTII/bin/vergil
$PTII/ptolemy/matlab/demo/MatlabExpression/MatlabExpression.xml
I get a Matlab splash screen that wants my licensing info.

I can't tell if my Matlab is 32 or 64 bit right now.  I'll work on that.

My ~/.MacOSX/environment.plist is
{
    "DYLD_LIBRARY_PATH" =
"/Users/cxh/ptII/vendors/misc/dbxml-2.5.16/install/lib:/Applications/MATLAB_R2009b.app/bin/maci:/Applications/MATLAB_R2009b.app/bin/maci64:/Applications/MATLAB_R2009b.app/sys/os/maci";
    PATH =
"/Users/cxh/ptII/vendors/misc/dbxml-2.5.16/install/bin:/Users/cxh/bin:/Users/cxh/ptII/bin:/usr/local/apache-maven/bin:/opt/subversion/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/usr/local/texlive/2007/bin";
}

DYLD_LIBRARY_PATH in my bash process is:

bash-3.2$ echo $DYLD_LIBRARY_PATH
/Users/cxh/ptII/vendors/misc/dbxml-2.5.16/install/lib:/Applications/jprofiler5_2_4/bin/macos:/Applications/MATLAB_R2009b.app//bin/maci/:/Applications/MATLAB_R2009b.app//bin/maci64/:/Users/cxh/ptII/lib/Users/cxh/ptII/lib:/Applications/MATLAB_R2009b.app/sys/os/maci/:/Applications/MATLAB_R2009b.app/sys/os/maci64

Interestingly, in Ptolemy under $PTII/bin/vergil
View ->JVM Properties yields the following value for 
java.library.path

java.library.path =
/Users/cxh/ptII/lib:/Users/cxh/ptII/vendors/misc/dbxml-2.5.16/install/lib:/Applications/jprofiler5_2_4/bin/macos:/Applications/MATLAB_R2009b.app//bin/maci/:/Applications/MATLAB_R2009b.app//bin/maci64/:/Users/cxh/ptII/lib/Users/cxh/ptII/lib:/Applications/MATLAB_R2009b.app/sys/os/maci/:/Applications/MATLAB_R2009b.app/sys/os/maci64:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java


However, when I run "ant run" in the development tree, I java.library.path
is:


java.library.path =
/Users/cxh/src/kepler/r/lib:/Users/cxh/src/kepler/common/lib:/Users/cxh/src/kepler/common/lib/ptolemy/matlab

Kepler-2.2rc3 has this value:

java.library.path =
/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/r-2.2.0/lib:/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/common-2.2.0/lib:/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/common-2.2.0/lib/ptolemy/matlab:/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/ptolemy-8.1.0/lib/ptolemy-lib

What's odd is that the DYLD_LIBRARY_PATH settings from
.MacOSX/environment.plist
are not included in the value of java.library.path.  Perhaps these
lines in

./build-area/src/org/kepler/build/Run.java:  

        java.createJvmarg()
                .setLine("-Djava.library.path=\"" + new LibPath() + "\"");
are causing problems?

I don't know why this would work for Jianwu and not for me.

It is my impression that JNI needs to have access to the Matlab
shared libraries some how.  Usually this is done by setting DY_LDLIBRARY_PATH
under Mac OS X, and this value gets propagated to java.library.path.
However, I believe that the JVM looks in other directories for shared
libraries.  I'm not sure what directories this would be for Mac OS X.

Does the Matlab interface work for anyone under Mac OS 10.5?

I have some other tasks to which I must attend, but I can see about 
narrowing down the .MacOSX/environment.plist settings sometime over the
weekend.

-- 
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