Boost logo

Boost-Build :

Subject: [Boost-build] On demand Qt4 compiling.
From: Thomas Suckow (thomas.suckow_at_[hidden])
Date: 2009-12-29 11:13:42


I've been working to create a completely self contained build of our
project using boost-build.

I've run across a bit of a snag however in the usage of Qt.
qt4.jam appears to be designed to handle the addition of a jamfile.v2
to Qt's source directory to manage QtCore, QtGui, etc.
But how to manage the building of moc, uic, etc. for use? I have been
unable to locate any examples of such a setup & my progress is very
slow going.
Recommendations? Tips? Tricks? Am I crazy?

Part of the reason for this self containment is the desire to:
Native Compile
  Linux x86
  Linux AMD64
  Windows (mingw)

Cross Compile (Host: Linux AMD64)
  Linux x86
  Windows (mingw)

Which means we need to build moc, uic on the host and then compile for
the target.
I had some trouble with this because cross compiling to windows from
linux causes a tool-requirements mismatch in qt4.jam. My hack was to
remove the requirements, but is there a better way?

I would love any input to point me in the right direction.

Thanks,
Thomas


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