Qt-interest Archive, October 2006
qmake: bad dependicies in generated files?
Message 1 in thread
Hello.
I have project like this:
$ ls
dialog main.cpp mainwin.cpp mainwin.hpp mainwin.ui Makefile
qmake-test qmake-test.pro
$ ls dialog/
dialog.cpp dialog.hpp dialog.ui
"Makefile", generated by qmake:
qmake -project && qmake qmake-test.pro
is not valid:
dialog.o not depend on dialog.ui,
and when I change dialog.ui, I dont see the modification after rebuild.
How can I fix this?
May be put *.ui files somewhere, or edit generated by qmake -project
files somehow?
--
[ signature omitted ]
Message 2 in thread
Just to confirm the obvious... The .ui did get picked up by the qmake -project call?
Ie, qmake-test.pro contains it in the FORMS list?
Scott
________________________________
From: Paul Drynoff [mailto:pauldrynoff@xxxxxxxxx]
Sent: Tue 10/3/2006 11:08 AM
To: qt-interest@xxxxxxxxxxxxx
Subject: qmake: bad dependicies in generated files?
Hello.
I have project like this:
$ ls
dialog main.cpp mainwin.cpp mainwin.hpp mainwin.ui Makefile
qmake-test qmake-test.pro
$ ls dialog/
dialog.cpp dialog.hpp dialog.ui
"Makefile", generated by qmake:
qmake -project && qmake qmake-test.pro
is not valid:
dialog.o not depend on dialog.ui,
and when I change dialog.ui, I dont see the modification after rebuild.
How can I fix this?
May be put *.ui files somewhere, or edit generated by qmake -project
files somehow?
--
[ signature omitted ]
Message 3 in thread
On 10/3/06, Scott Aron Bloom <scott@xxxxxxxxxxxx> wrote:
> Just to confirm the obvious... The .ui did get picked up by the qmake -project call?
>
> Ie, qmake-test.pro contains it in the FORMS list?
>
Yes, of course.
$ grep FORMS qmake-test.pro
FORMS += mainwin.ui dialog/dialog.ui
The problem in generated Makefile:
mainwin.o: mainwin.cpp dialog/dialog.hpp \
mainwin.hpp \
ui_mainwin.h
but
dialog.o: dialog/dialog.cpp dialog/dialog.hpp
and thas all.
$ grep ui dialog/dialog.hpp
#include "ui_dialog.h"
$ grep dialog.hpp dialog/dialog.cpp
#include "dialog.hpp"
--
[ signature omitted ]
Message 4 in thread
Paul Drynoff wrote:
> dialog.o not depend on dialog.ui,
dialog.o should not depend directly on dialog.ui, but it should depend
on it indirectly through the following rule:
ui_dialog.h: dialog.ui
uic dialog.ui -o ui_dialog.h
(thus dialog.o should depend on ui_dialog.h)
Which Qt/qmake version is this? (try qmake --version)
--
[ signature omitted ]
Message 5 in thread
$ qmake -version
QMake version: 2.00a
Using Qt version 4.1.4 in /usr/lib/qt4
On 10/4/06, Jan-Arve Sæther <jasaethe@xxxxxxxxxxxxx> wrote:
> Paul Drynoff wrote:
> > dialog.o not depend on dialog.ui,
>
> dialog.o should not depend directly on dialog.ui, but it should depend
> on it indirectly through the following rule:
> ui_dialog.h: dialog.ui
> uic dialog.ui -o ui_dialog.h
>
> (thus dialog.o should depend on ui_dialog.h)
>
> Which Qt/qmake version is this? (try qmake --version)
>
> --
> Jan- Arve Sæther - jasaethe [at] trolltech [dot] com
> Trolltech AS - Sandakerveien 116 - PO Box 4332 Nydalen - 0402 Oslo, Norway
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]