I am writing a GUI application for the Raspberry PI dev board that makes use of the OpenCV library to process some image data. The end result is a graphical application with some buttons, and an area to display images.
I avoid IDE's when I can, as it gets tedious having to learn a new IDE for every tool, in addition to a new language that usually goes in hand with the projects I work on. 95% of all my development is in VIM.
How do I set up a basic makefile project that makes use of GCC, OpenCV, GTK+, and compiles for the Raspberry PI (ie: arm11) that runs on my Ubuntu installation running on an x86 system? The goal is to make this a portable project that can be built on any Linux system.
I'm familiar with installing the OpenCV and GTK+ libraries via apt-get
, and I also know I need to include specific header files in my main.c
file. Now I just need to figure out the basic statements needed in the makefile to compile for ARM and link against the appropriate libraries. The OpenCV libraries I get via apt-get
seem to be for x86, and I don't know if the ARM variants are included.
Thank you.