简体   繁体   English

如何创建 CodeBlocks IDE C++ 项目以处理现有的共享库项目?

[英]How to create CodeBlocks IDE C++ project to work on existing shared library project?

I am working on a C++ project that utilizes the Open Motion Planning Library (OMPL) on a Linux system.我正在使用 Linux 系统上的开放运动规划库 (OMPL) 进行 C++ 项目。 The project requires that I consistently add features to the OMPL source code.该项目要求我始终如一地向 OMPL 源代码添加功能。 The project also includes independent files that utilize the OMPL shared library, but should not be included in the installed shared library.该项目还包括使用 OMPL 共享库的独立文件,但不应包含在已安装的共享库中。

What is the best way to set up this project in the CodeBlocks IDE so that I can fluidly edit and test both the library code and independent code?在 CodeBlocks IDE 中设置此项目以便我可以流畅地编辑和测试库代码和独立代码的最佳方法是什么?

Previously, I was using Atom and the terminal to code and run the program.以前,我使用 Atom 和终端来编写和运行程序。 I used Make and Cmake to rebuild and reinstall the library as I made updates.我在更新时使用 Make 和 Cmake 来重建和重新安装库。 Now, I want to utilize the debugger features of the CodeBlocks IDE, and am trying to find the best way to set up the project to optimize workflow in an IDE.现在,我想利用 CodeBlocks IDE 的调试器功能,并试图找到设置项目以优化 IDE 中工作流的最佳方法。 I do not regularly use IDEs, and appreciate any guidance on best practices and workflow strategies for a project like this.我不经常使用 IDE,并感谢任何有关此类项目的最佳实践和工作流策略的指导。 Thanks!谢谢!

In the codeblocks IDE you can create, open and work on different projects (dependent or independent they are).在代码块 IDE 中,您可以创建、打开和处理不同的项目(它们是依赖的或独立的)。
You can save a workspace file that includes related projects.您可以保存包含相关项目的工作区文件。 A workspace is a collection of projects.工作区是项目的集合。
You can select the project you are interested in and work on that (compiling and debugging), for example the OMPL library, whether it is used as a static or dynamic library.您可以选择您感兴趣的项目并进行处理(编译和调试),例如 OMPL 库,无论它是用作静态库还是动态库。
You can then activate the calling application project, add independent files to it, compile it, testing and debug it.然后,您可以激活调用应用程序项目,向其中添加独立文件,对其进行编译、测试和调试。
Application projects that use the OMPL library can also be many, and include several independent files.使用 OMPL 库的应用程序项目也可以很多,包括几个独立的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM