Ich versuche, mein Projekt mit Conan zu bauen. Mein Projekt verwendet opencv.CMake Error at build/cmakedeps_macros.cmake:66 (message):
Library 'opencv_video' not found in package. If 'opencv_video' is a system
library, declare it with 'cpp_info.system_libs' property
< /code>
OS-Info: < /p>
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
< /code>
conanFile.txt:
[requires]
opencv/4.10.0
...
[options]
opencv/*:with_ffmpeg=True
opencv/*:with_gstreamer=True
opencv/*:with_v4l=True
opencv/*:gapi=False
...
[generators]
CMakeDeps
CMakeToolchain
< /code>
Conan-Profilinformationen: < /p>
Host profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
< /code>
cMakelists.txt
find_package(OpenCV REQUIRED COMPONENTS core imgproc highgui video) # I test without the COMPONENTS aswell.
...
target_link_libraries(videocapture
PRIVATE
opencv::opencv opencv::opencv_video # I tested with and without opencv::opencv_video aswell as other core components. Didn't change anything.
...
)
< /code>
Lösungen, die ich ausprobiert habe: Erstellen aus der Quelle und Verknüpfung, die von der CMake auf einem anderen Computer funktioniert. BR/> Ich habe die CMakelists.txt mehrmals geändert und nichts hat funktioniert.>
Erstellen eines Programms mit OpenCV mit Conan fällt unter Linux fehl ⇐ Linux
-
- Similar Topics
- Replies
- Views
- Last post