Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: pivit80 on April 25, 2008, 12:35:30 PM

Title: Run binary files directly from CodeBlocks under Linux
Post by: pivit80 on April 25, 2008, 12:35:30 PM
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:
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)


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
Title: Re: Run binary files directly from CodeBlocks under Linux
Post by: Jenna on April 25, 2008, 05:54:47 PM
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.
Title: Re: Run binary files directly from CodeBlocks under Linux
Post by: pivit80 on April 26, 2008, 04:20:56 PM
QuoteYou 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.

Ok, but How can I correct this error?

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)


Thank you.
pv

Title: Re: Run binary files directly from CodeBlocks under Linux
Post by: Jenna on April 26, 2008, 04:31:54 PM
The easiest way would be to install xterm:

apt-get install xterm


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:

konsole --caption $TITLE -e


I did not try this !