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. can we change the compiler in qmake

can we change the compiler in qmake

Scheduled Pinned Locked Moved Unsolved General and Desktop
31 Posts 6 Posters 8.1k 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.
  • Pablo J. RoginaP Pablo J. Rogina

    @asha said in can we change the compiler in qmake:

    the above screenshot is for cross compiler only that is "arm-linux-gnueabihf"

    Assuming that "beagle@beagle1" read from command prompt in that screenshot, it looks like you're working on your EMBEDDED DEVICE.

    If so, then you are NOT cross-compiling, which whole purpose is by no means compiling in the target device.

    You are supposed to only use the BBB device just to copy the cross-compiled Qt libraries and application (which are built in the host machine) and only run it there

    A Offline
    A Offline
    Asha
    wrote on last edited by
    #19

    @pablo-j-rogina Sir,
    "beagle@beagle1" is my user name, where my target device name is debian@beaglebone.

    I am not successed with make run only,so I am not understood this lines

    "You are supposed to only use the BBB device just to copy the cross-compiled Qt libraries and application (which are built in the host machine) and only run it there"

    while make running getting error some library files are missing ,Like

    "error while loading shared libraries: libz.so.1: /home/beagle1/installQt/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../libexec/gcc/arm-linux-gnueabihf4.8.2/cc1plus: error while loading shared libraries: libz.so.1: cannot open shared object file:
    No such file or directory"....

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Asha
      wrote on last edited by
      #20

      One more thing ,

      SELinux status is Disable in my system,

      is this is issue?

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

        No, the issue is that you don't seem to have zlib available for cross-compilation.

        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
        • A Offline
          A Offline
          Asha
          wrote on last edited by
          #22

          Hi,

          can you please tell me,how to install zlib or what is next procedure to do?

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

            Before starting anything, do you have good reasons to use such an old version of Qt and linaro toolchain ?

            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
            • A Offline
              A Offline
              Asha
              wrote on last edited by
              #24

              Hi,

              qt old version is problem?if so,

              now I am trying with qt 5.7.1,I downloaded qt 5.7.1 source code and arm-linux-gnueabihf-gcc 6.5.0.

              And did some changes in qmake.conf file as said in this link https://forum.qt.io/topic/52546/tuto-build-qt-to-cross-compile-for-arm/47.

              where I am finding my qmake.conf file in this path "/home/beagle1/Downloads/qt-everyehere-src-5.7.1/qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf"(not finding qws directory as shown in the above link).

              So, now I want to configure,but in the link they specified path " ./configure -opensource -confirm-license -prefix /usr/local/Qt-4.8.5-arm -embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++",

              I am not getting specially this part "embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++" what it does?

              How can i configure? if I just give "./configure " its configuring linux-g++ ,I want to configure with arm-linux-gnueabihf-g++.

              If I give ./configure -opensource -confirm-license -prefix /usr/local/Qt-5.7.1-arm -embedded arm -little-endian -no-pch -xplatform /linux-arm-gnueabi-g++",

              then getting error
              "invalid command-line switch
              arm:unknown argument"..

              not getting how do I configure...

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Asha
                wrote on last edited by
                #25

                Hi,

                any suggestions..

                Pablo J. RoginaP 1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #26

                  Two:

                  • don't start with an outdated version of a framework
                  • follow a guide that targets the current version of Qt

                  You are following direction for Qt 4 while using Qt 5. There have been a lot of changes in between.

                  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
                  2
                  • A Asha

                    Hi,

                    any suggestions..

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

                    @asha said in can we change the compiler in qmake:

                    any suggestions..

                    please check this guide generously written and share by @Ketank16 who is able to cross-compile Qt for the BBB device

                    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

                    A 2 Replies Last reply
                    2
                    • Pablo J. RoginaP Pablo J. Rogina

                      @asha said in can we change the compiler in qmake:

                      any suggestions..

                      please check this guide generously written and share by @Ketank16 who is able to cross-compile Qt for the BBB device

                      A Offline
                      A Offline
                      Asha
                      wrote on last edited by
                      #28

                      @pablo-j-rogina Thankyou for the replay,I will go through it..

                      1 Reply Last reply
                      0
                      • Pablo J. RoginaP Pablo J. Rogina

                        @asha said in can we change the compiler in qmake:

                        any suggestions..

                        please check this guide generously written and share by @Ketank16 who is able to cross-compile Qt for the BBB device

                        A Offline
                        A Offline
                        Asha
                        wrote on last edited by
                        #29

                        @Pablo-J-Rogina Hi,

                        I followed that document, and I cross compiled qt for beagleboneboard..(done successfully).

                        when i am running the application ,got the error "could not find the qt platform plugin eglfs"

                        I searched ,and got the solution,first I need to deploy it on target..

                        here is the attachement ,I followed

                        target.png

                        I inserted the line "target.path = $$[analogclock]/bin
                        INSTALLS += target"
                        in my .pro file,

                        After this running the application but getting the error

                        "rsync error:some files/attrs were not transferred
                        rsync failed with exit code 23
                        deploy step failed
                        Error while building/deploying project analogclock(kit : BBB)
                        when executing step "deploy files via rsync"

                        Any suggestions please please...

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          Asha
                          wrote on last edited by
                          #30

                          I want to know how to set the target.path?

                          Pablo J. RoginaP 1 Reply Last reply
                          0
                          • A Asha

                            I want to know how to set the target.path?

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

                            @Asha please check response on this other post also from you

                            PS: it'd be a good idea if you could stop double posting...

                            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
                            1

                            • Login

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