Author Topic: wx-config: no such file or directory  (Read 9475 times)

Offline Radek

  • Multiple posting newcomer
  • *
  • Posts: 104
wx-config: no such file or directory
« on: March 22, 2012, 07:09:28 pm »
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.
« Last Edit: March 22, 2012, 07:22:30 pm by Radek »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wx-config: no such file or directory
« Reply #1 on: March 22, 2012, 07:28:46 pm »
OK, then tell us how to reproduce it :)
(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!]