CrossCompile OpenCV with Qt4

Hi everybody!

I’m new to Angstrom and the BBB (and, I admit it, to Linux too…).

I’m trying to create a Qt app using OpenCV with QtCreator.
Without OpenCV, all is alright: I crosscompile on my Ubuntu VM and I deploy on the BBB.
Now, when OpenCV is used, the project compiles and runs well on Ubuntu, but when I switch the kit to the BBB one, it doesn’t build at all! (the classical opencv2/imgproc/imgproc.hpp: No such file or directory, etc).

I did compile OpenCV for an ARM achitecture, but I’m really not sure about my command (done in the directory openCV/releaseBBB/ ):

cmake -DSOFTFP=ON -DMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../

And, after a make and a sudo make install, I don’t even know what to do to link that stuff with Qt!

Do you have any help on my command or to match OpenCV for ARM with Qt?

Thanks!

Arnaud