Robotics StackExchange | Archived questions

rosmake invoking wrong ld command

I'm getting an error message ld: library not found for -l:/usr/local/lib/libopencv_xphoto.3.0.0.dylib

The proper command would be either -L/usr/local/lib/libopencv_xphoto.3.0.0.dylib or -lopencv_xphoto.3.0.0.dylib according to these folks at stackoverflow: http://stackoverflow.com/questions/31942804/ld-library-not-found-for-l-usr-local-lib-libopencv-xphoto-3-0-0-dylib#31942869

Anybody know where I can go to correct this? The CMakeLists.txt doesn't even look for OpenCV.

Edit: Here my is my CMakeLists.txt

I am using ROS Indigo on OS X 10.10.4. I am using rosmake because that is what the instructions for tumvision/lsdslam say Interestingly, I had no intention of using OpenCV 3.0 with this, I have a brew installed OpenCV2.4 on my computer that I figured would be the one used. But I also have OpenCV 3.0 which I installed manually.

edit2: Wow, I just realized there is a catkin-mac branch available in tum-vision's repo. This should be interesting. They should probably note this in their readme.

Asked by nnnnnnils on 2015-08-11 08:47:18 UTC

Comments

Can you please post your CMakeLists.txt, and give some information about your OS, the ROS distro you use and the version of openCV (seems to be 3.0). Also, you are using rosmake to compile and not catkin_make? There are several questions about openCV3.0, where there are problems with this

Asked by mgruhler on 2015-08-12 01:36:02 UTC

Answers