Ubuntu system --- C ++ Eclipse start of the project

Ubuntu system --- C ++ Eclipse start of the project


  After installing Eclipse, just like any other project that, like, first test will work.

First, a test hello world example
two, OpenCV test using a picture display example of a normal new construction, reference may be made as follows: (1) Photo c ++ eclipse c ++ program using a second @https: //wenku.baidu.com /view/91bfcde5daef5ef7ba0d3cc7.html (2) Ubuntu16.04 configure Eclipse development OpenCV, icon "open Eclipse, create a C ++ project, named lena" @https: //www.cnblogs.com/eczhou/p/7860598.html (3) ubuntu the eclipse opencv configuration works, also illustrating the step @https: //blog.csdn.net/CAIYUNFREEDOM/article/details/89637607 (. 4) arranged speed Ubuntu + Eclipse CDT + Opencv2.3.1 environment @https: / /www.cnblogs.com/shihty/archive/2012/10/24/2737552.html create OpenCV project illustrates @https use (5) Ubuntu under the Eclipse CDT: //blog.csdn.net/wuguangbin1230/article/details/75576069 way will encounter a lot of problems, a little bit of resolve: (1) to solve the Semantic error the Eclipse   @https: //blog.51cto.com/3387980/1717086 (2)

  










  


eclipse solve the / usr / bin / ld: can not find -lxxx question
reference @http: //blog.sina.com.cn/s/blog_e15c1f070101idor.html
"If the library is successfully installed, however, the eclipse method library includes the following:
for example: to include log4cxx   
my installation path is / usr / local / lib / libs
then find a lib folder to determine which has a liblog4cxx.so file (this is an important sign !!!) in the directory.
so long as the installation path added lib, i.e., / usr / local / lib / libs / lib desired path comprising
experience:
      .. contain the library paths are generally added after the installation path / lib .so files subject to the presence of the corresponding "

  I found an error in the file, find the location, added to the environment, OK.

(3) the Eclipse run C ++ issues Launch failed, Binary not found
create HelloWorld project, solution, toolbars run-> run configuration; double-click the c / c ++ application appears HelloWorldCPP debug, select; under the Main tab, c / c ++ application: search project -> check HelloWorldCPP-> OK; under common tab, check the Debug and Run-> apply-> run; follow-up can click on the toolbar triangles run. @https: //blog.csdn.net/u011939755/article/details/80781651


Configuring MinGW- resolve on Eclipse C ++ appears Launch failed, solutions Binary not found the problem (yet attempt is successful, and this really does not know about it!)

@https: //blog.csdn.net/iaiti/article/details/39344895
@https: Graphic under Windows //www.cnblogs.com/fickleness/p/3273241.html
@https: //www.cnblogs. graphic under com / purplec / p / 5598042.html is Windows

(4) OpenCV configuration, the configuration is good, run the test program with no error, the picture does not show? ?
@https: //zhidao.baidu.com/question/689304286342354724.html


Summary: you must want to use OpenCV with a good Eclipse + OpenCV environment, or every step in error. Of course, this is the first time using Eclipse + OpenCV, after the experience there.

 

************************************************** ****************** attachment portion shots, no layout order ************************* **************************************

 

 

 再指明lib :

  lib是要自己找的,依旧快捷键Ctrl + alt + T 召唤出终端,这次输入:
  pkg-config --libs opencv

  会打印出所有的libs,应该是下面这些:
  opencv_shape;opencv_objdetect;opencv_ml;opencv_stitching;opencv_videostab;opencv_photo;opencv_dnn;opencv_calib3d;opencv_superres;opencv_video;
opencv_features2d; opencv_highgui;opencv_videoio;opencv_imgcodecs;opencv_imgproc;opencv_flann;opencv_core   可以全部导入,以免找不到。   找到 GCC C
++ Linker,在右侧 First in Library search path (-L) 中加入这些库,通过加分号了,所以可以直接导入,eclipse 会自动换行分开,不然就要一个一个手动输入。


 

 

 

 

还有其他问题,系统路径是不是没有配好,为什么每次新建工程,上述配置都没有了?! 在继续解决。

 

Guess you like

Origin www.cnblogs.com/carle-09/p/11275636.html
Recommended