Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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[5]: *** [Makefile:1169: .obj/qjp2handler.o] Error 1
    make[5]: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats/src/plugins/imageformats/jp2'
    make[4]: *** [Makefile:215: sub-jp2-install_subtargets] Error 2
    make[4]: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats/src/plugins/imageformats'
    make[3]: *** [Makefile:59: sub-imageformats-install_subtargets] Error 2
    make[3]: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats/src/plugins'
    make[2]: *** [Makefile:85: sub-plugins-install_subtargets] Error 2
    make[2]: Leaving directory '/home/radhi/Downloads/Qt/qt-everywhere-src-5.15.0/qtimageformats/src'
    make[1]: *** [Makefile:60: sub-src-install_subtargets] Error 2
    make[1]: 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.




Log in to reply