LSD-OpenCV-MATLAB icon indicating copy to clipboard operation
LSD-OpenCV-MATLAB copied to clipboard

Compiling under Ubuntu 12.04

Open xepost opened this issue 9 years ago • 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

xepost avatar Apr 23 '15 03:04 xepost

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)

flmeng avatar Jul 02 '15 11:07 flmeng

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 [email protected] 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 https://github.com/primetang/LSD-OpenCV-MATLAB/issues/2#issuecomment-118009811 .

xepost avatar Jul 06 '15 02:07 xepost

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

Have MATLAB 2015a installed.

Thanks

jonas- avatar Dec 11 '15 02:12 jonas-

Try using small letter L as in -lopencv_highgui247

xepost avatar Dec 11 '15 06:12 xepost

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.

jonas- avatar Dec 11 '15 06:12 jonas-

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

Makogan avatar Aug 04 '17 19:08 Makogan

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.

dknyxh avatar Jul 23 '20 06:07 dknyxh