简体   繁体   中英

Building a cmake C++ project depending on OpenCV on Linux

I need my project to be built on someone's else Linux from source. I have a CMake project that uses only two functions from OpenCV imgcodecs.hpp. On Windows all I needed to include/link were opencv_world460.dll, opencv_world460.lib and a directory with headers, so I didn't have to force user to download the complete OpenCV pack for building my project. On Linux there are plenty of files in /bin directory after building, but no opencv_world460, so I don't know which file I should put in target_link_libraries(""). Any idea?

Calling the OpenCV cmake command with -D BUILD_opencv_world=ON should create the opencv world libraries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM