开发者

How can a Linux source package be opened as a project in an IDE?

I am makeing a small mod to SMPlayer; the Linux version...

The make, sudo make install from the command line works, but I would like to have the project in an IDE.

I want to开发者_开发百科 use CodeBlocks IDE, only because I've used it before, but if some other IDE is required, I can use that instead... (I use Codeblocks because it is simple, and that suits my current ability to handle an IDE)..

Is there some way to use SMPlayer's Makefile, or some such thing?


This depends on the IDE and has little to nothing to do with Linux.

Does your program come with something like cmake or another setup tool? That normally makes it much easier. For example in KDevelop you can import straight from CMakeLists.txt and Makefiles.

If all else fails it might be quite easy to do something like this (not knowing your specific IDE):

  1. Add new Project
  2. Set build directory and other necessary settings (like compiler and compiler flags)
  3. Add the already existing files to it.
  4. Press "Compile"-button.

This is obviously depending on the project structure, setup and size.


Code::Blocks has builtin support for Makefile projects. See the FAQ.

Also you could just use vim or emacs ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜