User forums > General (but related to Code::Blocks)
wxWidgets project in Ubuntu Linux: wx-config error. Unknown flags.
momaa:
Hello,
System: Ubuntu Feisty HERD 3 (test 3 of the upcoming Ubuntu 7.04, to released in April 2007)
Code::Blocks IDE: svn build rev 3566, feb 4.
I created a simple wxWidgets 2.6 project using the wizard.
When I compile the project, it says that: "No config found to match: wx-config --version=2.6 --static=yes --unicode=no --debug=yes --cflags"
If I type the wx-config command on the command line, it reveals that some of the --flags are unknown.
$ wx-config --version=2.6 --static=yes --unicode=no --debug=yes --cflags
Warning: No config found to match: /usr/bin/wx-config --version=2.6 --static=yes --unicode=no --debug=yes --cflags
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
----------------
Wx-config does not know about these options:
--static=yes --unicode=no --debug=yes
But it accepts these arguments:
--static=no --unicode=yes --debug=no
----------------
Wx-config's help page reports this:
$ wx-config --help
wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full]
[--list] [--host=HOST] [--toolkit=TOOLKIT] [--universal[=yes|no]]
[--unicode[=yes|no]] [--debug[=yes|no]] [--static[=yes|no]]
[--version[=VERSION]] [--basename] [--cc] [--cppflags] [--cflags]
[--cxxflags] [--rezflags] [--libs] [--cxx] [--ld] [--linkdeps]
[--utility=UTIL] [LIB ...]
----------------
This Ubuntu installment has these package versions:
$ wx-config --version
2.6.3
$ apt-cache show libwxbase2.6-0
Version: 2.6.3.2.1.5ubuntu4
Replaces: libwxgtk2.6-0 (<< 2.6.3.2)
Depends: libc6 (>= 2.5-0ubuntu1), libexpat1 (>= 1.95.8), libgcc1 (>= 1:4.1.1-21ubuntu1), libstdc++6 (>= 4.1.1-21ubuntu1), zlib1g (>= 1:1.2.1)
Filename: pool/universe/w/wxwidgets2.6/libwxbase2.6-0_2.6.3.2.1.5ubuntu4_i386.deb
$ apt-cache show libwxgtk2.6-dev
Original-Maintainer: Ron Lee <ron --at-- debian.org>
Architecture: i386
Source: wxwidgets2.6
Version: 2.6.3.2.1.5ubuntu4
Depends: wx2.6-headers (= 2.6.3.2.1.5ubuntu4), libwxgtk2.6-0 (= 2.6.3.2.1.5ubuntu4), libwxbase2.6-dev (= 2.6.3.2.1.5ubuntu4), libc6-dev
Filename: pool/universe/w/wxwidgets2.6/libwxgtk2.6-dev_2.6.3.2.1.5ubuntu4_i386.debAttaxhed a screenshot.
A screenshot: http://www.futuredesktop.org/tmp/Screenshot-1.png
Of course, the project compiles succesfully if I remove the bad --arguments.
stahta01:
--- Quote from: momaa on February 04, 2007, 02:37:25 pm ---Hello,
System: Ubuntu Feisty HERD 3 (test 3 of the upcoming Ubuntu 7.04, to released in April 2007)
Code::Blocks IDE: svn build rev 3566, feb 4.
I created a simple wxWidgets 2.6 project using the wizard.
When I compile the project, it says that: "No config found to match: wx-config --version=2.6 --static=yes --unicode=no --debug=yes --cflags"
If I type the wx-config command on the command line, it reveals that some of the --flags are unknown.
$ wx-config --version=2.6 --static=yes --unicode=no --debug=yes --cflags
Warning: No config found to match: /usr/bin/wx-config --version=2.6 --static=yes --unicode=no --debug=yes --cflags
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
--- End quote ---
IMHO, It is saying that it can NOT find a compiled version on wxWidgets that matches what you are requesting.
Do you have wxWidgets 2.6 compiled on your machine with static=yes --unicode=no --debug=yes ?
If you do, it might need to be told where to find it, using --prefix.
Tim S
Biplab:
The wizard requests you to select appropriate version of wx lib. Wizard does not check existence of required wx configuration in Linux. Thus always select the appropriate version or you'll face such errors.
To check which configuration(s) you have type wx-config --list in the shell. It will give you list of available configurations. Based in that output select the appropriate options in wizard. :)
momaa:
Ok. Thanks for the explanation.
This Ubuntu machine has a default wxWidgets installation.
$ wx-config --list
Default config is gtk2-unicode-release-2.6
Default config will be used for output
Alternate matches:
base-unicode-release-2.6
It is impossible to create a wxWidgets 2.6 project (using the wizard) that compiles without manual tuning.
Newbies will not be happy.
stahta01:
--- Quote from: momaa on February 04, 2007, 06:43:29 pm ---This Ubuntu machine has a default wxWidgets installation.
$ wx-config --list
Default config is gtk2-unicode-release-2.6
Default config will be used for output
Alternate matches:
base-unicode-release-2.6
It is impossible to create a wxWidgets 2.6 project (using the wizard) that compiles without manual tuning.
Newbies will not be happy.
--- End quote ---
So what the Newbies are never happy in my view because they think that they should NOT have to do any work to learn how to code.
Tim S
Navigation
[0] Message Index
[#] Next page
Go to full version