OpenCV setup in eclipse

c++, eclipse, opencv

Solution

I may have misunderstood the question, but if you just don't want to set up the project each time, you can save a build configuration in Eclipse.

To use another projects build configuration:

Project -> Properties -> C/C++ Build

Click Manage Configurations and create a new config (call it opencv or whatever).

Then set up your Includes, GCC linker etc as you have done before. Then hit Apply.

Now if you ever want to set up a new project with these configs, select your new project:

Project -> Properties -> C/C++ Build -> Manage Configurations

Click New and select 'Import from projects' and select your 'opencv' configuration. This will import the build set-up into the your new project.

Then just select it from the Configuration drop-down.

To export the build configuration as an XML file:

Right click project -> Export...

Select C/C++ -> C/C++ Project Settings

Select the Configuration you want to export and save it somewhere.

To import it into a project:

Right click project -> Import... -> C/C++ Project Settings

and browse for your config file

Hope this helps!

Problem

I setup eclipse IDE to use openCV. I followed the tutorial provided on openCV website. However, there is this extremely annoying issue am facing every time I create a new project. It seems I need to redo the entire process of pasting the library files in GCC C++ linker for every project that I create. Is there anyway of making them persistent for all new projects ? Or to at least be able to export the settings so that I can import them which will save time. Thanks

Original source