Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't find Python when building Qt from sources
Qt 6.11 is out! See what's new in the release blog

Can't find Python when building Qt from sources

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 3 Posters 3.7k Views
  • 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.
  • D Offline
    D Offline
    DrPepitoAvs
    wrote on last edited by
    #1

    We are trying to build the last version of Qt ( qt-15.5.0 ) from the sources on Ubuntu 20.04. Everything is running fine until we get the following error:

    Project ERROR: Building QtQml requires Python.
    

    Python is avalaible ( version 3.8 ), we even tried alias python=python3 and adding the path to python to $PATH but it didn't help. We can't find any info on this specific problem.

    What we did:

    $ wget http://download.qt.io/official_releases/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.tar.xz
    $ ./configure -prefix /username/dev/libraries/qt-5.15.0/install -xcb
    $ make -j8
    $ sudo make install
    

    Any help is welcome, thanks in advance! :)

    jsulmJ 1 Reply Last reply
    0
    • D DrPepitoAvs

      We are trying to build the last version of Qt ( qt-15.5.0 ) from the sources on Ubuntu 20.04. Everything is running fine until we get the following error:

      Project ERROR: Building QtQml requires Python.
      

      Python is avalaible ( version 3.8 ), we even tried alias python=python3 and adding the path to python to $PATH but it didn't help. We can't find any info on this specific problem.

      What we did:

      $ wget http://download.qt.io/official_releases/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.tar.xz
      $ ./configure -prefix /username/dev/libraries/qt-5.15.0/install -xcb
      $ make -j8
      $ sudo make install
      

      Any help is welcome, thanks in advance! :)

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @DrPepitoAvs Could be that it requires Python 2?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • jsulmJ jsulm

        @DrPepitoAvs Could be that it requires Python 2?

        D Offline
        D Offline
        DrPepitoAvs
        wrote on last edited by DrPepitoAvs
        #3

        @jsulm both python version are installed but we only tried alias and PATH with pyhon3 i guess. I checked again and I can't find any data on which python version required to build Qt from sources.
        EDIT: I found

        System requirements

        - Perl 5.8 or later
        - Python 2.7 or later
        - C++ compiler supporting the C++11 standard
        

        in the README file.

        jsulmJ 1 Reply Last reply
        0
        • D DrPepitoAvs

          @jsulm both python version are installed but we only tried alias and PATH with pyhon3 i guess. I checked again and I can't find any data on which python version required to build Qt from sources.
          EDIT: I found

          System requirements

          - Perl 5.8 or later
          - Python 2.7 or later
          - C++ compiler supporting the C++11 standard
          

          in the README file.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @DrPepitoAvs You should check config.log file, maybe you can see more there about the actual problem?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          0
          • jsulmJ jsulm

            @DrPepitoAvs You should check config.log file, maybe you can see more there about the actual problem?

            D Offline
            D Offline
            DrPepitoAvs
            wrote on last edited by
            #5

            @jsulm Nothing about Python in the config.log file.

            JonBJ 1 Reply Last reply
            0
            • D DrPepitoAvs

              @jsulm Nothing about Python in the config.log file.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @DrPepitoAvs
              Google for: Building QtQml requires Python. You will find several relevant hits.

              1 Reply Last reply
              3
              • D Offline
                D Offline
                DrPepitoAvs
                wrote on last edited by
                #7

                Thanks all, we managed to do it, it was all a PATH problem after all.

                1 Reply Last reply
                0

                • Login

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