[kepler-dev] questions about matlab actor in snow leopard.
Christopher Brooks
cxh at eecs.berkeley.edu
Mon Apr 26 16:42:52 PDT 2010
Hi Jianwu,
I just updated $PTII/ptolemy/ptolemy/makefile so that it will build
either
* 32bit
* 64bit
* Universal (32bit and 64bit).
If you have a chance, please update your tree and rerun "make".
Thanks,
_Christopher
On 4/26/10 4:01 PM, Jianwu Wang wrote:
> 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)
>
--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670
More information about the Kepler-dev
mailing list