Quote:
Originally Posted by
singermornings
qmake is the worst makefile generator that i have tried.
I agree with my preposter - don't use it if you don't like it but it has nothing to do with your problems.
Quote:
For example, if I want to support xml documents, i must add "xml" at QT variable. What the fuck? qmake should automatically recognize and add it!
You are right. In fact it should detect what you want to do with them and write the application for you. Or maybe it should even have a --magically-deposit-lots-of-money-on-my-bank-account mode :)
Qt is composed of a set of libraries. By default qmake assumes you want to use the "core" and "gui" ones as they are the most commonly used one. If you want to use the xml library or the networking library, you have to tell qmake you want your application linked against it. It's not possible to determine that just by looking at your source code and on the other hand there is no point in linking against libxml, ssl, opengl and lots of other dependencies if you don't use them so the library is disabled by default.
If you want to turn it on by default then that is possible - add "QT+=xml" to the qmake.conf file located in the mkspecs subdirectory appropriate for your platform.
Quote:
Other example: I can't compile any qt project from my MacOSX to a Windows executable. qmake doesn't supports cross-compiling? it really sux
Sure it does but you actually need to have a cross compiler and tell qmake you want to use it by setting an appropriate specs for it. QMake doesn't read minds, it won't guess it by itself.
Quote:
Finally, if I want to use qmake to install binary files on macos and windows, is imposible.
Strange, works fine for me :) Well... for Windows at least - I don't have a Mac :( If anyone wants to donate me one, I'll be happy to accept it.
Quote:
I want qmake installs a .exe file when i do a make install on windows and qmake installs a .app directory when i do a make install on MacOSX! Also, I want qmake installs a .bin file and gives execution rights to it when i do a make install on linux, but I think qmake will never be able to do
What exactly did you try? Qt uses qmake to install itself and it seems to do everything you want to be done so... I think the blame is on you not on QMake.
Quote:
qmake looks like a beta software. Is only a toy for kids...
True. I sometimes feel like a kid when playing with qmake and I pity people who can't admit they don't know how to do something but instead they blame the hammer for not being able to strike the nail straight. We even have a proverb in Poland about it - that a poor balerina blames even the edge of her skirt for her bad dance.
Sorry for my malicious words - they wouldn't be here if you didn't use one specific word in your post. I'm sure you know which one :)
Oh... one more thing - QMake is not tied to Qt and Qt is not tied to QMake (although QMake is implemented using a subset of QtCore - but it doesn't depend on Qt!). You can use either of them without the other one. QMake is not perfect, in fact it has many problems and limitations but none of those you described actually.