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. Error while doing gmake

Error while doing gmake

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
13 Posts 4 Posters 2.3k Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Hi,

    What distribution are you using ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MansiMS
      wrote on last edited by
      #5

      Its QT5 that im trying to install.
      And i have python version 2.7 and higher installed on my machine

      Pablo J. RoginaP 1 Reply Last reply
      0
      • M MansiMS

        Its QT5 that im trying to install.
        And i have python version 2.7 and higher installed on my machine

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #6

        @MansiMS what happens if you type python and hit Enter in your command line?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MansiMS
          wrote on last edited by
          #7

          [mansi@localhost Downloads]$ python
          python2 python2.7-config python3 python3.8-config
          python2.7 python2-config python3.8 python3-config

          [mansi@localhost Downloads]$ python2.7
          Python 2.7.15 (default, Oct 8 2019, 21:08:29)
          [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)] on linux2
          Type "help", "copyright", "credits" or "license" for more information.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #8

            What version of Qt are you trying to build ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MansiMS
              wrote on last edited by
              #9

              Im building qt5 on my centos machine.

              I was getting a error related to python.
              So now, i used this command :

              [mansi@localhost qt5]$ alias python=/usr/lib/python3.6

              To make sure it takes in python command.

              Then again I try to build by using make -j4 command.
              I still get the following errors:
              sh: python: command not found
              Project ERROR: Building QtQml requires Python.
              make: *** [Makefile:338: module-qtdeclarative-make_first] Error 3
              make: *** Waiting for unfinished jobs....
              cd tinycan/ && ( test -e Makefile || /home/mansi/Downloads/gengetopt-2.10/qt5/qtbase/bin/qmake -o Makefile /home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/tinycan/tinycan.pro ) && make -f Makefile
              make[5]: Entering directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/passthrucan'
              make[5]: Nothing to be done for 'first'.
              make[5]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/passthrucan'
              make[5]: Entering directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/socketcan'
              make[5]: Nothing to be done for 'first'.
              make[5]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/socketcan'
              make[5]: Entering directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/peakcan'
              make[5]: Nothing to be done for 'first'.
              make[5]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/peakcan'
              make[5]: Entering directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/tinycan'
              make[5]: Nothing to be done for 'first'.
              make[5]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus/tinycan'
              make[4]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins/canbus'
              make[3]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/plugins'
              cd tools/ && ( test -e Makefile || /home/mansi/Downloads/gengetopt-2.10/qt5/qtbase/bin/qmake -o Makefile /home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/tools/tools.pro ) && make -f Makefile
              cd serialbus/doc/snippets/ && ( test -e Makefile || /home/mansi/Downloads/gengetopt-2.10/qt5/qtbase/bin/qmake -o Makefile /home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/serialbus/doc/snippets/snippets.pro ) && make -f Makefile
              make[3]: Entering directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/tools'
              cd canbusutil/ && ( test -e Makefile || /home/mansi/Downloads/gengetopt-2.10/qt5/qtbase/bin/qmake -o Makefile /home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/tools/canbusutil/canbusutil.pro ) && make -f Makefile
              make[3]: Entering directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/serialbus/doc/snippets'
              make[3]: Nothing to be done for 'first'.
              make[3]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/serialbus/doc/snippets'
              make[4]: Entering directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/tools/canbusutil'
              make[4]: Nothing to be done for 'first'.
              make[4]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/tools/canbusutil'
              make[3]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src/tools'
              make[2]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus/src'
              make[1]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtserialbus'

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #10

                That doesn't answer my question: what exactly version of Qt 5 are you building ?

                By the way, your alias is wrong. You have aliased a folder.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MansiMS
                  wrote on last edited by
                  #11

                  I could solve the issue with python, but now I have another problem:

                  I get the following error if i do make:

                  In file included from ../../include/QtNetwork/5.12.6/QtNetwork/private/qtnetworkglobal_p.h:1,
                  from access/qnetworkaccessauthenticationmanager_p.h:54,
                  from access/qnetworkaccessauthenticationmanager.cpp:40:
                  ../../include/QtNetwork/5.12.6/QtNetwork/private/../../../../../src/network/kernel/qtnetworkglobal_p.h:55:10: fatal error: QtCore/private/qglobal_p.h: No such file or directory
                  #include <QtCore/private/qglobal_p.h>
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  compilation terminated.
                  make[3]: *** [Makefile:8910: .obj/qnetworkaccessauthenticationmanager.o] Error 1
                  make[3]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtbase/src/network'
                  make[2]: *** [Makefile:250: sub-network-make_first] Error 2
                  make[2]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtbase/src'
                  make[1]: *** [Makefile:51: sub-src-make_first] Error 2
                  make[1]: Leaving directory '/home/mansi/Downloads/gengetopt-2.10/qt5/qtbase'
                  make: *** [Makefile:85: module-qtbase-make_first] Error

                  PLEASE HELP

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MansiMS
                    wrote on last edited by
                    #12

                    To clarify about the version

                    [mansi@localhost qt5]$ qmake-qt5 --version
                    QMake version 3.1
                    Using Qt version 5.11.1 in /usr/lib64

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #13

                      Are you mixing your distribution provided Qt with the one you are trying to build ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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