Boost logo

Boost-Build :

Subject: Re: [Boost-build] Need help in using qt4 in relative path
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-23 10:59:37


AMDG

Sherwood Hu wrote:
> The Qt4 is not enabled in the global user-config.jam file.
>
>
>
> In jamroot file,
>
>
>
> <snip>
>
> However, I would like to use qt4 from a path relative to the current
> source directory. Our convention is to place third party libs in a
> directory relative to the current source location, such as ../../lib/qt4.
>
>
>
> If I changed the Qt4 path to relative path, the project failed to
> compile:
>
>
>
> if ! [ qt4.initialized ]
>
> {
>
> ECHO "Use QT4 from the custom path" ;
>
> using qt4 : ../../lib/qt4 ;
>
> }
>
>
>
> It looks that qt4.jam module does not handle relative path. Is there a
> patch or workaround?
>

Use path-constant to get an absolute path relative to the location of
Jamroot.

path-constant qt4-path : ../../lib/qt4 ;
using qt4 : $(qt4-path) ;

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk