User forums > Help
No console window appears when I run a console application
Jenna:
--- Quote from: libfab on June 14, 2008, 05:53:53 pm ---There's no such xterm test at configure stage (whether in my config.log or in configure screen output), despite the fact that xterm is installed and alway was.
So it might be an issue with the build process. See build output attached (boostrap, configure and start of make stage).
Best, Fab
--- End quote ---
I don't mean the output of the codeblocks building process, but the one of the "Build Log" if I run the "Hellow world" sample created by the C::B wizard.
You run "./configure" with the parameter "--with-contrib=all".
The correct parameter is "--with-contrib-plugins=all". I wonder whay you don't see an error message like this one:
--- Code: ---configure: WARNING: Unrecognized options: --with-contrib
--- End code ---
.
By the way how do you make gcc-4.3 compile C::B ? For me it does not work. If I have a clean source-tree it runs without errors, but lots of warnings, because of unsecure parentheses, but it does not build the executable "codeblocks" itself. If I run it a second teime I get a segfault.
I did not try this with "./configure, make ...", but only with C::B itself, both as batch-build and from inside C::B.
I will try the "make"-method and see if it works.
EDIT:
works with gcc-4.3 and "make", so I guess it might be a problem with some build-options in C::B's project-file, that does not work correctly with 4.3.
By the way "xterm" is still working.
libfab:
Now I see what you mean with Build log!
Here its goes, as you'll see the paths are quite long and there's a couple of libs:
Checking for existence: /home/fab/Dev/software/DVD-Audio/DVD-Audio tools/dvda-author/dvda-author2008/dvda-auhor.2008.06.rc1/Code::Blocks_project/bin/Debug/dvda-author
Executing: /usr/bin/xterm -e /usr/local/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.:/home/fab/Dev/software/DVD-Audio/DVD-Audio tools/dvda-author/dvda-author2008/dvda-auhor.2008.06.rc1/lib:/home/fab/Dev/software/DVD-Audio/DVD-Audio tools/dvda-author/dvda-author2008/dvda-auhor.2008.06.rc1/Code::Blocks_project/c_utils /home/fab/Dev/software/DVD-Audio/DVD-Audio\ tools/dvda-author/dvda-author2008/dvda-auhor.2008.06.rc1/Code::Blocks_project/bin/Debug/dvda-author -l ~/log -P -o ~/DVD-AUDIO -i ~/Dev/software/DVD-Audio/soundfiles -V ~/VIDEO_TS (in /home/fab/Dev/software/DVD-Audio/DVD-Audio tools/dvda-author/dvda-author2008/dvda-auhor.2008.06.rc1/Code::Blocks_project/.)
The console outputs :
sh: tools/dvda-author/dvda-author2008/.../lib:/home/fab/.../DVD-AUDIO: not found
which corresponds to the green 'subpath' chunk above.
So now at least there's a diagnosis: it's not a Ubuntu-related issue but a classic white-space-in-path issue while parsing the lib path command-line. Should be fairly easy to fix now.
I have OK console runs with a simpler project that does not have white spaces in paths.
As for ./configure --with-contrib(-plugins) I must have configured and built once with the correct command line, so now the plugins are there anyway? Looks like black magic, but anyway all plugins are there all-right.
Ubuntu 'make' tips:
I use the latest 4.3.1 (4.4.0 experimental is echoed by gcc --version) after compiling fresh gnu sources.
My advice would be to build gcc again freshly from sources as I did and start it all over with a clean svn trunk co.
I did not have a single log error except for run-of-the-mill warnings.
Note: do install GMP and MPFR with adequate versions. This anyway will be signalled by ./configure.
I have deep respect for the C::B build system, which is useful for most projects. However, goodol' autotools still hold the ground when it comes to checking a user's environment. My guess is that the C::B building process, when used with gcc, did not output the missing libs in your system file tree.
Best, Fab
Jenna:
@libfab:
I just posted a bug-report and a patch at berlios.
More in this thread: http://forums.codeblocks.org/index.php/topic,8607.msg62935.html#msg62935
It would be nice if you can try the patch and post if it works for you.
Please answer in the new thread.
.
Navigation
[0] Message Index
[*] Previous page
Go to full version