Skip to contentSkip to conversation

building OpenCV with Qt

DISCUSSION Adriaan Verheij 1 participant 1 message Dec 10, 2014

lore
Share & tools
lore
#0 lore raw

Hello All,

I am trying to build a Linux image for Gumstix (based on gumstix-consol-image) with openCV using Qt.

The problem is that findQt4.cmake identifies sysroots/x86_64-linux/usr/bin/qmake2 as the Qt4 source, which causes the wrong .h files to be included, which causes the compiler to barf on some asm instructions.

OpenCV defaults to using GTK+, so I altered the openCV_2.4.bb file to include the line

..

PACKAGECONFIG[qt4-embedded] = "-DWITH_QT=4,-DWITH_QT=OFF,qt4-embedded,"

..

Has anyone been able to build OpenCV using Qt ?

Thanks!