How to compile OpenCV software on Raspberry?

asked 2015-01-24 10:27:11 -0600

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?

edit retag flag offensive close merge delete

Comments

What is your problem? Aren't you able to compile something?

FooBar gravatar imageFooBar ( 2015-01-24 12:17:10 -0600 )edit

yes, I can't compile using code::blocks

AlessioMTX gravatar imageAlessioMTX ( 2015-01-24 13:36:08 -0600 )edit