[MacPorts] #58211: qt56-qtbase @5.6.3_6 on Lion: error: no type named 'u16string' in namespace 'std'

MacPorts noreply at macports.org
Wed Mar 20 16:34:42 UTC 2019


#58211: qt56-qtbase @5.6.3_6 on Lion: error: no type named 'u16string' in namespace
'std'
--------------------------+---------------------------------
  Reporter:  kencu        |      Owner:  MarcusCalhoun-Lopez
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  lion
      Port:  qt56-qtbase  |
--------------------------+---------------------------------

Comment (by kencu):

 I won't claim it's the elegant fix, but in `mkspecs/qmodule.pri` (which
 seems to be generated during `configure` and is available `post-
 configure`) changing this line seems to get past these errors -- change:
 {{{
 QMAKE_CXXFLAGS = -D_GLIBCXX_USE_CXX11_ABI=0
 }}}
 to
 {{{
 QMAKE_CXXFLAGS = -stdlib=macports-libstdc++ -D_GLIBCXX_USE_CXX11_ABI=0
 -arch x86_64
 }}}
 Let you know for sure in a few hours when qtbase is finished building on
 this 10.7 system.
 Obviously the right fix is to see how `qmodule.pri` is generated in the
 first place and fix that, but at the moment I don't know how that is done.
 Funny that it is already picking up the `D_GLIBCXX_USE_CXX11_ABI` part
 from somewhere, but not the `stdlib` bit.

-- 
Ticket URL: <https://trac.macports.org/ticket/58211#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list