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. Succeed compiling project in QT but failed compiling using qmaker in ubuntu terminal

Succeed compiling project in QT but failed compiling using qmaker in ubuntu terminal

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    I am running Qt in ubuntu 14.04 x64, i want to run compile code in another ubuntu machine but failed.

    My QML program works ok when i run in Qt, build and run.
    i went into Tools/Options/Build&Run/QtVersion/Qt5.4.0 GCC 64 bit
    i found it is using qmake location = /home/ubuntu/Qt/5.4/gcc_64/bin/qmake

    I went into this directory and make my project.
    Project Error: Unknown module(s) in QT: quick qml

    Any help is appreciated

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

      Hi,

      Are you giving the full path to qmake wehn building from terminal ?

      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
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        are you sure you have installed these modules?

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • H Offline
          H Offline
          houmingc
          wrote on last edited by
          #4

          I like to compile using QT Creator

          Under Build & Run (Compiler)
          Auto-detected
          GCC (x86 64 bit in /usr/bin) GCC
          GCC (x86 32 bit in /usr/bin) GCC

          Under Build & Run (Qt Versions)
          Auto-detected
          Qt 5.4.0 GCC 64 bit /home/ubuntu/Qt/5.4/gcc_64/bin/qmake
          Manual
          Qt 5.3.0(qt-5.3.0) /root/QT5/qt-5.3.0/qmake (exclamation)

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

            Again, how do you call qmake when using the terminal ?

            What does
            @which qmake@

            return ?

            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
            • H Offline
              H Offline
              houmingc
              wrote on last edited by
              #6

              which qmake
              /usr/bin/qmake

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

                Then run qmake using the full path to the version you want to use e.g. /home/ubuntu/Qt/5.4/gcc_64/bin/qmake. You are currently trying to build your application with your distribution's Qt

                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