Best way to import project of cpp [message #1784062] |
Thu, 22 March 2018 07:38 |
kishan patel Messages: 1 Registered: March 2018 |
Junior Member |
|
|
Hello,
I have tried to import project in windows but there was some compiler error produced.So,i have tried in ubuntu.Still i got some error to compile imported project.I have mention error as below:
g++ -O0 -Wall -Wextra -Wl,-rpath,/home/kishan/workspace/iControl/analytics/ main.o live555Client.o InputStreamHandler.o ProcessThread.o live555Streamer.o -L/home/kishan/workspace/iControl/analytics/ -leI_Analytics -L/home/kishan/workspace/iControl/live/install/lib -L/home/kishan/workspace/iControl/opencv/ubuntunographics/lib -lavcodec -lavformat -lavutil -lpthread -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -lopencv_highgui -lopencv_imgproc -lopencv_core -lz -o /home/kishan/workspace/iControl/icontrolDemo
/home/kishan/workspace/iControl/analytics//libeI_Analytics.so: undefined reference to `cv::putText(cv::Mat&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)'
Makefile:19: recipe for target 'icontrolDemo' failed
collect2: error: ld returned 1 exit status
make: *** [icontrolDemo] Error 1
This error has shown on console.If any suggestion,let me inform.
Thanks in advance.
Regards,
Kishan Patel.
|
|
|
Re: Best way to import project of cpp [message #1784156 is a reply to message #1784062] |
Fri, 23 March 2018 01:21 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
This is actually off-topic for this forum.
It appears you imported the project correctly but the project is in error.
Or is for a different version of opencv.
/home/kishan/workspace/iControl/analytics//libeI_Analytics.so: undefined reference to `cv::putText(cv::Mat&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)'
Means cv::putText(... couldn't be found in the libraries you provided.
Use pkg-config to get the link options for opencv.
In my installation {new lines added for readability):
$ pkg-config --libs opencv
-lopencv_calib3d -lopencv_contrib -lopencv_core
-lopencv_features2d -lopencv_flann -lopencv_gpu
-lopencv_highgui -lopencv_imgproc -lopencv_legacy
-lopencv_ml -lopencv_objdetect -lopencv_ocl
-lopencv_photo -lopencv_stitching -lopencv_superres
-lopencv_ts -lopencv_video -lopencv_videostab
The order is important.
Should work in Ubuntu depending on how you installed the libs.
This is not a CDT issue.
Since this forum is for addressing CDT issues,
you should address future questions to a forum dedicated to opencv
or perhaps stackoverflow.com
|
|
|
|
Powered by
FUDForum. Page generated in 0.02719 seconds