[MacPorts] #17773: stellarium-0.10.0-1 Configure error - wrong QT version used

MacPorts noreply at macports.org
Fri Dec 26 00:24:20 PST 2008


#17773: stellarium-0.10.0-1 Configure error - wrong QT version used
---------------------------------+------------------------------------------
 Reporter:  simon@…              |       Owner:  raimue@…           
     Type:  defect               |      Status:  assigned           
 Priority:  Low                  |   Milestone:  Port Bugs          
Component:  ports                |     Version:  1.7.0              
 Keywords:  stellarium qt qmake  |        Port:  stellarium         
---------------------------------+------------------------------------------

Comment(by mcalhoun@…):

 After I changed how qt4-mac operated (r44214), I attempted to fix the
 ports which depended on qt4-mac.[[BR]]
 The fix for cmake based ports seems not to have been general enough.[[BR]]
 All I did was set the QTDIR variable[[BR]]
 (r44221, r44218, r44219, r44229, r44220, r44241, r44242, r44225, r44234,
 r44233, r44232, and r44231).

 When FindQt4.cmake tries to find qmake, it searches in the order
 {{{
 FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 PATHS
 "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin"
 "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin"
 "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]/bin"
   $ENV{QTDIR}/bin
 )
 }}}
 So QTDIR is the last place that is searched.

 Setting QT_QMAKE_EXECUTABLE NAMES explicitly (as was done in the patch)
 seems to be a better solution.[[BR]]
 [http://www.cmake.org/cmake/help/cmake2.6docs.html#command:find_program
 FIND_PROGRAM] does not search if the variable is already defined.

 The problem is most likely not confined to stellarium and would also show
 up if there were a qmake in ${prefix}/bin[[BR]]
 (e.g. from the soon to be finished qt4_select).

 I will look into the problem further.

-- 
Ticket URL: <http://trac.macports.org/ticket/17773#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list