Author Topic: Run binary files directly from CodeBlocks under Linux  (Read 3964 times)

Offline pivit80

  • Multiple posting newcomer
  • *
  • Posts: 27
Run binary files directly from CodeBlocks under Linux
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Run binary files directly from CodeBlocks under Linux
« Reply #1 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.

Offline pivit80

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Run binary files directly from CodeBlocks under Linux
« Reply #2 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


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Run binary files directly from CodeBlocks under Linux
« Reply #3 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 !