Unsolved Build Qt5.15 from source failed
Hi everyone. I'm trying to build Qt5.15.0 from the source. Unfortunately it failed with following message :
qjp2handler.cpp: In member function ‘bool Jpeg2000JasperReader::write(const QImage&, int)’: qjp2handler.cpp:844:41: error: ‘pow’ was not declared in this scope 844 | const double jasperRate = minRate + pow((double(quality) / double(maxQuality)), 2) * maxRate; | ^~~ make: *** [Makefile:1169: .obj/qjp2handler.o] Error 1 make: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats/src/plugins/imageformats/jp2' make: *** [Makefile:215: sub-jp2-install_subtargets] Error 2 make: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats/src/plugins/imageformats' make: *** [Makefile:59: sub-imageformats-install_subtargets] Error 2 make: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats/src/plugins' make: *** [Makefile:85: sub-plugins-install_subtargets] Error 2 make: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats/src' make: *** [Makefile:60: sub-src-install_subtargets] Error 2 make: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats' make: *** [Makefile:275: module-qtimageformats-install_subtargets] Error 2
My OS is Manjaro Linux with kernel 5.8.1-3. I've installed all required dependencies as listed in wiki. Here is my configuration flags :
./configure \ -prefix "/home/radhi/Development/SDK/Qt5.15" \ -opensource \ -confirm-license \ -release \ -optimize-size \ -make libs \ -nomake tools \ -nomake examples \ -nomake tests \ -skip qtwebengine
Any idea why and how to fix it ? Thank you.
You are missing the following fix: