Boost logo

Boost-Build :

From: Juergen Hunold (hunold_at_[hidden])
Date: 2005-09-13 13:59:52


Hi Volodya !

On Tuesday 13 September 2005 13:09, Vladimir Prus wrote:
> 3. The examples in example/qt are updated -- now there are adjusted
> examples for Qt4, and new example for moccing CPP files.

Cool.

> I've tested all examples with Qt3 and Qt4, and everything looks OK,
> but a second look is appreciated.

Sorry, they don't work for me :-((

I get
/home/hunold/packages/boost/tools/build/v2/build/type.jam:140: in
type.validate from module type
error: Unknown target type MOCCABLE_CPP
( see qt-error.txt for full backtrace)

when running examples/qt/qt3/moccable-cpp/
The same for qt4, too.
I've hacked
type.register MOCCABLE_CPP : : OBJ ;

into qt.jam (see qt.jam.diff) in order to get my project to compile, but
then I get
home/hunold/packages/boost/tools/build/v2/tools/cast.jam:57: in
construct
rule object(file-target)@1.clone-with-different-type unknown in module
object(cast-target-class)@1.
(see qt-error2.txt)

I think that something crucial is missing...

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover 
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
 --Boundary-00=_oGyJDJKUDANiCRI Content-Type: text/x-diff;
charset="iso-8859-1";
name="qt.jam.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="qt.jam.diff"
Index: v2/tools/qt.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/qt.jam,v
retrieving revision 1.12
diff -u -r1.12 qt.jam
--- v2/tools/qt.jam	13 Sep 2005 10:16:37 -0000	1.12
+++ v2/tools/qt.jam	13 Sep 2005 18:51:48 -0000
@@ -45,6 +45,8 @@
{ 
.initialized = true ;
.prefix = $(prefix) ;
+
+ type.register MOCCABLE_CPP : : OBJ ;
generators.register-standard qt.moc : H : CPP(moc_%) : <allow>qt ; 
# Note: the OBJ target type here is fake, take a look
 --Boundary-00=_oGyJDJKUDANiCRI Content-Type: text/plain;
charset="iso-8859-1";
name="qt-error.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="qt-error.txt"
cd /home/hunold/packages/boost/tools/build/v2/example/qt/qt3/moccable-cpp/
bjam gcc-3.4
/home/hunold/packages/boost/tools/build/v2/build/type.jam:140: in type.validate from module type
error: Unknown target type MOCCABLE_CPP
/home/hunold/packages/boost/tools/build/v2/kernel/modules.jam:66: in modules.call-in from module object(moc-h-generator)@1
/home/hunold/packages/boost/tools/build/v2/util/sequence.jam:43: in sequence.transform from module sequence
/home/hunold/packages/boost/tools/build/v2/build/generators.jam:153: in generator.__init__ from module object(moc-h-generator)@1
/home/hunold/packages/boost/tools/build/v2/tools/qt.jam:127: in object(moc-h-generator)@1.__init__ from module object(moc-h-generator)@1
/home/hunold/packages/boost/tools/build/v2/kernel/class.jam:92: in new from module class
/home/hunold/packages/boost/tools/build/v2/tools/qt.jam:54: in qt.init from module qt
/home/hunold/packages/boost/tools/build/v2/build/toolset.jam:26: in using from module toolset
/home/hunold/user-config.jam:80: in modules.load from module user-config
/home/hunold/packages/boost/tools/build/v2/build-system.jam:115: in load from module build-system
/home/hunold/packages/boost/tools/build/v2/example/../kernel/modules.jam:259: in import from module modules
/home/hunold/packages/boost/tools/build/v2/example/../kernel/bootstrap.jam:153: in boost-build from module
/home/hunold/packages/boost/tools/build/v2/example/boost-build.jam:2: in module scope from module
Compilation exited abnormally with code 1 at Tue Sep 13 20:53:09
 --Boundary-00=_oGyJDJKUDANiCRI Content-Type: text/plain;
charset="iso-8859-1";
name="qt-error2.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="qt-error2.txt"
cd /home/hunold/packages/boost/tools/build/v2/example/qt/qt3/moccable-cpp/
bjam gcc-3.4
/home/hunold/packages/boost/tools/build/v2/tools/cast.jam:57: in construct
rule object(file-target)@1.clone-with-different-type unknown in module object(cast-target-class)@1.
/home/hunold/packages/boost/tools/build/v2/build/targets.jam:1128: in object(cast-target-class)@1.generate
/home/hunold/packages/boost/tools/build/v2/build/targets.jam:757: in generate-really
/home/hunold/packages/boost/tools/build/v2/build/targets.jam:730: in object(main-target)@1.generate
/home/hunold/packages/boost/tools/build/v2/build/targets.jam:252: in object(project-target)@6.generate
/home/hunold/packages/boost/tools/build/v2/build-system.jam:267: in load
/home/hunold/packages/boost/tools/build/v2/example/../kernel/modules.jam:259: in import
/home/hunold/packages/boost/tools/build/v2/example/../kernel/bootstrap.jam:153: in boost-build
/home/hunold/packages/boost/tools/build/v2/example/boost-build.jam:2: in module scope
Compilation exited abnormally with code 1 at Tue Sep 13 20:57:35
 --Boundary-00=_oGyJDJKUDANiCRI-- 

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