Load(conf.prf) not working anymore in Qt5?
-
Hi guys,
In Qt4's qmake I was using qmake "load" to ...ahem... load configurations files:
@
load(/path/to/conf.prf)
@Now look at this make output generating an error message:
@
andrea # euler ~/Desktop/starlab: qmake starlab_mini.pro
andrea # euler ~/Desktop/starlab: make
cd core/ && ( test -e Makefile || /usr/local/bin/qmake /Users/andrea/Desktop/starlab/core/core.pro -o Makefile ) && make -f Makefile
cd starlib/ && ( test -e Makefile || /usr/local/bin/qmake /Users/andrea/Desktop/starlab/core/starlib/starlib.pro -o Makefile ) && make -f Makefile
/Users/andrea/Desktop/starlab/core/starlib/starlib.pro:1: Cannot find feature /Users/andrea/Desktop/starlab/core/starlib/../starlab.prf
...
@as you can see, the PRF file actually exists.. why is then qmake not able to find it?
(Note that this software was compiling flawlessly in qt4)@
andrea # euler ~/Desktop/starlab: ll /Users/andrea/Desktop/starlab/core/starlib/../starlab.prf
-rw-r--r-- 1 andrea staff 7.1K 13 Apr 07:35 /Users/andrea/Desktop/starlab/core/starlib/../starlab.prf
@Cheers
-
Should still work. Have you tried include() instead of load()?
-
Load was never documented as an official qmake function (well, AFAIK), so you can't really blame the devs ;)
-
True. Most Qt devs actually dislike qmake, and there are plans to drop it somewhere in the future (they were very close to dumping it for Qt5, in fact!). Perhaps if QBS matures a bit more, a switch will be made.
-
Sierdzio, what were they planning to drop qmake for in Qt5?
Perhaps even just adopting cmake as a build environment might not be an evil idea, don't you think?The only reason for which I didn't adopt cmake myself is that it's not "QtCreator" friendly. I can import a project, but when you do so, it simply gets converted.
-
Because qmake is:
- ugly and old
- hard to maintain
- lacking in features
There was an extra-long discussion about this about 18 months ago on development ML, or possibly Qt5-feedback at that time. Candidates were mostly cmake, qbs and I think somebody mentioned scons + a few others.
Here a short answer from Thiago ("link":http://lists.qt.nokia.com/public/qt5-feedback/2011-October/001577.html). I think there was another thread on this, but have no time or will to search :)