Skip to content
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

[BUG] {colcon build fail - opencv version stderr} #514

Open
gsoto-tellez opened this issue Mar 21, 2024 · 5 comments
Open

[BUG] {colcon build fail - opencv version stderr} #514

gsoto-tellez opened this issue Mar 21, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@gsoto-tellez
Copy link

I am using a Jetson Xavier and Ubuntu 22.04.

When running colcon build after cloning the depthai files and creating the workspace but got an error related to the opencv version. I have verison 4.5.4. However I get this error:

depthaierror

the CMakeLists.txt file includes:

depthaierror

I tried changing the version but still got more errors. Can I remove the find version line altogether?

@gsoto-tellez gsoto-tellez added the bug Something isn't working label Mar 21, 2024
@Serafadam
Copy link
Collaborator

Hi, as ROS Foxy is EOL it is no longer officially supported, I would recommend switching to Humble if it is possible, either via apt or Docker image. If that is not possible, you could try updating depthai_filters' CMakeLists.txt based on current Humble version.

@gsoto-tellez
Copy link
Author

Thank you, doing that solved that issue. However, now I am getting the following issue related to opencv. I have opencv version 4.2.0. Do I need to make a change to the opencv files?

opencverror

@Serafadam
Copy link
Collaborator

Hi, I think you do not have modules from opencv_contrib module, you should install it to get them.

@gsoto-tellez
Copy link
Author

I installed the opencv_contrib module but have this error when building depthai_filters. I have verified the ximgproc file is present.

Starting >>> depthai_filters
--- stderr: depthai_filters
CMake Error at /usr/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenCV (missing: ximgproc) (found version "4.5.4")
Call Stack (most recent call first):
/usr/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/usr/lib/aarch64-linux-gnu/cmake/opencv4/OpenCVConfig.cmake:354 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)

make: *** [Makefile:348: cmake_check_build_system] Error 1

@Serafadam
Copy link
Collaborator

Hi, I think this might be issue with Jetson as I've seen similar issues on Nvidia forums, could you try checking if their solutions work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants