User forums > Help
codeblocks' project building on non-x machine
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
--- Code: ---codeblocks --build workspace.workspace
--- End code ---
but it tells me that
--- Code: ---Error: Unable to initialize gtk, is DISPLAY set properly?
--- End code ---
Am I missing something ?
jarro_2783:
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...
Navigation
[0] Message Index
[#] Next page
Go to full version