Boost logo

Boost-Build :

From: Felix E. Klee (felix.klee.jamboost_at_[hidden])
Date: 2003-01-21 07:22:13


On Tuesday 21 January 2003 08:26, Vladimir Prus wrote:
> > OK, I attached a simple "Hello World!" project including the project file
> > for qmake and the resulting Makefile.
>
> Initially I expected no problems at all, but then realized that H file
> produced by UIC needs to be mocced. But that turned out to be only slightly
> harder. Please go to examples-v2/qt-ui, run "bjam" and report your
> experience.

1st try:
[...]/examples-v2/qt-ui> bjam
...found 28 targets...
...updating 7 targets...
qt.uic-h bin/gcc/debug/main-target-hello/hello_world_widget.h
/bin/sh: hello_world_widget.ui: command not found

hello_world_widget.ui -o
bin/gcc/debug/main-target-hello/hello_world_widget.h

...failed qt.uic-h bin/gcc/debug/main-target-hello/hello_world_widget.h...
...skipped <./gcc/debug>main.o for lack of
<.-object(c-scanner)@1>main.cpp...
...skipped <./gcc/debug>hello_world_widget.cpp for lack of
<./gcc/debug>hello_world_widget.h...
...skipped <./gcc/debug>hello_world_widget.o for lack of
<./gcc/debug-object(c-scanner)@1>hello_world_widget.cpp...
...skipped <./gcc/debug>moc_hello_world_widget.cpp for lack of
<./gcc/debug>hello_world_widget.h...
...skipped <./gcc/debug>moc_hello_world_widget.o for lack of
<./gcc/debug-object(c-scanner)@1>moc_hello_world_widget.cpp...
...skipped <./gcc/debug>hello for lack of <./gcc/debug>main.o...
...failed updating 1 target...
...skipped 6 targets...

2nd try:
[...]/examples-v2/qt-ui> export PATH=.:$PATH
[...]/examples-v2/qt-ui> bjam
...found 28 targets...
...updating 7 targets...
qt.uic-h bin/gcc/debug/main-target-hello/hello_world_widget.h
/bin/sh: ./hello_world_widget.ui: Permission denied

hello_world_widget.ui -o
bin/gcc/debug/main-target-hello/hello_world_widget.h

...failed qt.uic-h bin/gcc/debug/main-target-hello/hello_world_widget.h...
...skipped <./gcc/debug>main.o for lack of
<.-object(c-scanner)@1>main.cpp...
...skipped <./gcc/debug>hello_world_widget.cpp for lack of
<./gcc/debug>hello_world_widget.h...
...skipped <./gcc/debug>hello_world_widget.o for lack of
<./gcc/debug-object(c-scanner)@1>hello_world_widget.cpp...
...skipped <./gcc/debug>moc_hello_world_widget.cpp for lack of
<./gcc/debug>hello_world_widget.h...
...skipped <./gcc/debug>moc_hello_world_widget.o for lack of
<./gcc/debug-object(c-scanner)@1>moc_hello_world_widget.cpp...
...skipped <./gcc/debug>hello for lack of <./gcc/debug>main.o...
...failed updating 1 target...
...skipped 6 targets...

Hm, somehow bjam tries to execute hello_world_widget.ui. It seems like the
first part of the uic command line is missing.

BTW, once you have that fixed, could you please make the extension of the
files generated by the uic customizable? I really prefer "h" to "hpp" and
some people might prefer eg. "cc" to "cpp".

Felix

-- 
To contact me personally don't reply but send email to 
felix DOT klee AT inka DOT de
 

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