User forums > Using Code::Blocks
command line build
nzoltan:
If I try invoke C::B from command line without X, C::B doesn`t work:
$ codeblocks --help
Error: Unable to initialize gtk, is DISPLAY set properly?
So, I think a command line useful only, when work without X.
walterwang:
C::B ist a IDE(GUI).
Why do you want a IDE to be run in command line?
If you prefer command line programming, you can use those combinations:
(under windows)
shell: mingw or cygwin, so you can use pkg-config and other wonderful things.
and vim 7, which now support code completion(called omni-function) or emacs.
write Makefile manually or using Autotools.
nzoltan:
--- Quote from: walterwang on August 21, 2006, 05:02:54 pm ---C::B ist a IDE(GUI).
Why do you want a IDE to be run in command line?
--- End quote ---
Because I want create an automatic build system. This run in every night, automatically checkout the project, rebuild and pack the binaries. Two options:
1. codeblock be able to build the project from command line and I invoke from build (shell) script
2. codeblock be able to export a makefile for this and I simply use "make" from my build (shell) script
3. ????
thomas:
--- Quote ---1. codeblock be able to build the project from command line and I invoke from build (shell) script
--- End quote ---
As for now, this does not work, and it will not work. To make this work, you would have to build a minimum console-only version of Code::Blocks with an entirely different application body (free from
wxWidgets). I am not sure if this can be done at all. Remember that the compiler binding is a plugin. Plugins communicate with the application via events. The compiler is launched via wxExecute... the list is endless.
Basically, you would have to rewrite 70% of Code::Blocks from scratch (unless there exists a wxWidgets port that works entirely without GUI and still offers an event loop - which I don't know).
--- Quote ---2. codeblock be able to export a makefile for this and I simply use "make" from my build (shell) script
--- End quote ---
Makefile export is not supported any more. It may be again (some distant day in the future), maybe, possibly, but no grants on that.
--- Quote ---3. ????
--- End quote ---
Yeah, that works fine :)
nzoltan:
--- Quote from: thomas on August 21, 2006, 09:34:15 pm ---
--- Quote ---Basically, you would have to rewrite 70% of Code::Blocks from scratch
--- End quote ---
--- End quote ---
Cool. Modular architecture... :)
--- Quote from: thomas on August 21, 2006, 09:34:15 pm ---
--- Quote ---Makefile export is not supported any more. It may be again (some distant day in the future), maybe, possibly, but no grants on that.
--- End quote ---
--- End quote ---
So, this is a very bad news. I not rely this. Consequently the solution is a hand written Makefile, and in C::B the custom Makefile settings.
Thanks your reply! This is an useful information.
Navigation
[0] Message Index
[#] Next page
Go to full version