Bug 76013

Summary: qmake project: run 'qmake' before make
Product: [Applications] kdevelop Reporter: Daniel Franke <franke.daniel>
Component: Build tools: QMakeAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 3.0.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Daniel Franke 2004-02-24 13:48:04 UTC
Version:           3.0.1 (using KDE 3.1.4)
Installed from:    compiled sources
Compiler:          gcc version 3.2.2
OS:          SunOS (sun4u) release 5.8

When moving projects between platforms, it may occur that qt is located in different places, e.g. '/usr/lib/qt3' (host1) and 'usr/local/qt3' (host2). Therefore running 'make' on a Makefile created on host1 may fail on host2:

--
* cd /tmp/sibsimbuilder && QTDIR="/usr/local/qt3" gmake -k  
* gmake: *** No rule to make target `/usr/lib/qt3/mkspecs/default/qmake.conf', needed by `Makefile'. 
* gmake: Failed to remake makefile `Makefile'. 
* gmake[1]: *** No rule to make target `/usr/lib/qt3/mkspecs/default/qmake.conf', needed by `Makefile'. 
* gmake[1]: *** No rule to make target `/usr/lib/qt3/lib/libqt-mt.prl', needed by `Makefile'. 
* gmake[1]: Failed to remake makefile `Makefile'.
[...]
--

Running qmake prior to (g)make solves this.

BTW: these make errors aren't highlighted as compile errors are (red)?!
Comment 1 Daniel Franke 2004-02-25 18:30:50 UTC
Giving this some more thought, I believe this report should be closed as INVALID, since no one expects an automake project to work when moving it around after running 'configure'. In an automake based project one has to re-configure to get it working again - corresponding to run 'qmake' after moving a qmake based project ...
Comment 2 Amilcar do Carmo Lucas 2004-02-27 11:00:42 UTC
Like he said, the user should do it. It's not our job to do it.