|
Boost-Build : |
Subject: [Boost-build] Need help in using qt4 in relative path
From: Sherwood Hu (sherwood_at_[hidden])
Date: 2009-02-23 08:41:47
I am experimenting using boost.build to build a Qt4 application. The
version of boost.build is V2 M12, and Qt4 version 4.4.1. The compiler
is VS2005 on Windows.
The Qt4 is not enabled in the global user-config.jam file.
In jamroot file,
import qt4 ;
if ! [ qt4.initialized ]
{
ECHO "Use QT4 from the custom path" ;
using qt4 : c:/qt4 ;
}
On my computer, the Qt4 lib filenames do not have version suffix "4", So
I modified one line in Qt4. The project compiled just fine.
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?
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