Qt-interest Archive, June 2005
qmake makes me crazy
Message 1 in thread
Hello
Under Win32 I have a vcapp template in my .pro file. But in MSVC project all
libraries has a " at the beginning and at the end. And every time I need to
replace generated link list with my fixed link list without ". Is any way to
order qmake generate correct link list?
Igor Sobinov
Zultys Nizhny Novgorod Lab
Message 2 in thread
Hi,
Which version of Qt is this?
> Under Win32 I have a vcapp template in my .pro file. But in MSVC project all
> libraries has a " at the beginning and at the end. And every time I need to
> replace generated link list with my fixed link list without ". Is any way to
> order qmake generate correct link list?
I don't have Windows right now to check this out, but it's the first
time I hear of such problems. Are the " a real nuisance? What does your
*.pro file look like?
By the way, for the sake of portability, it's usually recommended to write:
TEMPLATE=app
in the *.pro file and then run qmake this way:
qmake -t vcapp foobar.pro
--
[ signature omitted ]
Message 3 in thread
> I don't have Windows right now to check this out, but it's the first
> time I hear of such problems. Are the " a real nuisance? What does
> your *.pro file look like?
>
> By the way, for the sake of portability, it's usually recommended to
> write:
> TEMPLATE=app
> in the *.pro file and then run qmake this way:
> qmake -t vcapp foobar.pro
Actually,
qmake -tp vc foobar.pro
is the recommended way, as you then don't even have to know which
template type you're dealing with. But TEMPLATE=app is definitly the
right way to go.
--
[ signature omitted ]
Message 4 in thread
In Visual Studio
TEMPLATE = vcapp
works for me, and I run qmake from the .pro/Visual Studio project
directory without any parameters.
Sam Dutton
-----Original Message-----
From: Marius Storm-Olsen [mailto:marius_noreply@xxxxxxxxxxxxx]
Sent: Friday 24 June 2005 12:29
To: qt-interest@xxxxxxxxxxxxx
Subject: Re: qmake makes me crazy
> I don't have Windows right now to check this out, but it's the first
> time I hear of such problems. Are the " a real nuisance? What does
> your *.pro file look like?
>
> By the way, for the sake of portability, it's usually recommended to
> write:
> TEMPLATE=app
> in the *.pro file and then run qmake this way:
> qmake -t vcapp foobar.pro
Actually,
qmake -tp vc foobar.pro
is the recommended way, as you then don't even have to know which
template type you're dealing with. But TEMPLATE=app is definitly the
right way to go.
--
[ signature omitted ]
Message 5 in thread
>> Actually,
>> qmake -tp vc foobar.pro
>> is the recommended way, as you then don't even have to know which
>> template type you're dealing with. But TEMPLATE=app is definitly
>> the right way to go.
>
> In Visual Studio
>
> TEMPLATE = vcapp
>
> works for me, and I run qmake from the .pro/Visual Studio project
> directory without any parameters.
Of course it works, it's just not recommended for cross-platform
development, since your project will only generate Visual Studio
projects if you don't override the template.
Normally you want the command 'qmake' to read your .pro file, and
generate a platform specific build file. On Unix you'd want a
Makefile, for example. By hardcoding vcapp, the command 'qmake' on
unix will not give you what you'd expect.
Please consider keeping TEMPLATE cross-platform by just having "app"
there, and rather call 'qmake -tp vc' from your Visual Studio tool.
(The VS integration will always call qmake with -tp vc, so it won't be
a problem to have TEMPLATE=app)
However, if you're only programming for Windows, will never use other
platforms, and no-one else will ever compile your project on other OS,
the feel free to ignore :-)
--
[ signature omitted ]
Message 6 in thread
You're absolutely right -- I'm only compiling for Windows at the moment
and, yes, I should probably change it!
Sam
-----Original Message-----
From: Marius Storm-Olsen [mailto:marius_noreply@xxxxxxxxxxxxx]
Sent: Friday 24 June 2005 16:20
To: qt-interest@xxxxxxxxxxxxx
Subject: Re: qmake makes me crazy
>> Actually,
>> qmake -tp vc foobar.pro
>> is the recommended way, as you then don't even have to know which
>> template type you're dealing with. But TEMPLATE=app is definitly
>> the right way to go.
>
> In Visual Studio
>
> TEMPLATE = vcapp
>
> works for me, and I run qmake from the .pro/Visual Studio project
> directory without any parameters.
Of course it works, it's just not recommended for cross-platform
development, since your project will only generate Visual Studio
projects if you don't override the template.
Normally you want the command 'qmake' to read your .pro file, and
generate a platform specific build file. On Unix you'd want a
Makefile, for example. By hardcoding vcapp, the command 'qmake' on
unix will not give you what you'd expect.
Please consider keeping TEMPLATE cross-platform by just having "app"
there, and rather call 'qmake -tp vc' from your Visual Studio tool.
(The VS integration will always call qmake with -tp vc, so it won't be
a problem to have TEMPLATE=app)
However, if you're only programming for Windows, will never use other
platforms, and no-one else will ever compile your project on other OS,
the feel free to ignore :-)
--
[ signature omitted ]