I am using Code::Blocks to develop programs that run on both Win32 and Linux.
Then I have two developpment environment, both with Code::Blocks, so that I can switch from one to the other depending on the developpement/debugging issues.
This is perfect, really :-)
Now the bad point...
Sometimes, I just do a simple change on the windows environment, and just want to recompile on the Linux one. I could move to the linux box and log in, but I would rather SSH to it, and do a command-line build. It is far easier and, if I don't need to edit the code, I don't need the graphical environement either.
BUT when I do it, Code::Blocks returns an error saying :
ERROR: Unable to iitialize gtk, is DISPLAY set properly ?
And I cannot go further.
If I use the exact same command line on windows, or on the linux box after login in the X server, then no problem, the build is done. But it opens the build log window, which is probably why I had the error.
Finally, if I install cygwin's X server on my windows box and export the display to it, the build can be done...
This is a problem for me, because my team is preparing to use a build server for the team work, and this build server will not have an X server installed. Then this mean I would not be able to make it build my Code::Blocks projects.
Would it be possible to add an option on command line that says : "I don't want ANY window to get opened" or something like that ?
Regards,
LittleJawa