Menu

#879 Autoconf mangling MATLAB configuration on MacOSX

Knothole Post
assigned
None
none
build
blocker
3.1
defect
2016-05-15
2014-08-16
No

See the following output from 'make':

/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./core  -IATLAB -e | grep ^MATLAB= | cut -f2 -d=/extern/include -I./core -DHAVE_CURSES -D_NO_CPPUNIT -DHAVE_MATLAB -DHAVE_MYSQL  -D_THREAD_SAFE -pthread  -g -O2 -MT core/link/matlab/core_link_matlab_glxmatlab_la-matlab.lo -MD -MP -MF core/link/matlab/.deps/core_link_matlab_glxmatlab_la-matlab.Tpo -c -o core/link/matlab/core_link_matlab_glxmatlab_la-matlab.lo `test -f 'core/link/matlab/matlab.cpp' || echo './'`core/link/matlab/matlab.cpp
cut: bad delimiter
libtool: compile: cannot determine name of library object from `-e'
make[1]: *** [core/link/matlab/core_link_matlab_glxmatlab_la-matlab.lo] Error 1
make: *** [all] Error 2

Discussion

  • David P. Chassin

    • status: new --> assigned
     
  • David P. Chassin

    A temporary fix is to directly patch the Makefile:

    MATLAB = /Applications/MATLAB_R2014a.app
    MATLAB_CPPFLAGS = -I${MATLAB}/extern/include
    MATLAB_LDFLAGS = -L${MATLAB}/sys/os/maci64 -L${MATLAB}/Contents/MacOS -L${MATLAB}/bin/maci64 -L${MATLAB}/extern/lib/maci64 -L${MATLAB}/sys/java/jre/maci64/jre/lib/native_threads -L${MATLAB}/sys/java/jre/maci64/jre/lib/server -L${MATLAB}/sys/java/jre/maci64/jre/lib/jli
    MATLAB_LDPATH = ${MATLAB}/bin/maci64
    MATLAB_LIBS = -lmx -leng
    
     
  • David P. Chassin

    • Owner: Nathan Tenney --> David P. Chassin
    • Milestone: Version 3.1 RC1 --> Unscheduled
     
  • David P. Chassin

    • Milestone: Unscheduled --> Knothole Post