mex cc file in ubuntu

조회 수: 4 (최근 30일)
zhang
zhang 2013년 8월 31일
I've download some code online. The makefile is like following:
all: cascade
cascade: cascade.cc model.cc model.h
mex -o cascade \
CXXFLAGS="\$$CXXFLAGS -O3 -march=nocona -fomit-frame-pointer" \
cascade.cc model.cc
clean:
rm *.mex*
I use command !make to run in matlab. But it gives me the following error:
mex -O cascade \
CXXFLAGS="\$CXXFLAGS -O3 -march=nocona -fomit-frame-pointer" \
cascade.cc model.cc
/bin/sh: 1: mex: not found
make: *** [cascade] Error 127
I go to /bin/sh of my system. There is no `mex` indeed. What should I do to add `mex` to /bin/sh.
Thanks

채택된 답변

Walter Roberson
Walter Roberson 2013년 8월 31일
Look in the "bin" directory under the directory you installed MATLAB into. Add that directory to your Linux path.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by