Hello All,
I read in couple of blogs- if we compile OpenCV code using ARM compiler for Beagleboard, it will give 2X performance boost. But I don’t know exactly how to do that.So I have downloaded ARM DS-5 suite eval version which have ARM compiler. I have installed it on my x86 Ubuntu 11.10 (Intel core 2 duo) machine. This DS-5 suite has 3 compilers- GCC linux, DS-5 Linux , and ARM compiler. My goal is to Compile Opencv Code using ARM compiler and run that .exe on Beagle Board xM. I tried to run sample code using all these compilers.But I got luck only using GCC linux compiler and got errors for other compilers for same code. Please look below for compilation results from different compilers. Can anybody guide me Why this errors occured ? Do I need to have Opencv Armel files and library to compile using ARM compiler ? If yes, how can I go for Opencv Armel libraries ?
using simple gcc
**** Build of configuration Debug for project hellogcc ****
make all
Building file: …/maingcc.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/local/include/opencv -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"maingcc.d" -MT"maingcc.d" -o “maingcc.o” “…/maingcc.cpp”
Finished building: …/maingcc.cpp
Building target: hellogcc
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o “hellogcc” ./maingcc.o -lopencv_core -lopencv_highgui
Finished building target: hellogcc
**** Build Finished ****
using DS5 linux
**** Build of configuration Debug for project helloDS5 ****
make all
Building file: …/mainDS.cpp
Invoking: GCC C++ Compiler
arm-none-linux-gnueabi-g++ -I/usr/local/include/opencv -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"mainDS.d" -MT"mainDS.d" -o “mainDS.o” “…/mainDS.cpp”
cc1plus: warning: include location “/usr/local/include/opencv” is unsafe for cross-compilation
In file included from …/mainDS.cpp:9:0:
/usr/local/include/opencv/cv.h:63:33: fatal error: opencv2/core/core_c.h: No such file or directory
compilation terminated.
make: *** [mainDS.o] Error 1
**** Build Finished ****
using ARM compiler
**** Build of configuration Debug for project helloARM ****
make all
Building file: …/mainARM.cpp
Invoking: ARM C++ Compiler
armcc -I/usr/local/include -O0 -g -c -o “mainARM.o” “…/mainARM.cpp” “…/mainARM.cpp”
Warning: C9931W: Your license for Compiler (feature compiler5) will expire in 11 days
Warning: C9931W: Your license for Compiler (feature compiler5) will expire in 11 days
“…/mainARM.cpp”, line 9: Error: #5: cannot open source input file “cv.h”: No such file or directory
#include “cv.h”
^
…/mainARM.cpp: 0 warnings, 1 error
make: *** [mainARM.o] Error 1
**** Build Finished ****