-
Notifications
You must be signed in to change notification settings - Fork 36
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
how to make it successfully? #13
Comments
Have you run it correctly? |
You need to add that library to be linked. There's a section in the Makefile ($LIBRARIES), so add opencv_imgcodecs to it, assuming opencv is installed correctly. |
@panlanlan imgcodecs是opencv3/opencv4里拆出来的模块,opencv2里没有。你得在makefile里加一下。P.S 我新增了cmake支持,也可以试一下,应该更容易一些。 |
opencv_version |
/usr/bin/ld: build/src/seg_label_generator.o: undefined reference to symbol '_ZN2cv7imwriteERKNS_6StringERKNS_11_InputArrayERKSt6vectorIiSaIiEE'
//usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.3.2: 无法添加符号: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:41: recipe for target 'seg_label_generate' failed
make: *** [seg_label_generate] Error 1
The text was updated successfully, but these errors were encountered: