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:
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)

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
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.

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)

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:
Code
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:
Code
konsole --caption $TITLE -e

I did not try this !