[kepler-dev] questions about matlab actor in snow leopard.

Jianwu Wang jianwu at sdsc.edu
Mon Apr 26 16:01:26 PDT 2010


Hi Chistopher,

    My machine is snow leopard (10.6.3, 64 bit), matlab 2009b 64 bit, 
Java 1.6 64 bit. I tried to use 'make' command in ptII/ptolemy/matlab 
directory to generate libptmatlab file. But it has the following error. 
I think it is because my matlab installation do not have maci directory, 
only have maci64 directory.  Do you think the problem is because of my 
installation or make file? Thanks.

    echo $DYLD_LIBRARY_PATH
/Applications/MATLAB64/MATLAB_R2009b/MATLAB_R2009b.app/bin/maci64:/Applications/MATLAB64/MATLAB_R2009b/MATLAB_R2009b.app/sys/os/maci64

kepler:matlab jianwu$ make
if [ "`uname -s`" = "Darwin" ]; then \
        make libptmatlabUniversal.jnilib; \
        mv libptmatlabUniversal.jnilib libptmatlab.jnilib; \
        file libptmatlab.jnilib; \
        else \
        CLASSPATH="../.." 
"/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/javah" 
-jni -o ptmatlab.h ptolemy.matlab.Engine; \
        "/usr/bin/gcc" -DPT_NO_ENGGETARRAY -DPT_NO_ENGPUTARRAY 
-DPT_NO_MXGETNAME \
        
"-I/Applications/MATLAB64/MATLAB_R2009b/MATLAB_R2009b.app/extern/include" \
        
"-I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/../Headers" 
\
        
"-I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/../include/darwin" 
\
        ptmatlab.cc -fno-exceptions -dynamiclib -o 
libptmatlab32.jnilib    
-L"/Applications/MATLAB64/MATLAB_R2009b/MATLAB_R2009b.app/bin/maci"  
-leng -lmx -lmex; \
        fi
CLASSPATH="../.." 
"/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/javah" 
-jni -o ptmatlab.h ptolemy.matlab.Engine
"/usr/bin/gcc" -DPT_NO_ENGGETARRAY -DPT_NO_ENGPUTARRAY -DPT_NO_MXGETNAME \
        
"-I/Applications/MATLAB64/MATLAB_R2009b/MATLAB_R2009b.app/extern/include" \
        
"-I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/../Headers" 
\
        
"-I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/../include/darwin" 
\
        ptmatlab.cc -fno-exceptions -dynamiclib -o 
libptmatlab32.jnilib    
-L"/Applications/MATLAB64/MATLAB_R2009b/MATLAB_R2009b.app/bin/maci"  
-leng -lmx -lmex
ld: warning: directory 
'/Applications/MATLAB64/MATLAB_R2009b/MATLAB_R2009b.app/bin/maci' 
following -L not found
ld: library not found for -leng
collect2: ld returned 1 exit status
make[1]: *** [libptmatlab32.jnilib] Error 1
mv: rename libptmatlabUniversal.jnilib to libptmatlab.jnilib: No such 
file or directory
libptmatlab.jnilib: cannot open `libptmatlab.jnilib' (No such file or 
directory)

-- 

Best wishes

Sincerely yours

Jianwu Wang
wangjianwu at gmail.com

Post-Doctor
Scientific Workflow Automation Technologies (SWAT) Laboratory
San Diego Supercomputer Center 
University of California, San Diego
San Diego, U.S.A. 



More information about the Kepler-dev mailing list