-
Notifications
You must be signed in to change notification settings - Fork 41
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
cmake build errors #1
Comments
@billamiable
Change The first one specifies the OpenCV headers and the second one is the OpenCV libraries. If you are using Linux, then please replace the whole content of
|
@csukuangfj |
This issue can be closed now. |
Thanks @csukuangfj |
Hi I tried to use cmake to build (mkdir build && cd build && cmake ..), it worked well. But errors happened in make. Anyone encountered same problem?
[100%] Linking CXX executable CPM
/usr/bin/ld: cannot find -lopencv_core310.lib
/usr/bin/ld: cannot find -lopencv_highgui310.lib
/usr/bin/ld: cannot find -lopencv_imgcodecs310.lib
/usr/bin/ld: cannot find -lopencv_imgproc310.lib
collect2: error: ld returned 1 exit status
CMakeFiles/CPM.dir/build.make:120: recipe for target 'CPM' failed
make[2]: *** [CPM] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/CPM.dir/all' failed
make[1]: *** [CMakeFiles/CPM.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Please offer some help~ Thx~
The text was updated successfully, but these errors were encountered: