User forums > Using Code::Blocks

Exporters

<< < (2/4) > >>

Game_Ender:
A better solution would be to use CMake for your build system.  The CVS version (might of been released by now) now supports generating Code::Blocks project files on Windows and Linux.  It also generates tons of other formats like Xcode on Mac, and VS project files on Windows.  Code::Blocks project files are no more portable than Makefiles so it would be quite hard to generate something as portable as an autotools project (ie, there is not enough information in the a CB project file).

rotalever:
But then I have to manage my project with CMake instead of codeblocks?
Why do you say CB-files are not as portable? A configure and makefile is nothing big.

Biplab:

--- Quote from: rotalever on July 26, 2007, 03:01:04 pm ---But is it possible to export a CB-Project as a GNU autoconf/automake project ..

--- End quote ---

Morten already wrote that. It's *not* possible to export C::B project as a autoconf/automake project.

You've to write autoconf macros on your own or use any makefile generating utility (CMake or Bakefile).


--- Quote from: rotalever on July 27, 2007, 10:18:54 am ---But then I have to manage my project with CMake instead of codeblocks?

--- End quote ---

You'd generate the autoconf macros and C::B project files using CMake. So you can manage ur app in C::B and use configure and make as well.

Game_Ender:
Well you would compile your application with CB and have no need for configure or make because CMake replaces autotools and Code::Blocks replaces make.  If you wish you could tell CMake to generate Makefiles instead of Code::Blocks project files.  Using CMake gives you the flexibility to use Code::Blocks when you want to, and still have a completely command line only build (ie no X server required).

Code::Blocks project files are not as portable as autoconf or CMake projects because for the most part you have to hard code library names, library search paths, and header search paths.  Also Code::Blocks lacks any kind of autoconf functionality.

rotalever:
Hmm, this is too complicated for me  :shock:
If the user does not have codeblocks installed he must use precompiled binaries  :twisted:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version