From RuotsalainenO, 9 Years ago, written in Plain Text.
Embed
  1. make
  2. g++ -c -Wall `pkg-config --cflags --libs opencv` -std=c++11 main.cpp
  3. g++ -c -Wall `pkg-config --cflags --libs opencv` -std=c++11 inputServer.cpp
  4. g++ -c -levet `pkg-config --cflags --libs opencv` -lpthread -pthread -Wall -std=c++11 webClient.cpp
  5. g++ -c `pkg-config --cflags --libs opencv` HoughLines.cpp
  6. g++ -pthread -lopencv_imgcodecs `pkg-config --cflags --libs opencv` main.o inputServer.o HoughLines.o webClient.o -o executable
  7. HoughLines.o: In function `HoughLining(int, char**)':
  8. HoughLines.cpp:(.text+0xa0): undefined reference to `cv::imread(cv::String const&, int)'
  9. HoughLines.cpp:(.text+0x194): undefined reference to `cv::Canny(cv::_InputArray const&, cv::_OutputArray const&, double, double, int, bool)'
  10. HoughLines.cpp:(.text+0x201): undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
  11. HoughLines.cpp:(.text+0x2aa): undefined reference to `cv::HoughLinesP(cv::_InputArray const&, cv::_OutputArray const&, double, double, int, double, double)'
  12. HoughLines.cpp:(.text+0x413): undefined reference to `cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
  13. HoughLines.cpp:(.text+0x479): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
  14. HoughLines.cpp:(.text+0x4da): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
  15. HoughLines.cpp:(.text+0x502): undefined reference to `cv::waitKey(int)'
  16. HoughLines.o: In function `cv::String::String(char const*)':
  17. HoughLines.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x4d): undefined reference to `cv::String::allocate(unsigned long)'
  18. HoughLines.o: In function `cv::String::~String()':
  19. HoughLines.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x14): undefined reference to `cv::String::deallocate()'
  20. HoughLines.o: In function `cv::Mat::~Mat()':
  21. HoughLines.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to `cv::fastFree(void*)'
  22. HoughLines.o: In function `cv::Mat::release()':
  23. HoughLines.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x4b): undefined reference to `cv::Mat::deallocate()'
  24. collect2: error: ld returned 1 exit status
  25. makefile:4: recipe for target 'output' failed
  26. make: *** [output] Error 1