[MacPorts] #34864: qt4-mac: Broken links

MacPorts noreply at macports.org
Wed Jun 20 23:01:41 PDT 2012


#34864: qt4-mac: Broken links
--------------------------------------------+-------------------------------
 Reporter:  mojca.miklavec.lists@…          |       Owner:  michaelld@…           
     Type:  defect                          |      Status:  new                   
 Priority:  Normal                          |   Milestone:                        
Component:  ports                           |     Version:  2.1.1                 
 Keywords:                                  |        Port:  qt4-mac               
--------------------------------------------+-------------------------------

Comment(by mojca.miklavec.lists@…):

 It looks like the most relevant part that fails is this one:
 {{{
     mac:!qt_no_framework {
        for(frmwrk_dir, $$list($$QMAKE_FRAMEWORKDIR_QT $$QMAKE_LIBDIR_QT
 $$QMAKE_LIBDIR $$(DYLD_FRAMEWORK_PATH))) {
            exists($${frmwrk_dir}/$${LIB_NAME}.framework) {
                QMAKE_FRAMEWORKPATH *= $${frmwrk_dir}
                 FRAMEWORK_INCLUDE =
 $$frmwrk_dir/$${LIB_NAME}.framework/Headers
 !qt_no_framework_direct_includes:exists($$FRAMEWORK_INCLUDE) {
                   INCLUDEPATH -= $$FRAMEWORK_INCLUDE
                   INCLUDEPATH = $$FRAMEWORK_INCLUDE $$INCLUDEPATH
                 }
                 LINKAGE = -framework $${LIB_NAME}
                 break()
               }
          }
     }
 }}}
 and the corresponding log showing that Qt was trying to look for
 `/opt/local/lib/QtGui.framework` instead of cheking for the proper path of
 framework (and it loops over
 "`exists($${frmwrk_dir}/$${LIB_NAME}.framework)`" inside "`for(frmwrk_dir,
 $$list($$QMAKE_FRAMEWORKDIR_QT $$QMAKE_LIBDIR_QT $$QMAKE_LIBDIR
 $$(DYLD_FRAMEWORK_PATH))) {`" twice):
 {{{
 DEBUG 1: Project Parser:
 /opt/local/share/qt4/mkspecs/features/qt_functions.prf:64 : Entering block
 6 (0). [for(frmwrk_dir, $$list($$QMAKE_FRAMEWORKDIR_QT $$QMAKE_LIBDIR_QT
 $$QMAKE_LIBDIR $$(DYLD_FRAMEWORK_PATH))) {]
 DEBUG 1: Running project test: exists(/opt/local/lib/QtGui.framework) [5]
 DEBUG 1: Project Parser:
 /opt/local/share/qt4/mkspecs/features/qt_functions.prf:65 : Test
 (exists($${frmwrk_dir}/$${LIB_NAME}.framework)) failed.
 }}}
 and subsequently the code
 {{{
 isEmpty(LINKAGE)
 }}}
 fails.

 Maybe QMAKE_FRAMEWORKDIR_QT is not properly set?

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


More information about the macports-tickets mailing list