[Interest] Building app with clang++ and Qt 5.x/gcc_64 SDK

Ch'Gans chgans at gna.org
Thu Jun 16 10:21:40 CEST 2016


Hi there,

I'm on Ubuntu Linux 16.04, i have installed Qt 5.5, 5,6 and 5.7 using
the Qt unified online installer. I would like to know if it is
supported to build a Qt app using clang++/64 and Qt 5.x gcc/64
official binaries.
Right now, I'm having building errors like:
------------------------------------------------------------------------------------------
...
/usr/bin/clang++ -m64 -g -O0 -Wall -Wextra -pipe -fexceptions
-fvisibility=default -std=c++11 -stdlib=libstdc++ -fPIC [...]
...
In file included from
/home/krys/Qt5.7.0/5.7/gcc_64/include/QtCore/qbytearray.h:52:
/usr/include/c++/v1/string:1938:44: error: 'basic_string<_CharT,
_Traits, _Allocator>' is missing exception specification
'noexcept(is_nothrow_copy_constructible<allocator_type>::value)'
basic_string<_CharT, _Traits, _Allocator>::basic_string(const
allocator_type& __a)

^
/usr/include/c++/v1/string:1326:40: note: previous declaration is here
_LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)
------------------------------------------------------------------------------------------

I have tried forcing (or not) clang++ flags with '-std=c++11' and/or
'-stdlib=libstdc++' but it doesn't make any difference.

I'm not sure if this is a Ubuntu 16.04 bug, a Qt bug or if simply this
kind of build is simply not supported.

Thx,
Chris



More information about the Interest mailing list