Big problem when I build with arm-linux-gnueabi compiler (linux)

asked 2015-04-16 16:49:51 -0500

Joblo gravatar image

When a build a project with the GCC compiler, no problem all it work but when I build the same project with the arm-linux-gnueabi-gcc compiler full error like : erreur: ‘imshow’ was not declared in this scope

and this is for all openCV functions ....

-L path its the same of the GCC projet and include the same too. (/usr/local/lib) (/usr/local/include)

edit retag flag offensive close merge delete


More details please, where can i find more info about this compiler, cmake output (if any), your code, gcc command you used.

Simplest guess you forgot cv:: namespace or using namespace cv;

boaz001 gravatar imageboaz001 ( 2015-04-17 05:11:30 -0500 )edit

All the code compile with the Gcc compiler from linux ubuntu but dont compile with the arm-linux-gnueabi so the code is ok (i guest) and i compile by eclipse.

Joblo gravatar imageJoblo ( 2015-04-17 07:51:58 -0500 )edit

Probably there is something wrong with you arm project properties. Imshow is defined in opencv_highgui library, you have to add it to your library in eclipse properties.

Also, the order you add the libraries matter: opencv_core has to be below opencv_imgproc and only then opencv_highgui.

Pedro Batista gravatar imagePedro Batista ( 2015-04-17 08:40:49 -0500 )edit