primetang/LSD-OpenCV-MATLAB

Compiling under Ubuntu 12.04

Opened this issue · 7 comments

Hi I am trying to compile under Ubuntu 12.04 x64. I run 'cmake .. && make' under build folder in LSD-OpenCV-MATLAB-master. I a getting following error:

Unknown MEX argument '-L'.
make[2]: *** [matlab/lsd.mexa64] Error 255
make[1]: *** [matlab/CMakeFiles/mex_lsd.dir/all] Error 2
make: *** [all] Error 2

I am not sure if it is a OCV problem since the lsd_opencv_example is running properly.
And inside the matlab folder there are dll file which is for windows.

I would be happy to hear any suggestions on the issue?

Bests,
Soner

Have you solved this problem? I also compile this code on Ubuntu 12.04, but the problem is that my gcc version is too high. (my gcc is 4.8.4)

I do remember I solved it so tried to compile again but does not seem to
work. The error I got is
[ 25%] Building CXX object CMakeFiles/lsd.dir/src/lsd.cpp.o
cc1plus: error: unrecognized command line option ‘-std=c++11’
make[2]: *** [CMakeFiles/lsd.dir/src/lsd.cpp.o] Error 1
make[1]: *** [CMakeFiles/lsd.dir/all] Error 2
make: *** [all] Error 2

The error is mostly related to my current compiler 4.6. I used 4.7 or
4.8 to compiler. Good luck!

On Thu, Jul 2, 2015 at 7:59 PM, Fanli Meng notifications@github.com wrote:

Have you solved this problem? I also compile this code on Ubuntu 12.04,
but the problem is that my gcc version is too high. (my gcc is 4.8.4)


Reply to this email directly or view it on GitHub
#2 (comment)
.

Hi, did you find a solution for this problem?
Have the same error: Unknown MEX argument '-L'.

Have MATLAB 2015a installed.

Thanks

Try using small letter L as in -lopencv_highgui247

Now the error changes to Unknown MEX argument '-l'.
Its not so urgent for me, as I don't use the matlab binding, I'm just interested why it is not working and may be helpful for others.

Has anyone solved the "Unknown MEX argument '-L'." yet? I need to build a project and I cannot do it until I solve this issue :p

For those of you having the problem with "-L", if you print out the command to call the mex, you will find the -L library path empty. This is because this codebase is using an old opencv and cmake find opencv verion. You need to manually change that part. Also this code does not actually run on opencv3+. Some simple modification can be made to make this work.