Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Arm Cross compile failed to include the header file

I am trying to build a project, and it say

/opt/arm_linux_4.2/arm_linux_4.2/bin/arm-linux-g++ -Wno-write-strings -I . -ggdb -D _DEBUG -c Config.cpp -o Debug/Config.o Config.cpp:6:39: error: opencv2/highgui/highgui.hpp: No such file or directory Config.cpp: In member function 'void Config::saveConfig()': Config.cpp:17: error: 'cv' has not been declared Config.cpp:17: error: expected ;' before 'fs' Config.cpp:18: error: 'fs' was not declared in this scope Config.cpp: In member function 'void Config::loadConfig()': Config.cpp:30: error: 'cv' has not been declared Config.cpp:30: error: expected;' before 'fs' Config.cpp:31: error: 'fs' was not declared in this scope make: * [Debug/Config.o] Error 1

I can successfully cross the opencv, but in my opencv2 include folder, i only have

cvconfig.h opencv_modules.hpp

With the Config, i already build with High UI.

[ 1%] Built target gen-pkgconfig [ 6%] Built target zlib [ 19%] Built target libjpeg [ 23%] Built target libpng [ 44%] Built target IlmImf [ 60%] Built target opencv_core [ 61%] Built target opencv_flann [ 76%] Built target opencv_imgproc [ 81%] Built target opencv_ml [ 83%] Built target opencv_objdetect [ 87%] Built target opencv_photo [ 93%] Built target opencv_imgcodecs [ 93%] Built target opencv_highgui [100%] Built target opencv_features2d

Anything i missed?

click to hide/show revision 2
None

Arm Cross compile failed to include the header file

I am trying to build a project, and it say

/opt/arm_linux_4.2/arm_linux_4.2/bin/arm-linux-g++ -Wno-write-strings -I . -ggdb -D _DEBUG -c Config.cpp -o Debug/Config.o
Config.cpp:6:39: error: opencv2/highgui/highgui.hpp: No such file or directory
Config.cpp: In member function 'void Config::saveConfig()':
Config.cpp:17: error: 'cv' has not been declared
Config.cpp:17: error: expected ;' `;' before 'fs'
Config.cpp:18: error: 'fs' was not declared in this scope
Config.cpp: In member function 'void Config::loadConfig()':
Config.cpp:30: error: 'cv' has not been declared
Config.cpp:30: error: expected;' expected `;' before 'fs'
Config.cpp:31: error: 'fs' was not declared in this scope
make: * *** [Debug/Config.o] Error 1

1

I can successfully cross the opencv, but in my opencv2 include folder, i only have

cvconfig.h
opencv_modules.hpp

opencv_modules.hpp

With the Config, i already build with High UI.

[  1%] Built target gen-pkgconfig
[  6%] Built target zlib
[ 19%] Built target libjpeg
[ 23%] Built target libpng
[ 44%] Built target IlmImf
[ 60%] Built target opencv_core
[ 61%] Built target opencv_flann
[ 76%] Built target opencv_imgproc
[ 81%] Built target opencv_ml
[ 83%] Built target opencv_objdetect
[ 87%] Built target opencv_photo
[ 93%] Built target opencv_imgcodecs
[ 93%] Built target opencv_highgui
[100%] Built target opencv_features2d

opencv_features2d

Anything i missed?