Sorry. I've pathced wrong string.
def CheckForPKG( context, name, version="" ):
if version == "":
context.Message( "Checking for %s... \t" % name )
ret = context.TryAction( "pkg-config --exists '%s'" % name )[0]
else:
context.Message( "Checking for %s (%s or higher)... \t" %
(name,version) )
ret = context.TryAction("*export
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/local/Trolltech/Qt-4.3.3/lib/pkgconfig
&& pkg-config --atleast-version=%s '%s'" % (version,name) )[0]
#ret = context.TryAction( "pkg-config --atleast-version=%s '%s'" %
(version,name) )[0]
context.Result( ret )
return ret
Here is my correct hacked "CheckForPKG".
And it's result now is:
Checking for pkg-config (at least version 0.15.0)... yes
Checking for QtCore (4.3 or higher)... no
QT >= 4.3 not found.
On Thursday 27 December 2007 8:42 pm, Tuma wrote:
> On Wednesday 26 December 2007 12:36 am, mike wrote:
> > Tuma wrote:
> > > I run Slackware 11.
> > > And QT4 src (same as "dev" in other distros) is built and installed.
> > >
> > > I've modified SConscript similar to your:
> > >
> > > ret = context.TryAction("*export
> > > PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/local/Tr
> > >ol ltech/Qt-4.3.3/lib/pkgconfig &&* pkg-config
> > > --atleast-pkgconfig-version=%s" %version )[0]
> > >
> > > But:
> > >
> > > scons: Reading SConscript files ...
> > > Platform: Linux
> > > QT path: /usr/local/Trolltech/Qt-4.3.3
> > > Loading qt4 tool...
> > > Checking for C library portaudio... yes
> > > Checking for C library mad... yes
> > > Checking for C library id3tag... yes
> > > Checking for C library vorbisfile... yes
> > > Checking for C library vorbis... yes
> > > Checking for C library ogg... yes
> > > Checking for C library GL... yes
> > > Checking for C library GLU... no
> > > Checking for C library glu32... no
> > > Checking for C header file /usr/X11R6/include/GL/glu.h... yes
> > > Checking for C library sndfile... yes
> > > Checking for pkg-config (at least version 0.15.0)... no
> > > pkg-config >= 0.15.0 not found.
> > >
> > > And now it crushes before QT4...
> > >
> > >
> > > -----------------------------------------------------------------------
> > >-- This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > Mixxx-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/mixxx-devel
> >
> > *export
> > PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/local/Trol
> >lt ech/Qt-4.3.3/lib/pkgconfig
> >
> >
> > &&*
> >
> > without the * !
> > and please make the build tree clean with:
> > scons -c before you build...
>
> With or without the "*", the same result:
>
> Checking for pkg-config (at least version 0.15.0)... no
> pkg-config >= 0.15.0 not found.
>
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Mixxx-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel