Qt 5.15.2 build error
-
I want to install Qt5 compiling source on a Linux Ubuntu 23.10 OS (Mantic)
I download the qt-everywhere-src-5.15.2.tar.gz file from the Qt
(http://download.qt.io/archive/qt/5.15/5.15.2/single pageafter unzipping this file, i did a shadow building, that i create a qt-everywhere-src-5.15.2-build directory out of the src file.
i run inside the build directory, the configure filecd ~/qt-everywhere-src-5.15.2-build
~/ qt-everywhere-src-5.15.2/configureI should modify the ~/qt-everywhere-src-5.15.2/qtbase/src/corelib/global/qglobal.h file to avoid a first error (error : ‘numeric_limits’ is not a class template..)
Such an error is documented on the web. One should add the three first lines to the qglobal.h header file
#ifdef __cplusplus
#include<limits>
#endifAfterthat configure is successfull and generate makefiles in the ~/qt-everywhere-src-5.15.2-build repertory
I ran then make but have the following error
I try on a second PC the same process. I note that on this other PC the output lines were different since it request that llvm-config file is in the PATH
So i add in my .basrhc file ‘export PATH=${PATH}:/usr/lib/llvm-13/bin’
In addition i add différents packages with synaptic :
I ran again make put get same error.I did not found any information on the web on such an error
-
I want to install Qt5 compiling source on a Linux Ubuntu 23.10 OS (Mantic)
I download the qt-everywhere-src-5.15.2.tar.gz file from the Qt
(http://download.qt.io/archive/qt/5.15/5.15.2/single pageafter unzipping this file, i did a shadow building, that i create a qt-everywhere-src-5.15.2-build directory out of the src file.
i run inside the build directory, the configure filecd ~/qt-everywhere-src-5.15.2-build
~/ qt-everywhere-src-5.15.2/configureI should modify the ~/qt-everywhere-src-5.15.2/qtbase/src/corelib/global/qglobal.h file to avoid a first error (error : ‘numeric_limits’ is not a class template..)
Such an error is documented on the web. One should add the three first lines to the qglobal.h header file
#ifdef __cplusplus
#include<limits>
#endifAfterthat configure is successfull and generate makefiles in the ~/qt-everywhere-src-5.15.2-build repertory
I ran then make but have the following error
I try on a second PC the same process. I note that on this other PC the output lines were different since it request that llvm-config file is in the PATH
So i add in my .basrhc file ‘export PATH=${PATH}:/usr/lib/llvm-13/bin’
In addition i add différents packages with synaptic :
I ran again make put get same error.I did not found any information on the web on such an error
What gcc version do you use for compiling? Looks like it is to old.
-
What gcc version do you use for compiling? Looks like it is to old.
@Christian-Ehrlicher i use gcc 13.2.0
-
@Christian-Ehrlicher i use gcc 13.2.0
@montarou then I would not expect such an error since this is plain c++11. Make sure the correct compiler is used.
-
Hi,
Since you are building Qt yourself, you should also grab the sources of the latest available version in the series.
-
Hi,
Since you are building Qt yourself, you should also grab the sources of the latest available version in the series.
-
As already written - you most likely use a wrong ancient compiler instead the one you're thinking you use.
Make sure to really use the correct one. run make withVERBOSE=1
to see the actual compiler invocations.