User forums > Using Code::Blocks

help: no console in newer daily builds... or 64-bit ubuntu 12.04

(1/3) > >>

bootstrap:
Greetings.  I've been developing an application with codeblocks on 64-bit ubuntu 10.04 LTS for a couple years.  A couple weeks ago I bought a new disk drive and performed a fresh install of 64-bit ubuntu 12.04 LTS to continue development.  I also set up my new system to update with daily builds via the pasgui ppa.  Thus I am running codeblocks svn 8024 at this point.

At various places in my application (which is a very speed-sensitive 3D game/graphics/simulation engine), my code performs timing measurements with the CPU timer and then has printf() statements to print out timing information into the console.  This was working fine before I moved onto my new installation, but now the console doesn't display, and I don't see any tab that indicates console output is being send elsewhere inside the codeblocks IDE.  So I can't be sure whether this change is due to my switch from ubuntu 10.04 to ubuntu 12.04, or due to the newer daily build.

Note: I copied over my .codeblocks directory from my old build, as well as my project directory that contains all my project.cbp files, so I did not expect the codeblocks IDE behavior to change.

What did I do wrong?  How do I fix this?

PS: Seperately, why can I not display local [and function] variables any more?  Or how can I make them display?  All I see now under "watches" is 3-element input fields where I can input variable-names, or something (with no headers to indicate what are the fields).

Jenna:
Which terminal-emulator is set up in "Settings -> Environment -> General settings -> terminal to launch console programs:" ?
Is it installed on your new system ?

bootstrap:

--- Quote from: jens on June 09, 2012, 07:23:53 am ---Which terminal-emulator is set up in "Settings -> Environment -> General settings -> terminal to launch console programs:" ?  Is it installed on your new system ?

--- End quote ---

It says "xterm -T $TITLE -e".

When I type "xterm" in console/terminal window, an xterm/console/terminal-type window does appear.

Before I upgraded from 64-bit ubuntu 10.04 LTS to 64-bit ubuntu 12.04 LTS I had never worried about consoles, and they had always appeared.

This setting above must be what is the default, because I didn't change it.

I also tried replacing "xterm" with "gnome-terminal", but still no console window is displayed.  The "gnome-terminal" is the application I usually run to execute text commands, but "xterm" also works.

Any ideas?

ouch:
What's it say in "shell to run commands in:" (same location)

But what it sounds like to me is that maybe you haven't fully rebuilt your project. (check your pre-compiled headers too)

bootstrap:

--- Quote from: ouch on June 11, 2012, 07:23:45 pm ---What's it say in "shell to run commands in:" (same location)

But what it sounds like to me is that maybe you haven't fully rebuilt your project. (check your pre-compiled headers too)

--- End quote ---

The entry for "shell to run commands in:" is /bin/sh -c

In every case I select "build ===>> clean" before I select "build ===>> build".  I wish I could just disable PCH, but I just leave it on the original setting (generate PCH alongside original header).  But frankly, I don't see any pre-compiled header files in any of my project directories, soooooo.... maybe they're not being generated.

Boo hoo... how can I made my console window appear so I can see what the printf() calls in my program are printing?   :'(

-----  LATER  -----

Here is a strange bit of information.  I created a new project... essentially just a one function program:


--- Code: ---int main (int argc, chart** argv) {

  int a = 0;
  printf ("hello output console window... i know you are there somewhere.\n")

  return (0);
}
--- End code ---

What's going on here, anyway?

Navigation

[0] Message Index

[#] Next page

Go to full version