[MacPorts] #51844: qt4-mac link error lc++ not found

MacPorts noreply at macports.org
Sat Jul 16 21:56:07 PDT 2016


#51844: qt4-mac link error lc++ not found
-------------------------------------+-------------------------
  Reporter:  kenneth.f.cunningham@…  |      Owner:  michaelld@…
      Type:  defect                  |     Status:  new
  Priority:  Normal                  |  Milestone:
 Component:  ports                   |    Version:  2.3.4
Resolution:                          |   Keywords:
      Port:  qt4-mac                 |
-------------------------------------+-------------------------

Comment (by kenneth.f.cunningham@…):

 OK - I realize now that the qt4-mac portfile is incredibly complicated. I
 suspect that the underlying issue could be that the mkspec chosen for this
 platform  doesn't take into account the libc++ modification done to
 10.6.8. It chooses macx-g++ as the mkspec, and (deference here to someone
 who knows better) might better be choosing macx-clang-libc++.

 To compile it as it is, I did
 {{{
 "sudo port install qt4-mac configure.sdkroot="/"
 }}}
 to get started, then manually altered a couple of Makefiles to correct
 errors
 {{{
 in src/corelib/Makefile

 add -lobjc to
 LFLAGS        = -L/opt/local/lib -lobjc -Wl,-headerpad_max_install_names
 -stdlib=libc++ -Wl,-syslibroot,/ -arch x86_64 -Wl,-syslibroot,/
 -single_module -dynamiclib -compatibility_version      4.8
 -current_version    4.8.7 -install_name
 /opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/QtCore
 -Xarch_x86_64 -mmacosx-version-min=10.6 -Xarch_x86_64 -mmacosx-version-
 min=10.6
 }}}
 and
 {{{
 in src/plugins/bearer/corewlan/Makefile

 add -framework Security
 LIBS          = $(SUBLIBS) -F/System/Library/Frameworks
 -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work
 /qt-everywhere-opensource-src-4.8.7/lib  -framework Foundation -framework
 SystemConfiguration -framework CoreWLAN -F/Library/Frameworks
 -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work
 /qt-everywhere-opensource-src-4.8.7/lib
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work
 /qt-everywhere-opensource-src-4.8.7/lib -framework QtNetwork -framework
 QtCore -framework Security
 }}}

 I believe that was all that was needed.

-- 
Ticket URL: <https://trac.macports.org/ticket/51844#comment:6>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list