@jcfr
I’m attempting to build Qt5.10.0 using the qt-easy-build/Build-qt.sh script to deal with the rpath issue with packaging Slicer on Mac, but it fails. Help?
Operating system is MacOS 10.12. Xcode 9.2
The Xcode installation doesn’t have the 10.12 sdk, it has 10.13.
That’s supposed to be fixed in 5.10.1, see: https://bugreports.qt.io/browse/QTBUG-65075
5.10.1 should be a clean upgrade in qt-easy-build, just change the version and the MD5 sum.
(or, alternatively and less than ideal: remove -Werror in the compiler command line options actually, that’s buried in the qt build scripts, which are fairly confusing. It will probably be much easier to upgrade the version)
Ok, 5.11.1 didn’t compile. I’ll try 5.10.1.
The error:
In file included from main.cpp:19:
In file included from …/…/3rdparty/chromium/base/at_exit.h:9:
In file included from …/…/3rdparty/chromium/base/callback.h:9:
In file included from …/…/3rdparty/chromium/base/callback_internal.h:14:
…/…/3rdparty/chromium/base/memory/ref_counted.h:155:5: warning: use of this statement in a constexpr constructor is a C++14
extension [-Wc++14-extensions]
needs_adopt_ref_ = true;
^
linking …/…/lib/QtWebEngineCore.framework/Versions/5/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess
In file included from main.cpp:20:
In file included from …/…/3rdparty/chromium/base/files/file_path.h:115:
…/…/3rdparty/chromium/base/strings/string_piece.h:226:18: warning: ‘constexpr’ non-static member function will not be
implicitly ‘const’ in C++14; add ‘const’ to avoid a change in behavior [-Wconstexpr-not-const]
constexpr void remove_prefix(size_type n) {
^
const
…/…/3rdparty/chromium/base/strings/string_piece.h:231:18: warning: ‘constexpr’ non-static member function will not be
implicitly ‘const’ in C++14; add ‘const’ to avoid a change in behavior [-Wconstexpr-not-const]
constexpr void remove_suffix(size_type n) { length_ -= n; }
^
const
…/…/3rdparty/chromium/base/strings/string_piece.h:226:18: error: constexpr function’s return type ‘void’ is not a literal
type
constexpr void remove_prefix(size_type n) {
^
…/…/3rdparty/chromium/base/strings/string_piece.h:231:18: error: constexpr function’s return type ‘void’ is not a literal
type
constexpr void remove_suffix(size_type n) { length_ -= n; }
^
compiling …/…/include/QtWebEngine/QtWebEngineDepends
143 warnings and 7 errors generated.
make[3]: *** [.obj/main.o] Error 1
make[2]: *** [sub-tools-qwebengine_convert_dict-make_first] Error 2