Priority: Not Evaluated
Affects Version/s: Qt Creator 4.10.0-beta1
Fix Version/s: None
Component/s: Building Qt Creator
When I try to build qt-creator with cmake I have this error:
Scanning dependencies of target 3rd_cplusplus
[ 0%] Building CXX object src/libs/3rdparty/cplusplus/CMakeFiles/3rd_cplusplus.dir/AST.cpp.o
In file included from /compile/qt/qt-creator/src/libs/3rdparty/cplusplus/CPlusPlusForwardDeclarations.h:36,
/opt/qt5.13/include/QtCore/qglobal.h:1204:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
- error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
make: *** [src/libs/3rdparty/cplusplus/CMakeFiles/3rd_cplusplus.dir/build.make:63: src/libs/3rdparty/cplusplus/CMakeFiles/3rd_cplusplus.dir/AST.cpp.o] Error 1
make: *** [CMakeFiles/Makefile2:291: src/libs/3rdparty/cplusplus/CMakeFiles/3rd_cplusplus.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
I build my own Qt
I use cmake 3.13.4.