Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.1, 5.9.2, 5.9.3
-
None
-
Distro: Fedora Linux 26
Compiler: Clang 4.0.1 final
Qt: 5.9 branch
Description
During configure process, using clang, test for libiinput fails as using nullptr and the compiler flags not exposing C++ 11 ( or higher ).
On the current configure have the option -c+std c+11
This is how the compilation of libinput happens, leading to Qt assume a wrong libinput installed breaking later the compilation:
clang++ -c -pipe -g -w -fPIC -I. -I/code/qt-everything/qt5/qtbase/mkspecs/linux-clang -o main.o main.cpp
main.cpp:7:37: error: use of undeclared identifier 'nullptr'
libinput_event_pointer_has_axis(nullptr, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL);
^
1 error generated.
make: *** [Makefile:297: main.o] Error 1
As a test simply adding - std=c++11 in QMAKE_CXX_FLAGS on mkspecs/linux - clang makes test work properly and Qt compiled.
The possible proper way is to expose the configure generated flags to compiler in the tests.
Attachments
Issue Links
- relates to
-
QTBUG-63483 conftest does not use CXXFLAGS
- Closed
- replaces
-
QTBUG-55568 configure tests run without -std=c++11
- Closed