[Interest] building Qt 5.9 on Linux - clang or GCC?
Thiago Macieira
thiago.macieira at intel.com
Thu Dec 21 13:03:04 CET 2017
On quinta-feira, 21 de dezembro de 2017 02:11:52 CST tomek wrote:
> I should think about airports and hotels... sorry for that.
>
> But getting back to the topic, I've started build configuration as usually
> using GCC - without passing this flag at all. But it failed with this error:
>
> ERROR: C++11 <random> is required and is missing or failed to compile.
You need to fix this error before compiling Qt. As the message says, C++11
<random> is required for Qt.
In the qtbase sources, you'll find
config.tests/unix/cxx11_random/cxx11_random.cpp
Fix your compiler so it compiles that file.
It works just fine with Clang on Linux for me.
$ clang -std=c++11 -fsyntax-only config.tests/unix/cxx11_random/
cxx11_random.cpp
$ clang -v
clang version 5.0.0 (tags/RELEASE_500/final 312548)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/tjmaciei/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/7
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/7
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list