[MacPorts] #53625: qscintilla: requires C++11, not using the right compiler
MacPorts
noreply at macports.org
Thu Feb 23 09:02:13 UTC 2017
#53625: qscintilla: requires C++11, not using the right compiler
-------------------------+-----------------------
Reporter: mojca | Owner: michaelld
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: qscintilla |
-------------------------+-----------------------
Comment (by mojca):
Adding `-std=c++11` in the PortGroup helped. The compilation almost
finished, except that the build is still not [[UsingTheRightCompiler]] for
the final linking step.
As well as some weird "library not found" error.
{{{
/usr/bin/clang++ -headerpad_max_install_names -arch x86_64 -single_module
-dynamiclib -Xarch_x86_64 -mmacosx-version-min=10.7 -o
libqscintillaplugin.dylib qscintillaplugin.o moc_qscintillaplugin.o
-F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib
-L../Qt4Qt5 -lqscintilla2_qt4 -F/opt/local/libexec/qt4/Library/Frameworks
-F/opt/local/libexec/qt4/lib -L/opt/local/libexec/qt4/lib -framework
QtScript -F/opt/local/Library/Frameworks -framework QtCore -framework
QtXml -framework QtGui -framework QtDesigner
ld: library not found for -lqscintilla2_qt4
}}}
The build folder does contain `Qt4Qt5/libqscintilla2_qt4.13.0.0.dylib`,
but probably a symlink from `Qt4Qt5/libqscintilla2_qt4.dylib` is missing.
The library name is also super strange and looks like "someone forgot to
run `install_name_tool`":
{{{
> otool -L /opt/local/libexec/qt4/lib/libqscintilla2_qt4.13.0.0.dylib
/opt/local/libexec/qt4/lib/libqscintilla2_qt4.13.0.0.dylib:
libqscintilla2_qt4.13.0.0.dylib (compatibility version 13.0.0,
current version 13.0.0)
/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/QtGui
(compatibility version 4.8.0, current version 4.8.7)
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/QtCore
(compatibility version 4.8.0, current version 4.8.7)
/opt/local/lib/libgcc/libstdc++.6.dylib (compatibility version
7.0.0, current version 7.22.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 159.1.0)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/53625#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list