[Qt-creator] Building non-qt programs
Andree Guenther
guenther at mpanrw.de
Thu Jan 8 15:30:55 CET 2009
Daniel Molkentin schrieb:
> ext Andree Guenther wrote:
>
>> Hi everyone!
>>
>> It seems that it is not possible to build programs that are non-qt.
>>
>>
> That's not strictly true. It requires qmake, though.
>
I found that everytime i deselect "QT core module" in the project-wizard
i get a compile-error:
'QT_VERSION was not declared in this scope'. So i thought it isn't
possible to compile non-qt programs.
btw: is this correct behaviour?
>> Is suppose that this is intended, but i think its a bad idea because i
>> need another ide for parts of the
>> program that have nothing to do with qt.
>>
>>
> It's not intention, it was simply most important for us to have Qt
> application development using qmake first. There are ongoing efforts to
> support other buildsystems like CMake and alike. Plain Makefiles could
> be supported in the future, but there are not intentions to implement it
> at this point.
>
>
>> (in my case its a network-application with the server-side on an
>> embedded system with minimal libs needed)
>>
>>
> Why not use qmake anyway? If you specify
>
> QT -= core
>
> there should be no remains of Qt, but you get the simplicity of the .pro
> syntax (unless you are using a different Makefile generator already)
>
If i understand you right, and i won't need the qt libraries on the
target system then
there is nothing to be said against qmake.
In fact more build-options would just complicate the ui unnecessarily
for guys like me.
It would just be nice to take the soucecode of any given project (wich
have normally
standard makefiles i guess), edit and compile it.
>
>> I cant find a way to use a cross-compile toolchain either - do i have to
>> use make for that?
>>
>>
> qmake is our solution for a cross compile chain, see
> http://doc.trolltech.com/4.4/qmake-manual.html
>
Erm - ok, when it comes to buildsystems I don't know the ropes.
(which is a reason more why i like QT-Creator :-)))
My testprogram won't link because of undefined references when i compile
on windows.
that is because qmake obviously sets the QMAKE_LFLAGS = -l ws2_32 option
in front
of the other arguments instead of after it (which is correct - i think
mingw has a bug here).
Therefore i cant compile on windows with QT-Creator, but have to do it
on the command
shell by typing "gcc main.cpp -l ws2_32". (instead of "gcc -l ws2_32
main.cpp" wich results
in the told undefined references)
> Cheers,
> Daniel
>
>
________________________________________
Materialpruefungsamt Nordrhein-Westfalen
Marsbruchstrasse 186
D-44287 Dortmund
Telefon: +49 (231) 4502-0
Telefax: +49 (231) 458549
E-mail: info at mpanrw.de
Internet: www.mpanrw.de
USt.-IdNr.: DE 124 728 648
Aussenstelle Erwitte
Auf den Thraenen 2
D-59597 Erwitte
Telefon: +49 (2943) 897-0
Telefax: +49 (2943) 897-33
More information about the Qt-creator-old
mailing list