Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build Qt5.15 from source failed

Build Qt5.15 from source failed

Scheduled Pinned Locked Moved Unsolved General and Desktop
build
2 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Acrophobic
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      j.goebbert
      wrote on last edited by
      #2

      You are missing the following fix:
      https://github.com/qt/qtimageformats/commit/704868db61be1542c2d9e2b75ead00c45c56cc36

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved