2

I want compile an OpenCV program on Raspberry, the problem is that I didn't figure out how to do so. I installed OpenCV following this guide.

$ pkg-config --modversion opencv
2.4.1

OpenCV can be found in /home/pi/opencv-2.4.10

I use code::blocks, I found several guide on how to use that on linux in general, but not on Raspberry. One guide on how to set up code::Blocks helped me to understand, but I didn't solve the issue because despite I set compiler and linker path, in linker settings I have anything.

  • I used as compiler path: /home/pi/opencv-2.4.10/include/opencv and /home/pi/opencv-2.4.10/include/opencv
  • and as linker path: /home/pi/opencv-2.4.10/build/lib

What's wrong with my configuration?

1
  • what is the error message and what is the command you are using to generate it?
    – rob
    Commented Jan 26, 2015 at 11:58

1 Answer 1

0

I found out that I have to add manually all the libraries in /home/pi/opencv-2.4.10/build/lib, simply go to linker settings and click on add button and select all them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.