Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5 and building qmake
QtWS25 Last Chance

Qt5 and building qmake

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 2.6k 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.
  • E Offline
    E Offline
    einarmar
    wrote on last edited by
    #1

    hi

    I am working on our own cross compiled Qt5 which has finished successfully except for the qmake part. It compiles fine but when being used on host machines for creating the Makefile it doesn't figure out where the mkspecs folder is and also can't find the tools rcc and uic.

    What variable or config is needed to set in order to influence this when compiling Qt5 ?

    regards
    Einar

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can use QTDIR and/ or PATH. But Qt should figure it all out automatically.

      QTDIR should point to <qt5 dir>/qtbase; PATH should point to <qt 5 dir>/qtbase/bin.

      (Z(:^

      1 Reply Last reply
      0
      • E Offline
        E Offline
        einarmar
        wrote on last edited by
        #3

        Hi and thank you for your response.

        I see that my original post was maybe not to clear on what I was asking for.
        If I understand which variables you are talking about then they are essential for compiling the Qt framework whereas I have another situation.
        After I have deployed the cross-compiled Qt5 framework and want to use it to cross-compile some application with the newly deployed framework it fails as I described above.
        qmake is complaining about:
        @could not find any qmake configuration file...@
        The path it wants its mkspecs folder to be in is: /opt/target/armhf-rootfs/usr/mkspecs
        but I have installed to /opt/target/armhf-rootfs/usr/share/qt5/mkspecs
        If I create a symlink to sort this out, qmake finishes but compiling fails because of this:
        @/home/user/qt/qtbase/bin/rcc: comand not found@

        Hope I have managed to sufficiently explain my problem :-)

        kind regards
        Einar

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Take a look at "qt.conf":http://qt-project.org/doc/qt-5/qt-conf.html. I am not experienced enough in cross-compiling to tell you anything with certainty, sorry.

          (Z(:^

          1 Reply Last reply
          0
          • E Offline
            E Offline
            einarmar
            wrote on last edited by
            #5

            ok, thanks for this.
            Maybe someone has experience in this part !!!

            1 Reply Last reply
            0
            • E Offline
              E Offline
              einarmar
              wrote on last edited by
              #6

              By using the tip from sierdzio I applied /usr/bin/qt.conf on the machine I'm testing out the cross-compiled Qt5 framework. This enabled qmake to finish but the make process fails with not finding the rcc command.
              I have tried to use the qt.conf file to resolve that without any luck.

              I guess this can all be resolved during the compilation of Qt5 because I had this working at some point but now I'm not able to get this right. What is there during the build process that sets the paths for qmake, rcc and uic ?

              1 Reply Last reply
              0
              • A Offline
                A Offline
                agocs
                wrote on last edited by
                #7

                What was the exact configure command-line? How was it deployed? (just "make install" or something else?)

                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