News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Run binary files directly from CodeBlocks under Linux

Started by pivit80, April 25, 2008, 12:35:30 PM

Previous topic - Next topic

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

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

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


Jenna

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 !