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. Cross compile and qmake persistent properties
Qt 6.11 is out! See what's new in the release blog

Cross compile and qmake persistent properties

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 617 Views 2 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.
  • F Offline
    F Offline
    FredJupiter
    wrote on last edited by
    #1

    Hi,
    I've setup Qt6 to cross compile to ARM successfully. For some reason, a given 3rd party tool won't compile, because the configure script choose the wrong persistent property. Example:

    QT_INSTALL_PREFIX:/home/someone/Qt/6.2.4/Boot2Qt/raspberrypi3/toolchain/sysroots/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/opt/Qt/raspi
    QT_INSTALL_PREFIX/raw:/opt/Qt/raspi
    

    It uses the QT_INSTALL_PREFIX instead of QT_INSTALL_PREFIX/raw. How can I tell qmake to use /raw prefix?

    Thanks and Best
    Fred

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

      Hi,

      What is that /raw ?

      In any case, it does not make sense where you put it. On the left sign of the equal signal is a variable name.

      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
      1
      • F FredJupiter

        Hi,
        I've setup Qt6 to cross compile to ARM successfully. For some reason, a given 3rd party tool won't compile, because the configure script choose the wrong persistent property. Example:

        QT_INSTALL_PREFIX:/home/someone/Qt/6.2.4/Boot2Qt/raspberrypi3/toolchain/sysroots/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/opt/Qt/raspi
        QT_INSTALL_PREFIX/raw:/opt/Qt/raspi
        

        It uses the QT_INSTALL_PREFIX instead of QT_INSTALL_PREFIX/raw. How can I tell qmake to use /raw prefix?

        Thanks and Best
        Fred

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by Pl45m4
        #3

        @FredJupiter

        I think you should be something like:

        QT_INSTALL_PREFIX_RAW:$$[QT_INSTALL_PREFIX]/raw/opt/Qt/raspi
        

        You define a new variable with /raw and add your prefix path.
        Dont know if my syntax is correct. I dont use qmake that much :-)

        Edit:
        Also cant tell from your approach where your /raw dir is actually located. So adjust to your structure.
        Btw: AFAIK you cant change the QT_INSTALL_PREFIX variable. But as I wrote above you can set your custom PREFIX


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        F 1 Reply Last reply
        0
        • Pl45m4P Pl45m4

          @FredJupiter

          I think you should be something like:

          QT_INSTALL_PREFIX_RAW:$$[QT_INSTALL_PREFIX]/raw/opt/Qt/raspi
          

          You define a new variable with /raw and add your prefix path.
          Dont know if my syntax is correct. I dont use qmake that much :-)

          Edit:
          Also cant tell from your approach where your /raw dir is actually located. So adjust to your structure.
          Btw: AFAIK you cant change the QT_INSTALL_PREFIX variable. But as I wrote above you can set your custom PREFIX

          F Offline
          F Offline
          FredJupiter
          wrote on last edited by FredJupiter
          #4

          Thanks a lot for your replys, to be honest, i didn't check the idea behind these variables. I don't want them and I don't need them :-D

          I've configured the qt6 as follows in my build directory:

          ../qt6/configure -nomake examples -nomake tests -qt-host-path /opt/qt6 -prefix /opt/qt6/raspi -- /opt/qt6/raspi
          

          These /raw variables are created magically somehow during configuration and build process. See: https://wiki.qt.io/Qmake_properties

          Pl45m4P 1 Reply Last reply
          1
          • F FredJupiter

            Thanks a lot for your replys, to be honest, i didn't check the idea behind these variables. I don't want them and I don't need them :-D

            I've configured the qt6 as follows in my build directory:

            ../qt6/configure -nomake examples -nomake tests -qt-host-path /opt/qt6 -prefix /opt/qt6/raspi -- /opt/qt6/raspi
            

            These /raw variables are created magically somehow during configuration and build process. See: https://wiki.qt.io/Qmake_properties

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by Pl45m4
            #5

            @FredJupiter said in Cross compile and qmake persistent properties:

            These /raw variables are created magically somehow during configuration and build process. See: https://wiki.qt.io/Qmake_properties

            ok, interesting. Didn't know that this /raw is actually a thing.
            If I understood correctly, the /raw property is a fallback of /get?!

            But I'm not the ideal person to ask this ;-)
            I just thought initially your syntax is wrong and you connected the vars and dirs in a wrong way ;-)


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            F 1 Reply Last reply
            0
            • Pl45m4P Pl45m4

              @FredJupiter said in Cross compile and qmake persistent properties:

              These /raw variables are created magically somehow during configuration and build process. See: https://wiki.qt.io/Qmake_properties

              ok, interesting. Didn't know that this /raw is actually a thing.
              If I understood correctly, the /raw property is a fallback of /get?!

              But I'm not the ideal person to ask this ;-)
              I just thought initially your syntax is wrong and you connected the vars and dirs in a wrong way ;-)

              F Offline
              F Offline
              FredJupiter
              wrote on last edited by FredJupiter
              #6

              @Pl45m4 Unfortunately, it's not easy as that :-D The interesting thing is, I've made another build, for another target but with basically same parameters, there is no fancy /xxx variables in qmake.

              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