
I…/raspi/qt5/mkspecs/devices/linux-rasp-pi2-g++ -o main.o …/untitled/main.cpp I…/raspi/sysroot/opt/vc/include -I…/raspi/sysroot/opt/vc/include/interface/vcos -I…/raspi/sysroot/opt/vc/include/interface/vcos/pthreads -I…/raspi/sysroot/opt/vc/include/interface/vmcs_host/linux -I/usr/local/include -I…/raspi/qt5pi/include -I…/raspi/qt5pi/include/QtCore -I. home/mustafa/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard -sysroot=/home/mustafa/raspi/sysroot -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_CORE_LIB -I…/untitled -I. RasperryPi2 Build: /home/mustafa/raspi/sysroot/usr/local/lib (Copied built opencv libs from build_hardfp above to this folder so QT can find them under usr/local/lib)Įventhoug I cross compiled OpenCV from source for Raspberry Pi2, I can not compile a simple app for Raspberry Pi2 using OpenCV under Ubuntu.ġ0:00:39: Running steps for project untitled…ġ0:00:39: Starting: “/usr/bin/make” cleanġ0:00:39: The process “/usr/bin/make” exited normally.ġ0:00:39: Configuration unchanged, skipping qmake step. OpenCV Cross Compile Build: /home/mustafa/raspi/opencv/platforms/linux/build_hardfp/lib

Qt version: Qt 5.6.1 (/home/mustafa/raspi/qt5/bin/qmake)ĬMake Tool: System Cmake at /usr/bin/cmake usr/local/lib/libopencv_core.so:-1: error: file not recognized: File format not recognizedĮrror: collect2: error: ld returned 1 exit statusĬompiler: /home/mustafa/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ĭebugger: /home/mustafa/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-圆4/bin/arm-linux-gnueabihf-gdb However when this app uses OpenCV libraries I get the error below:

I was able to compile simple QT app for RaspberryPi2 in the Ubuntu environment, meaning that required settings are already set (kits, debugger, compiler etc).
