[wx-dev] wx-config --libs doesn't add media and gl if they're
enabled
John Labenski
jlabenski at gmail.com
Sun Jul 1 19:45:36 PDT 2007
On 7/1/07, Vadim Zeitlin <vadim at wxwidgets.org> wrote:
> On Sun, 1 Jul 2007 11:03:03 -0400 John Labenski <jlabenski at gmail.com> wrote:
> JL> I've enabled the media and gl library using the configure options
> JL> however, when I run 'wx-config --libs' they aren't added? Is this correct?
>
> This doesn't seem correct to me, I'd expect it to output all available
> libraries. But the logic of wx-config is impenetrable for simple mortals...
It is a little obtuse, seems particularly complicated for what it has to do...
> JL> Is there any way to get the complete list of libs that wxWidgets has
> JL> compiled to link against?
>
> Not AFAIK. Such an option ("--has xxx"?) could be useful but, again,
> personally I try to stay as far away from wx-config as possible so someone
> braver than me would have to look into implementing it.
I'm not brave, I just want it to work.
These are the changes I made to "configure", however the real fix is
to do the same in "configure.in" I suppose. I just added the two lines
for wxUSE_MEDIACTRL and wxUSE_OPENGL below. This is used to set the
default 'wx-config --libs', see @CORE_GUI_LIBS@ in wx-config.in.
Perhaps there are more libs to do this for too?
...
if test "$wxUSE_AUI" = "yes" ; then
CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
fi
if test "$wxUSE_MEDIACTRL" = "yes" ; then
CORE_GUI_LIBS="media $CORE_GUI_LIBS"
fi
if test "$wxUSE_OPENGL" = "yes" ; then
CORE_GUI_LIBS="gl $CORE_GUI_LIBS"
fi
if test "$wxUSE_GUI" != "yes"; then
CORE_GUI_LIBS=""
fi
...
Regards,
John Labenski
More information about the wx-dev
mailing list