[cmake-developers] Using the internal Code::Blocks builder

Benjamin Eikel cmake at eikel.org
Thu Sep 6 03:24:39 EDT 2012


Am Mittwoch, 5. September 2012 um 22:29:59 schrieb Bill Hoffman:
> On 9/5/2012 3:11 PM, Benjamin Eikel wrote:
> > That might become a problem. I tried
> > 
> > codeblocks --build --target=MyTarget MyProject.cbp
> > 
> > which works and builds the specified target inside the project. But that
> > opens a log window. I have not found a possibility to execute that
> > without a display, yet.
> 
> http://www.codeblocks.org/docs/manual_en.pdf
> 
> IDE CodeBlocks can be executed from the command line without a graphic
> interface.
> In such a case, there are several switches available for controlling the
> build process of a
> project. Since CodeBlocks is thus scriptable, the creation of
> executables can be integrated
> into your own work processes.
> codeblocks.exe /na /nd --no-splash-screen --built <name>.cbp
> --target=’Release’

I also read this, but it is not true. Even with all these command line 
switches a window appears showing the build log. If I set the DISPLAY 
environment variable to an invalid value, I get the error message "Error: 
Unable to initialize gtk, is DISPLAY set properly?". There is also an old 
forum discussion about this:
http://forums.codeblocks.org/index.php/topic,9731.0.html



More information about the cmake-developers mailing list