News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

codeblocks' project building on non-x machine

Started by cyplo, May 05, 2007, 11:06:00 PM

Previous topic - Next topic

cyplo

Hi there !

I am totally satisfied with codeblocks as an IDE and want to make automatic test builds on the headless server with no X
Does codeblocks support pure command-line builds ?

I tried codeblocks --build workspace.workspace but it tells me that
Error: Unable to initialize gtk, is DISPLAY set properly?


Am I missing something ?

cyplo

jarro_2783

#1
I'm guessing since that one is using wxGTK, it tries to initialise wx and hence GTK first. Since it can't it just dies. What you're suggesting would be kind of nice if it could be done though.

edit: I'm pretty sure wx is responsible for "main", whenever you write something that uses wx you only derive from wx base classes. This would seem to say that wx is always initialised first so you can't do what you're asking.

Auria

That would be a nice feature to implement (jarro_2783 : it IS possible to not initialise wxWidgets first, but it might take work in C::B to use that)

jarro_2783

yeah I figured surely it had to be possible, but I also figured it wouldn't be exactly straight forward either.

mandrav

No, it's not possible now. Some wx gui classes are referenced in our sdk so a XServer running is a requirement.
This will change in a future version (e.g. 2.0+) but as you understand it will take a while...
Be patient!
This bug will be fixed soon...

cyplo

sure, thanks for your replies :)
I'll be waiting ;)
cyplo

geiermeier

What is the state on this topic. I think it's a very important feature to be able to build your project from the commandline (e.g. from a script). I've just stumbled accross git-bisect - it lets you automatically find a revision of your source code that broke a certain test. For this to work, headless builds are essential.