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
Forum Updated to NodeBB v4.3 + New Features

Can't find Python when building Qt from sources

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 3 Posters 2.8k 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 20 Jul 2020, 06:52 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! :)

    J 1 Reply Last reply 20 Jul 2020, 06:54
    0
    • D DrPepitoAvs
      20 Jul 2020, 06:52

      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! :)

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 20 Jul 2020, 06:54 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 20 Jul 2020, 07:08
      0
      • J jsulm
        20 Jul 2020, 06:54

        @DrPepitoAvs Could be that it requires Python 2?

        D Offline
        D Offline
        DrPepitoAvs
        wrote on 20 Jul 2020, 07:08 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.

        J 1 Reply Last reply 20 Jul 2020, 07:26
        0
        • D DrPepitoAvs
          20 Jul 2020, 07:08

          @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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 20 Jul 2020, 07:26 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 20 Jul 2020, 07:39
          0
          • J jsulm
            20 Jul 2020, 07:26

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

            D Offline
            D Offline
            DrPepitoAvs
            wrote on 20 Jul 2020, 07:39 last edited by
            #5

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

            J 1 Reply Last reply 20 Jul 2020, 07:59
            0
            • D DrPepitoAvs
              20 Jul 2020, 07:39

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

              J Offline
              J Offline
              JonB
              wrote on 20 Jul 2020, 07:59 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 21 Jul 2020, 11:37 last edited by
                #7

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

                1 Reply Last reply
                0

                1/7

                20 Jul 2020, 06:52

                • Login

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