User forums > Using Code::Blocks
Run binary files directly from CodeBlocks under Linux
(1/1)
pivit80:
Hi,
I've CodeBlocks 8.02 installed on Kubuntu 7.10.
I doesn't manage in running a program from Codeblocks through consoleRunner.
This is the error:
--- Code: ---Checking for existence: /home/my_home/HelloWorld/bin/Release/HelloWorld
Executing: xterm -T HelloWorld -e /usr/bin/cb_console_runner /home/my_home/HelloWorld/bin/Release/HelloWorld (in /home/my_home/HelloWorld/.)
Process terminated with status 255 (0 minutes, 0 seconds)
--- End code ---
Why?
Then, I don't want to use xterm; I want to use simply the shell.
I've tried to change the relative field in the "Environment" window, without results.
Thank you in advance.
pv
Jenna:
You cannot run a shell like bash directly from X.
Or more exact you can run it, but you have no visible output.
You have to use a terminal-window like xterm or konsole.
pivit80:
--- Quote ---You cannot run a shell like bash directly from X.
Or more exact you can run it, but you have no visible output.
You have to use a terminal-window like xterm or konsole.
--- End quote ---
Ok, but How can I correct this error?
--- Code: ---Checking for existence: /home/my_home/HelloWorld/bin/Release/HelloWorld
Executing: xterm -T HelloWorld -e /usr/bin/cb_console_runner /home/my_home/HelloWorld/bin/Release/HelloWorld (in /home/my_home/HelloWorld/.)
Process terminated with status 255 (0 minutes, 0 seconds)
--- End code ---
Thank you.
pv
Jenna:
The easiest way would be to install xterm:
--- Code: ---apt-get install xterm
--- End code ---
as root from the console.
Or use "konsole" the terminal-emulator from "kde".
The command to run it (in "Settings -> Environment...") should be something like:
--- Code: ---konsole --caption $TITLE -e
--- End code ---
I did not try this !
Navigation
[0] Message Index
Go to full version