Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: kingsyj on May 07, 2011, 06:26:17 pm

Title: [suggestion]improving the command line tools
Post by: kingsyj on May 07, 2011, 06:26:17 pm
wo!! before I have a try, I can't believe it's so powerful a IDE. but I discovered a little problem when I use it to build the project in command line( or terminal) under linux(ubuntu), such as this:

codeblocks --rebuild myproj.cbp --target="Debug"

the application pop a error message that: Error: Unable to initialize gtk, is DISPLAY set properly?

I think it is noway to work like that, I have try every options, but still can't fix this problem

it's quite of disappointing, if I can't build my project under the commandline or bash shell and have to force me using the GUI mode

the main reason for this is that, I plan to create my codeblocks project under windows, and then submit to linux system, and then I will use a ssh client to remote connect to the linux, and test my codeblocks projects under bash shell
Title: Re: [suggestion]improving the command line tools
Post by: oBFusCATed on May 07, 2011, 07:35:35 pm
Unfortunately, C::B uses wxGTK, which depends on X11 running.
There is work done to fix this problem, but it have not been finished.

Here is the branch: http://svn.berlios.de/wsvn/codeblocks/branches/codeblocks_console/?rev=7141&peg=7141#a9d0bd8ef7e401af0a01b460d3e4bea4d
Title: Re: [suggestion]improving the command line tools
Post by: Jenna on May 07, 2011, 08:18:34 pm
More details here:
http://forums.codeblocks.org/index.php/topic,14402.msg96848.html#msg96848 (http://forums.codeblocks.org/index.php/topic,14402.msg96848.html#msg96848)
Title: Re: [suggestion]improving the command line tools
Post by: Audiodroid on June 25, 2015, 12:20:15 pm
Hello,

I have just used ssh to connect to a raspberry pi only to find out even typing

codeblocks --help

in the shell will produce the same error message. I agree that Codeblocks is great, but it would be fantastic if this would work as-well. ;-)

This thread is from 4 years ago, has there been any progress in the meanwhile? If you can point me to the latest branch, maybe I can join in to fix this!?
Title: Re: [suggestion]improving the command line tools
Post by: oBFusCATed on June 26, 2015, 12:32:52 am
Everything is in master. But the issue is not fixed.
If you have the x11 libs installed on your pi then you can probably use ssh -X (x11 tunelling) to workaround the problem.