Qt-interest Archive, December 2006
complete-auto .pro file generation?
Message 1 in thread
Hi all,
Is there a way to make .pro file generation completely automatic?
I have been stuck by a trivial problem these days: since my app uses
QtNetwork4.dll, I have to add "QT += network" to .pro file that qmake
generates manually every time I add some new source file to the
project. I think this issue is representative, as we might modify .pro
file in many cases. For example, add icon to the app.
Is there some better way to handle this? say some configure scripts to use?
Thanks in advance :-)
--
[ signature omitted ]
Message 2 in thread
On 12/10/06, YUAN Jue <yuanjue02@xxxxxxxxx> wrote:
> I have been stuck by a trivial problem these days: since my app uses
> QtNetwork4.dll, I have to add "QT += network" to .pro file that qmake
> generates manually every time I add some new source file to the
> project. I think this issue is representative, as we might modify .pro
> file in many cases. For example, add icon to the app.
You should only use qmake -project once, not every time you have a new
file, then you must do manual editation. If you really must do qmake
-project, qmake takes a few parameters where you can add things like
network.
--
[ signature omitted ]
Message 3 in thread
On 12/10/06, Robin Ericsson <lobbin@xxxxxxxxx> wrote:
> On 12/10/06, YUAN Jue <yuanjue02@xxxxxxxxx> wrote:
> > I have been stuck by a trivial problem these days: since my app uses
> > QtNetwork4.dll, I have to add "QT += network" to .pro file that qmake
> > generates manually every time I add some new source file to the
> > project. I think this issue is representative, as we might modify .pro
> > file in many cases. For example, add icon to the app.
>
> You should only use qmake -project once, not every time you have a new
> file, then you must do manual editation. If you really must do qmake
> -project, qmake takes a few parameters where you can add things like
> network.
>
Thanks. It is very helpful for me :-)
--
[ signature omitted ]
Message 4 in thread
On Sunday 10 December 2006 08:45, YUAN Jue wrote:
> Hi all,
>
> Is there a way to make .pro file generation completely automatic?
>
> I have been stuck by a trivial problem these days: since my app uses
> QtNetwork4.dll, I have to add "QT += network" to .pro file that qmake
> generates manually every time I add some new source file to the
> project. I think this issue is representative, as we might modify .pro
> file in many cases. For example, add icon to the app.
>
> Is there some better way to handle this? say some configure scripts to use?
>
> Thanks in advance :-)
KDevelop is doing that for you (It has a QMake Manager as a plugin.) assuming
you are on Linux..
--
[ signature omitted ]
Message 5 in thread
On 11.12.06 01:43:49, Peter M. Groen wrote:
> On Sunday 10 December 2006 08:45, YUAN Jue wrote:
> > Hi all,
> >
> > Is there a way to make .pro file generation completely automatic?
> >
> > I have been stuck by a trivial problem these days: since my app uses
> > QtNetwork4.dll, I have to add "QT += network" to .pro file that qmake
> > generates manually every time I add some new source file to the
> > project. I think this issue is representative, as we might modify .pro
> > file in many cases. For example, add icon to the app.
> >
> > Is there some better way to handle this? say some configure scripts to use?
> >
> > Thanks in advance :-)
>
> KDevelop is doing that for you (It has a QMake Manager as a plugin.) assuming
> you are on Linux..
And before you try to use the on shipped in distro's: Don't. The QM in
the 3.3 version is "outdated" and unmaintained. The (not yet released,
but soon to be) 3.4 version has much better QMake Manager, see the
following link for compilation information:
http://www.kdevelop.org/index.html?filename=3.4/branches_compiling.html
Andreas
--
[ signature omitted ]