Discussion:
wx-config --query-widgetset draws a blank
robjsargent
2014-02-25 01:33:09 UTC
Permalink
On RHEL6.4 (64 bit)
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
building wxWidgets 2.8.12 as that's what follow on tool requires...

$ cd buildgtk
../configure --prefix=/usr/sup --with-gtk

after $ sudo make install
and $ sudo ldconfig

$ which wx-config
$ /usr/sup/bin/wx-config

$ wx-config --query-widgetset --query-toolkit
<<<blankline>>>
gtk2


I ask only because I'm trying to build filezilla and its ./configure is
dying clamouring on about missing/misconfigured wxWidgets
checking for wx-config... /usr/sup/bin/wx-config
checking for wxWidgets version >= 2.8.12 (--unicode=yes --universal=no)...
no
configure: error:
wxWidgets must be installed on your system
but either the wx-config script couldn't be found or
no compatible wxWidgets configuration has been installed.

Compatible wxWidgets configurations are the unicode builds
of wxGTK, wxMac and wxMSW.

Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and wxWidgets version is 2.8.12 or above.

and the only hole I see in wxWidgets it the missing widgetset.

# wx-config --libs
-L/usr/sup/lib -pthread -L/usr/lib64 -lwx_gtk2_richtext-2.8
-lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8
-lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8
-lwx_base-2.8

I've added /usr/sup/lib to LD_LIBRARY_PATH (and LOAD_LIBRARY_PATH)
I've tried both static and dynamic builds of wxWidgets

Any pointers appreciated.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-02-25 14:33:18 UTC
Permalink
On Mon, 24 Feb 2014 17:33:09 -0800 (PST) robjsargent wrote:

r> $ wx-config --query-widgetset --query-toolkit
r> <<<blankline>>>
r> gtk2

To be honest I have absolutely no idea what is --query-widgetset supposed
to return. Looking at the sources I wouldn't be surprised if empty string
is the correct value because it seems to be either that or "_univ" when
using wxUniv (which you don't).

In any case, I strongly suspect that this has nothing to do with your
problem.

r> I ask only because I'm trying to build filezilla and its ./configure is
r> dying clamouring on about missing/misconfigured wxWidgets

Have you looked at config.log for more information?

r> and the only hole I see in wxWidgets it the missing widgetset.
r>
r> # wx-config --libs

Does running it with the same options as configure uses (i.e.
--unicode=yes --universal=no) work as well?

Also, please don't run configure/make as root. You will end up by
regretting it.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Rob Sargent
2014-02-25 18:25:04 UTC
Permalink
I removed and rebuilt wxWidgets with --enable-unicode and that seems to
have done the trick.

Thanks for the tip.
Post by Vadim Zeitlin
r> $ wx-config --query-widgetset --query-toolkit
r> <<<blankline>>>
r> gtk2
To be honest I have absolutely no idea what is --query-widgetset supposed
to return. Looking at the sources I wouldn't be surprised if empty string
is the correct value because it seems to be either that or "_univ" when
using wxUniv (which you don't).
In any case, I strongly suspect that this has nothing to do with your
problem.
r> I ask only because I'm trying to build filezilla and its ./configure is
r> dying clamouring on about missing/misconfigured wxWidgets
Have you looked at config.log for more information?
r> and the only hole I see in wxWidgets it the missing widgetset.
r>
r> # wx-config --libs
Does running it with the same options as configure uses (i.e.
--unicode=yes --universal=no) work as well?
Also, please don't run configure/make as root. You will end up by
regretting it.
Regards,
VZ
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...