C++ – Using Eclipse C++ CDT in Linux

ceclipselinuxopencv

I want to use Eclipse to develop C++ projects on Linux. Particularly I want to modify stable and widely used open source projects using the Eclipse CDT. One of them is Intel Opencv. There are tutorials to create simple c++ projects like here:

I have seen plenty of tutorials for using Eclipse CDT to write programs in
OpenCv like here:

However I
want to use Eclipse to make changes to the OpenCv platform itself and compile it
from there. I really like many of Eclipse's features like:

  • Syntax highlighting
  • Outline
  • Code assist
  • Code templates
  • Code history
  • etc.

Would someone write a
small tutorial on how one can make a project in Eclipse from the OpenCv tarball? I would use Eclipse CDT on Linux.

Can Eclipse CDT recognize Makefile as it can do for Ant scripts?

Best Answer

I made the experience that for OpenCV using cmake is the way to go. You can unzip the cmake source code and use cmake to compile it. Even after your changes. There are some tools to integrate cmake into eclipse but I found them unstable or not very mature so I use cmake from a terminal to compile and eclipse for editing the source files.