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

how to make it successfully? #13

Open
panlanlan opened this issue May 20, 2019 · 4 comments
Open

how to make it successfully? #13

panlanlan opened this issue May 20, 2019 · 4 comments

Comments

@panlanlan
Copy link

/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

@Leviou
Copy link

Leviou commented Jul 8, 2019

Have you run it correctly?

@adzienis
Copy link

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.

@zchrissirhcz
Copy link
Contributor

@panlanlan imgcodecs是opencv3/opencv4里拆出来的模块,opencv2里没有。你得在makefile里加一下。P.S 我新增了cmake支持,也可以试一下,应该更容易一些。

@FANG-MING
Copy link

opencv_version
4.3.0
but get CXX src/counter.cpp
In file included from include/lane_compare.hpp:4:0,
from include/counter.hpp:4,
from src/counter.cpp:8:
include/spline.hpp:6:28: fatal error: opencv2/core.hpp: No such file or directory
#include <opencv2/core.hpp>
how can i deal with it? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants