Skip to content

Building error #2

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

Open
Michele1996 opened this issue Oct 10, 2022 · 0 comments
Open

Building error #2

Michele1996 opened this issue Oct 10, 2022 · 0 comments

Comments

@Michele1996
Copy link

Hi, I would like to use the work in the repository but when I compile I get
/usr/bin/ld: CMakeFiles/gcn_ftr.dir/src/main.cc.o: in function main': /home/michele/semantic_feature_points/src/main.cc:22: undefined reference to cv::imread(std::string const&, int)'
/usr/bin/ld: /home/michele/semantic_feature_points/src/main.cc:70: undefined reference to cv::imshow(std::string const&, cv::_InputArray const&)' /usr/bin/ld: CMakeFiles/gcn_ftr.dir/src/GCNextractor.cc.o: in function Mat':
/usr/local/include/opencv4/opencv2/core/mat.inl.hpp:591: undefined reference to cv::error(int, std::string const&, char const*, char const*, int)' /usr/bin/ld: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp:577: undefined reference to cv::error(int, std::string const&, char const*, char const*, int)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/gcn_ftr.dir/build.make:129: gcn_ftr] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/gcn_ftr.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Do you know why? (I'm using Opencv 4,Python 3.8 , Ubuntu 20.04, pytorch 1.12

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

1 participant