Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find "gomp" on Windows 10 #6

Open
ghost opened this issue Feb 27, 2018 · 1 comment
Open

Cannot find "gomp" on Windows 10 #6

ghost opened this issue Feb 27, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 27, 2018

I am using Windows 10 and MATLAB 2017a, the compiler message is:

compile
compiling features.cc
Building with 'Microsoft Visual C++ 2015 Professional'.
MEX completed successfully.
compiling spams
compilation of: -I./linalg/ -I./decomp/ -I./dictLearn/ dictLearn/mex/mexTrainDL.cpp
error: failed to compile: -I./linalg/ -I./decomp/ -I./dictLearn/ dictLearn/mex/mexTrainDL.cpp -outdir ./build/ -DUSE_BLAS_LIB -DNEW_MATLAB -largeArrayDims -DNDEBUG -DWINDOWS -DREMOVE_ PATH=%PATH%;C:\cygwin\bin\ COMPILER=g++-4 COMPFLAGS="-c -fexceptions" NAME_OBJECT=-o -lmwblas -lmwlapack -L"C:\cygwin\lib\gcc\i686-pc-cygwin\4.5.3" -L/ -lgomp OPTIMFLAGS="-O3 -mtune=core2 -fomit-frame-pointer -funsafe-loop-optimizations -fopenmp"
error: reason: MEX cannot find library 'gomp' specified with the -l option.
MEX looks for a file with one of the names:
gomp.lib
libgomp.lib
Please specify the path to this library with the -L option.

error: you might consider adjusting spams/compile.m settings
error: in particular, adjust path_to_compiler_libraries
error: we will continue to attempt to compile the rest of the system
error: since it might be ok that this failed to compile, but if the
error: full system does not work, please fix this error
compilation of: -I./linalg/ -I./decomp/ decomp/mex/mexLasso.cpp
error: failed to compile: -I./linalg/ -I./decomp/ decomp/mex/mexLasso.cpp -outdir ./build/ -DUSE_BLAS_LIB -DNEW_MATLAB -largeArrayDims -DNDEBUG -DWINDOWS -DREMOVE_ PATH=%PATH%;C:\cygwin\bin\ COMPILER=g++-4 COMPFLAGS="-c -fexceptions" NAME_OBJECT=-o -lmwblas -lmwlapack -L"C:\cygwin\lib\gcc\i686-pc-cygwin\4.5.3" -L/ -lgomp OPTIMFLAGS="-O3 -mtune=core2 -fomit-frame-pointer -funsafe-loop-optimizations -fopenmp"
error: reason: MEX cannot find library 'gomp' specified with the -l option.
MEX looks for a file with one of the names:
gomp.lib
libgomp.lib
Please specify the path to this library with the -L option.

error: you might consider adjusting spams/compile.m settings
error: in particular, adjust path_to_compiler_libraries
error: we will continue to attempt to compile the rest of the system
error: since it might be ok that this failed to compile, but if the
error: full system does not work, please fix this error

I don't know what is happening. The message says "MEX completed successfully", but then it reports tons of errors. So what is "spam"? What is "gomp"? Are they needed on Windows 10 to use ihog? Can I ignore them? Do I have to install cygwin to compile on Windows+Matlab?

@ghost
Copy link
Author

ghost commented Feb 28, 2018

I changed compiler='vs'; and it compiles successfully. Please disregard my post. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants