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?

asked Jan 24, 2015 at 15:54
1
  • what is the error message and what is the command you are using to generate it? 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.

answered Jan 28, 2015 at 14:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.