Problem with makefile.unx when compiling opengl applications

Vadim Zeitlin vadim at wxwindows.org
Thu Oct 5 07:13:17 PDT 2006


On Thu, 5 Oct 2006 11:19:27 +0300 Iulian-Nicu Serbanoiu <undergraver at gmail.com> wrote:

INS> I think this is without hardcoding ... but it is not really tested ...
INS> In my ubuntu it works.
INS> 
INS> ins at ins-desktop:~$ cat my.sh
INS> #!/bin/sh
INS> 
INS> PREFIX=`wx-config --prefix`
INS> BASENAME=`wx-config --basename`
INS> RELEASE=`wx-config --release`
INS> BEGIN_PATH=$PREFIX/lib/lib$BASENAME\_
INS> END_PATH=-$RELEASE.so
INS> LIST=`ls $BEGIN_PATH*$END_PATH`
INS> 
INS> for FILE in $LIST; do
INS>         #echo $FILE
INS>         expr "$FILE" : "$BEGIN_PATH\(.*\)$END_PATH"
INS> done
INS> 
INS> ins at ins-desktop:~$ ./my.sh
INS> adv
INS> animate
INS> core
INS> deprecated
INS> fl
INS> gizmos
INS> gizmos_xrc
INS> gl
INS> html
INS> media
INS> mmedia
INS> ogl
INS> plot
INS> qa
INS> stc
INS> svg
INS> xrc

 Now the question is how to integrate it with wx-config? I guess the best
would be to output the list of libraries in `wx-config --help`. Second best
would be to add --list-libs option. If you could submit a patch
implementing this, it would be great.

 Thanks in advance,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list