Problem with makefile.unx when compiling opengl applications

Iulian-Nicu Serbanoiu undergraver at gmail.com
Thu Oct 5 01:19:27 PDT 2006


On 10/4/06, Vadim Zeitlin <vadim at wxwindows.org> wrote:
>
> On Wed, 4 Oct 2006 07:17:35 +0300 Iulian-Nicu Serbanoiu <
> undergraver at gmail.com> wrote:
>
> No, it's not there because "gl" is just one of many (14 at the last count)
> wx libraries. It doesn't make sense to treat it specially, so the only
> thing which would make sense would be to list all libraries but I don't
> know how can we do it without hardcoding them in wx-config script itself.


I think this is without hardcoding ... but it is not really tested ...
In my ubuntu it works.


ins at ins-desktop:~$ bash --version
GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
ins at ins-desktop:~$

ins at ins-desktop:~$ cat my.sh
#!/bin/sh

PREFIX=3D`wx-config --prefix`
BASENAME=3D`wx-config --basename`
RELEASE=3D`wx-config --release`
BEGIN_PATH=3D$PREFIX/lib/lib$BASENAME\_
END_PATH=3D-$RELEASE.so
LIST=3D`ls $BEGIN_PATH*$END_PATH`

for FILE in $LIST; do
        #echo $FILE
        expr "$FILE" : "$BEGIN_PATH\(.*\)$END_PATH"
done

ins at ins-desktop:~$ ./my.sh
adv
animate
core
deprecated
fl
gizmos
gizmos_xrc
gl
html
media
mmedia
ogl
plot
qa
stc
svg
xrc
ins at ins-desktop:~$


Using echo instead of expr ( see script ) reveales this in my case:

ins at ins-desktop:~$ ./my.sh
/usr/lib/libwx_gtk2u_adv-2.6.so
/usr/lib/libwx_gtk2u_animate-2.6.so
/usr/lib/libwx_gtk2u_core-2.6.so
/usr/lib/libwx_gtk2u_deprecated-2.6.so
/usr/lib/libwx_gtk2u_fl-2.6.so
/usr/lib/libwx_gtk2u_gizmos-2.6.so
/usr/lib/libwx_gtk2u_gizmos_xrc-2.6.so
/usr/lib/libwx_gtk2u_gl-2.6.so
/usr/lib/libwx_gtk2u_html-2.6.so
/usr/lib/libwx_gtk2u_media-2.6.so
/usr/lib/libwx_gtk2u_mmedia-2.6.so
/usr/lib/libwx_gtk2u_ogl-2.6.so
/usr/lib/libwx_gtk2u_plot-2.6.so
/usr/lib/libwx_gtk2u_qa-2.6.so
/usr/lib/libwx_gtk2u_stc-2.6.so
/usr/lib/libwx_gtk2u_svg-2.6.so
/usr/lib/libwx_gtk2u_xrc-2.6.so
ins at ins-desktop:~$


Is it ok ?

Thanks,

Iulian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20061005/a47=
8393f/attachment.htm


More information about the wx-users mailing list