-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Libcamera/RPI 64bit Example using Code Blocks with OpenCV files located in /opt/opencv-4.5.5 #3
Comments
See side 22 in the first OpenCV example. |
Hi Qengineering, I verified the setting were correct per slide 22, but the code blocks still can not find the libraries. Below are the error messages, and below is my 'GStreamter_RPi_64_Bullseye.cbp. Thanks for the help, ||=== Build: Debug in GStreamer RPi 64 Bullseye (compiler: GNU GCC Compiler) ===| <CodeBlocks_project_file> |
GStreamer_RPi_64_Bullseye.cbp file attached. |
The rather unusual location of OpenCV (
The prefix One way to get the app running is by removing all OpenCV references in the build options, (the |
contents of the opencv4.pc, which created during the opencv build. Package Information for pkg-configprefix=/opt/opencv-4.5.5 Name: OpenCV |
Odd that it works okay with Qt and from the command line. Command Line compile command: |
HI Qengineering, I added all the of the opencv libxxx.so files to Code Blocks and the example built. I guess code blocks is not using pkg_config. Thanks for the help, |
Hi Qengineering,
I tried the Libcamera RPI 64bit example, but code blocks fails to located the OpenCV libraries. I updated the libraries paths in the project and verified that pkg_config could locate the opencv library files. Qt and the CLI work okay when compiling opencv code. I can compile the Librcamera opencv rpi bullseye 64 bit example via cli without any errors and the app runs.
I'm not sure why code blocks can't find the libraries even though the paths are updated in the project. I suspect that code blocks is not using pkg_config as expected and needed.
Can you recommend how to get code blocks to find the opencv libraries when the files are located in '/opt/ and not '/usr/local' [default location]?
I separated the Qt and OpenCV libraries files so that I can move the libraries to different RPIs and along with an application - main goal is minimum install over head and management.
Thanks for sharing great information on setting up RPIs for OpenCV, Qt, and other tools.
Thanks,
Robert
The text was updated successfully, but these errors were encountered: