Undefined reference error while cross compling opencv with qt4.7

asked 2012-10-12 01:52:02 -0500

AjayOpen gravatar image

updated 2012-10-17 11:28:39 -0500

Hello, I am trying to cross compile opencv 2.4.0 for arm with qt4.7 and with ffmpeg option enabled. I have already cross compiled the ffmpeg.0-11 for arm (linux). My host pc is Ubuntu 12.04 Every thing runs fine when i issue the make command in build directory of opencv untill about 98% job is done, but then i get a lot of undefined reference errors like ../../libopencv_highgui.so.2.4.0 undefined reference to QCheckBox::paintevent(QpaintEvent*). after that make step stops I am unable to resolve this error. the strange thing is that CMake is able to point to correct paths of libQtCore.so, libQtGui.so and libQtTest.so which are listed as dependencies for highgui. Please suggest a way out. Thanks a lot

edit retag flag offensive close merge delete

Comments

1

What is your target OS? And please let us know if you succeed, because I didn't heard of successful compiling of OpenCV for ARM. For example on Android, most of the highgui functionality is simply disabled, because it is not so simple to support it...

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-10-12 03:18:27 -0500 )edit

My host pc is x86 i.e pentium4, while, the board on which i want to run opencv has ARM processor, so i need to crosscompile it for ARM. I have already compiled it for x86 and its running fine. By cross-compiling, i mean to compile the libraries for ARM architecture, but this compilation will be done on a machine which has pentium processor. Libraries which are compiled for x86 system don't run on any other architechture, hence the need for cross-compilation.

AjayOpen gravatar imageAjayOpen ( 2012-10-18 07:07:01 -0500 )edit