Author Topic: CodeBlocks 1.0 RC 2 cannot find wx-config and sdl-config on Ubuntu 5.10  (Read 3499 times)

Offline doctor_vitus

  • Multiple posting newcomer
  • *
  • Posts: 15
Hi all!

I hope this hasn't been asked and answered formerly, at least I could not find such a thread.

I have CB 1.0 RC2 on Ubuntu 5.10, installed from the official binary package. I start up with a wxWidgets project. When I try to compile, I get the following:

Switching to target: default
Compiling: main.cpp
g++: `wx-config: Datei oder Verzeichnis nicht gefunden [1]
cc1plus: Fehler: nicht erkannte Kommandozeilenoption »-fcflags`« [2]
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


Translation from german:
[1] g++: `wx-config: file or directory not found
[2] cc1plus: Error: unrecogneized command line option »-fcflags`«

Same happens with an SDL project and sdl-config.

I do have the developer packages containing wx-config and sdl-config installed. Both are present in /usr/bin, they have access rights and can be run from the command line.

I can even compile the projects if I export the makefile from CB and run make from the command line in the project folder. It just won't work from the GUI.

Has anybody any idea what's wrong?

Thanks in advance and regards,
Vitus

takeshimiya

  • Guest
Three options:

1) Use the forum search.
2) Go to Settings->Compiler->Other and set the build mode to "GNU make". Backticks worked with it.
3) Download and install a nightly build, this has been fixed long ago.

Offline doctor_vitus

  • Multiple posting newcomer
  • *
  • Posts: 15
Hi,

I installed the latest Nightly Build a couple of minutes before I read your post, and now it works. Thanks a lot! :-)

Regards,
Vitus