News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

wx-config: no such file or directory

Started by Radek, March 22, 2012, 07:09:28 PM

Previous topic - Next topic

Radek

For some unknown reason, wx-config is not found (perhaps only partially??) in my new project. I have compiled bags of wxWidgets projects successfully - and I have never got such error. The error is reported by the linker, so, perhaps, "wx-config --cxxflags" has been found (?)

(1) I have tried wx-config from the commandline. Yes, wx-config is here.
(2) I have checked thrice that linker options really contains `wx-config --libs --gl-libs`. Yes, that's true.
(3) I have tried to rewrite the linker options. No effect.
(4) I have tried to remove the linker (and compiler) "wx-config" option - and I got the "no such file or directory" error again. (I would expect undefined references and not found headers.)
(5) I have tried to compile another wxWidgets project. Okay!!

What can be wrong?

----------------------------------------

Inspecting the .cbp file, the problem has been identified. For some reason, it contained

Add option="wx-config `--libs --gl-libs`"

instead of

Add option="`wx-config --libs --gl-libs`"

but the linker options did not display "wx-config `--libs --gl-libs`". After patching the .cbp file, the project started compile and run.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]