Giter Club home page Giter Club logo

Comments (4)

albarji avatar albarji commented on July 20, 2024

Well, honestly I have no idea what is going on there. I do not own a Mac, so I can't really debug into this. I know the Python interface for proxTV works under MacOS (Travis tests are passing), but I'm afraid the Matlab interface has only been tested under Ubuntu.

The error traces above seem a macOS problem. What error do you get under Ubuntu? Can you provide more information about your system?

from proxtv.

vinith1 avatar vinith1 commented on July 20, 2024

I get similar Error on Ubuntu. I am using MATLAB 2018b with gcc 7.3.0 and Ubuntu 18

The Error message is
/usr/bin/g++ -c -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I"/usr/local/MATLAB/R2018b/extern/include" -I"/usr/local/MATLAB/R2018b/simulink/include" -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -fopenmp -O3 "/home/vinith/Desktop/proxTV-master/matlab/solveTV1_condat.cpp" -o /tmp/mex_5293994932119778_9874/solveTV1_condat.o
/usr/bin/g++ -c -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I"/usr/local/MATLAB/R2018b/extern/include" -I"/usr/local/MATLAB/R2018b/simulink/include" -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -fopenmp -O3 "/usr/local/MATLAB/R2018b/extern/version/cpp_mexapi_version.cpp" -o /tmp/mex_5293994932119778_9874/cpp_mexapi_version.o
/usr/bin/g++ -pthread -Wl,--no-undefined -fopenmp -shared -O -Wl,--version-script,"/usr/local/MATLAB/R2018b/extern/lib/glnxa64/c_exportsmexfileversion.map" /tmp/mex_5293994932119778_9874/solveTV1_condat.o /tmp/mex_5293994932119778_9874/cpp_mexapi_version.o "*.o" -lblas -llapack -lm -Wl,--as-needed -Wl,-rpath-link,/usr/local/MATLAB/R2018b/bin/glnxa64 -L"/usr/local/MATLAB/R2018b/bin/glnxa64" -Wl,-rpath-link,/usr/local/MATLAB/R2018b/extern/bin/glnxa64 -L"/usr/local/MATLAB/R2018b/extern/bin/glnxa64" -lMatlabDataArray -lmx -lmex -lmat -lm -lstdc++ -o solveTV1_condat.mexa64
Error using mex
g++: error: *.o: No such file or directory

Error in install (line 34)
mex -v -cxx -lblas -llapack -lm CXXOPTIMFLAGS=-O3 CXXFLAGS="$CXXFLAGS -fopenmp" LDFLAGS="$LDFLAGS -fopenmp" solveTV1_condat.cpp "*.o"

from proxtv.

mwaldron104 avatar mwaldron104 commented on July 20, 2024

Seeing the same error on RHEL-7 using gcc 6.3.0 and MATLAB 2019a

/usr/bin/g++ -c -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I"/nas/longleaf/apps/matlab/2019a/extern/include" -I"/nas/longleaf/apps/matlab/2019a/simulink/include" -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -fopenmp -O3 "/nas/longleaf/apps/matlab/2019a/src/proxTV-master/matlab/solveTV1_condat.cpp" -o /tmp/mex_57507958252673322_88083/solveTV1_condat.o
/usr/bin/g++ -c -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I"/nas/longleaf/apps/matlab/2019a/extern/include" -I"/nas/longleaf/apps/matlab/2019a/simulink/include" -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -fopenmp -O3 "/nas/longleaf/apps/matlab/2019a/extern/version/cpp_mexapi_version.cpp" -o /tmp/mex_57507958252673322_88083/cpp_mexapi_version.o
/usr/bin/g++ -pthread -Wl,--no-undefined -fopenmp -shared -O -Wl,--version-script,"/nas/longleaf/apps/matlab/2019a/extern/lib/glnxa64/c_exportsmexfileversion.map" /tmp/mex_57507958252673322_88083/solveTV1_condat.o /tmp/mex_57507958252673322_88083/cpp_mexapi_version.o "*.o" -lblas -llapack -lm -Wl,--as-needed -Wl,-rpath-link,/nas/longleaf/apps/matlab/2019a/bin/glnxa64 -L"/nas/longleaf/apps/matlab/2019a/bin/glnxa64" -Wl,-rpath-link,/nas/longleaf/apps/matlab/2019a/extern/bin/glnxa64 -L"/nas/longleaf/apps/matlab/2019a/extern/bin/glnxa64" -lMatlabDataArray -lmx -lmex -lmat -lm -lstdc++ -o solveTV1_condat.mexa64
Error using mex
g++: error: *.o: No such file or directory

Error in install (line 34)
mex -v -cxx -lblas -llapack -lm CXXOPTIMFLAGS=-O3 CXXFLAGS="$CXXFLAGS -fopenmp" LDFLAGS="$LDFLAGS -fopenmp" solveTV1_condat.cpp "*.o"

from proxtv.

fengpinghu avatar fengpinghu commented on July 20, 2024

It looks the lines like this in the install.m file poses a dilema:
mex -v -cxx -lblas -llapack -lm CXXOPTIMFLAGS=-O3 CXXFLAGS="$CXXFLAGS -fopenmp" LDFLAGS="$LDFLAGS -fopenmp" solveTV1_condat.cpp "*.o"

g++ fails with "*.o" where the expanded files are in a quote and thus fail with no subh file or directory
if remove the quote, the * doesn't get expanded.
So I copied those lines and run them in bash:
mex -v -cxx -lblas -llapack -lm CXXOPTIMFLAGS=-O3 CXXFLAGS="$CXXFLAGS -fopenmp" LDFLAGS="$LDFLAGS -fopenmp" solveTV1_condat.cpp *.o
.....

Hope that help.

from proxtv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.