Hi guys I am desperate I am trying to compile an .cpp file which use opencv but is imposible for me, Ired many things but I cannot get nothing clear. I do not have experience in this kind of compilation so I am pretty lost. I am working with an ARM, and my code is in c++. I was compiling other files without opencv libraries, and for do that I had to install the toolchain, I got it from the website and I installed it in this Path:
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0
after I added this directory to my global PATH like this:
export PATH=$PATH:/opt/freescale/usr/local/gcc-4.4.4-glibc- 2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin export ARCH=arm
after this I set up my enviroment:
export PATH=$PATH:/opt/freescale/usr/local/gcc-4.4.4-glibc- 2.11.1-multilib-1.0 export ARCH=arm export CROSS_COMPILE=arm-linux-
Until here everything is perfect, so I can compile with this command:
arm-linux-g++ IPCamera.cpp -o tru2
and It works perfect, the IPCamera.cpp does not use opencv in this ocasion.
My problem comming now. I followed this tutorial http://www.ridgesolutions.ie/index.php/2013/05/24/building-cross-compiling-opencv-for-linux-arm/ and I finish it propertly. But now I do not have idea how to compile my file, I mean, shall I change the PATH??shall I add the link the libraries or the path libraries, somenthing like this:
arm-linux-g++ -I/path/to/opencv/include -L/path/to/library IPCamera.cpp -o tru2 -lopencv_core -pthread
If it is, How should I do it??. Sorry but I do not have too much idea about that, so someone can help me step by step. Thank you very much