1 | initial version |
Hello Spas Hristov,
I have been receiving the same error as you have, due to which I have performed n number of rebuilds with gtk+2, but still am receiving the same error!! Now, I came across your solution, and I think it could help solve my problem, but I still have a small query regarding it. Do you set the path for PKG_CONFIG_PATH on your ARM platform (Rasp Pi for you) or on the PC platform (Ubuntu PC i assume)? Because, it is already set to the described path on the ARM platform while it is different on the PC Linux platform. More details of the current path is shown below:
PKG_CONFIG_PATH in PC(Ubuntu):
/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
PKG_CONFIG_PATH in ARM (Embedded platform):
/usr/local/lib/arm-linux-gnueabihf/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
I cross-compile on my Ubuntu PC using the following command:
arm-linux-gnueabihf-g++ -o example example.cpp -I/usr/lib/opencv_arm/install/include -L/usr/lib/opencv_arm/install/lib -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lopencv_video -lopencv_imgproc -lopencv_videoio -lopencv_features2d -lopencv_flann -lopencv_ml -lopencv_photo -lopencv_stitching -lopencv_objdetect -lopencv_superres -lopencv_videostab -lopencv_calib3d
Another point which may be helpful is that, I have build OpenCV for both these platforms - PC (Ubuntu) and Embedded (cross compile), and it works perfectly for the PC(Ubuntu), whereas for the embedded platform I am facing the GTK+2 issue.
Thanks!