在eclipse中设置OpenCV(OpenCV setup in eclipse)

编程入门 行业动态 更新时间:2024-10-28 00:25:04
eclipse中设置OpenCV(OpenCV setup in eclipse)

我设置了eclipse IDE来使用openCV。 我按照openCV网站上提供的教程进行操作。 但是,每次创建新项目时都会遇到这个非常烦人的问题。 我似乎需要为我创建的每个项目重做粘贴GCC C ++链接器中的库文件的整个过程。 反正是否让它们对所有新项目都持久存在? 或至少能够导出设置,以便我可以导入它们,这将节省时间。

谢谢

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

最满意答案

我可能误解了这个问题,但如果您不想每次都设置项目,可以在Eclipse中保存构建配置

要使用其他项目构建配置:

项目 - >属性 - > C / C ++ Build

单击Manage Configurations并创建一个新配置(将其命名为opencv或其他)。

然后像以前一样设置您的Includes,GCC链接器等。 然后点击Apply。

现在,如果您想要使用这些配置设置新项目,请选择新项目:

项目 - >属性 - > C / C ++构建 - >管理配置

单击New并选择'从项目导入'并选择'opencv'配置。 这会将构建设置导入到您的新项目中。

然后只需从“配置”下拉列表中选择它。

要将构建配置导出为XML文件:

右键单击项目 - >导出...

选择C / C ++ - > C / C ++项目设置

选择要导出的配置并将其保存在某处。

要将其导入项目:

右键单击项目 - >导入... - > C / C ++项目设置

并浏览您的配置文件

希望这可以帮助!

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!

更多推荐

本文发布于:2023-08-05 22:15:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1441084.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:eclipse   OpenCV   setup

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!