Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Best way to import project of cpp(I could not build project properly)
Best way to import project of cpp [message #1784062] Thu, 22 March 2018 07:38 Go to next message
kishan patel is currently offline kishan patelFriend
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 Go to previous messageGo to next message
David VavraFriend
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


Re: Best way to import project of cpp [message #1784177 is a reply to message #1784156] Fri, 23 March 2018 08:58 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
It can also be an attempt to link together modules compiled with different C++ compilers, one from Windows and the other from Linux. It won't work.


--

Tauno Voipio
Previous Topic:How to add a compiler to Eclipse?
Next Topic:Unity TDD platform in combination with STM32 Eclipse
Goto Forum:
  


Current Time: Tue Apr 23 13:43:32 GMT 2024

Powered by FUDForum. Page generated in 0.03424 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top