Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT Creator cross compiling
Qt 6.11 is out! See what's new in the release blog

QT Creator cross compiling

Scheduled Pinned Locked Moved Qt Creator and other tools
14 Posts 3 Posters 8.5k 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.
  • T Offline
    T Offline
    TheHost
    wrote on last edited by
    #3

    Thank you, I'm asking how to cross-compile QTCreator

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

      So you want to run QtCreator on the board to develop your Qt application ?

      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
      • T Offline
        T Offline
        TheHost
        wrote on last edited by
        #5

        Actually I want to create and compile Qt application on my computer and then run it on board. I am sorry If my English is not understandable

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vsrk
          wrote on last edited by
          #6

          Hi i have used QtCreator for developing application. Now that application is running on my host machine. Now i want to use QtCreator to cross compile the developed application. Is there any procedure to cross compile in QtCreator.

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

            First thing to do is cross-compile Qt, then add that new build to the known Qt Versions of Qt Creator, make a kit with it and use it

            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
            • V Offline
              V Offline
              vsrk
              wrote on last edited by
              #8

              Cross compiling the Qt is through command prompt only?

              Assume that i have cross compiled Qt through terminal. My next question is how to add that new build to QtCreator?

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

                Yes it is.

                Qt Creator -> Preferences -> Build & Run -> Qt Versions

                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
                • V Offline
                  V Offline
                  vsrk
                  wrote on last edited by
                  #10

                  Hi SGalst,

                  I have cross compiled my Qt open source 4.8.5 and build the Qmake with ./configure options......

                  Now i want to give this Qmake path to the Qtcreator......through Tools->options->Qt4 and add....

                  now when i add its showing some danger symbol and telling Qmake link broken.....

                  i am using QtCreator 2.3.2......

                  Initially i thought may be using old QtCreator.......then i added this Qmake which i made with Qt4.8.5 in the Qt creator based on the Qt 5.2 even then i am getting error saying that No compiler can compile this Qmake..

                  Please help me...

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

                    First thing to do is update your Qt Creator to at least 3.0.0 otherwise your won't be able to use Qt 5.2

                    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
                    • V Offline
                      V Offline
                      vsrk
                      wrote on last edited by
                      #12

                      Hi SGalst,

                      i have changed all the versions following versions am using.

                      I am using Qt source libraries from 4.8.4

                      and Qt creator am using is 2.7.2 which is based on Qt4.8.4....i think there wont be any issue with this right?

                      I just want to update further:

                      I successfully configured the libraries with the following configurations.

                      export PATH=$PATH:/home/anoop/Desktop/arm-2011.03/bin
                      arm-2011.03/bin: These binaries downloaded from CodeSourcery (Mentor Graphics) site.

                      ./configure -qpa -arch arm -xplatform /home/anoop/Desktop/qt-everywhere-opensource-src-4.8.4/mkspecs/qws/linux-arm-gnueabi-g++ -no-largefile -no-accessibility -verbose -little-endian -no-webkit -prefix /home/anoop/Desktop/ARMBuildQt -no-qt3support

                      afterwards i did make and make install.

                      Now my build Qt libraries are there in ARMBuildQt folder.

                      I have opened QtCreator 2.7.2 and given Qmake path for Manual Qtversion

                      Now it says there is no compiler to compile, Now i have added compiler as arm-linux-gnueabi-g++

                      after all this it saying configure the tool kit....i dont know what to fill in that toolkit option...

                      Please help me i am really stuck at this point.

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        vsrk
                        wrote on last edited by
                        #13

                        this is my Qmake file

                        qmake configuration for building with arm-linux-g++

                        include(../../common/linux.conf)
                        include(../../common/gcc-base-unix.conf)
                        include(../../common/g++-unix.conf)
                        include(../../common/qws.conf)

                        modifications to g++.conf

                        QMAKE_CC = /usr/local/Code_sourcery/bin/arm-none-linux-gnueabi-gcc -msoft-float -D_GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lrt
                        QMAKE_CXX = /usr/local/Code_sourcery/bin/arm-none-linux-gnueabi-g++ -msoft-float -D_GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lrt
                        QMAKE_LINK = /usr/local/Code_sourcery/bin/arm-none-linux-gnueabi-g++ -msoft-float -D_GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lrt
                        QMAKE_LINK_SHLIB = /usr/local/Code_sourcery/bin/arm-none-linux-gnueabi-g++ -msoft-float -D_GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lrt

                        modifications to linux.conf

                        QMAKE_AR = /usr/local/Code_sourcery/bin/arm-linux-gnueabi-ar cqs
                        QMAKE_OBJCOPY = /usr/local/Code_sourcery/bin/arm-linux-gnueabi-objcopy
                        QMAKE_STRIP = /usr/local/Code_sourcery/bin/arm-linux-gnueabi-strip
                        MAKE_RANLIB = /usr/local/Code_sourcery/bin/arm-none-linux-gnueabi-ranlib

                        QMAKE_CFLAGS_RELEASE += -march=armv4 -mtune=arm920t
                        QMAKE_CFLAGS_DEBUG += -march=armv4t -mtune=arm920t
                        QMAKE_CFLAGS_MT += -march=armv4t -mtune=arm920t
                        QMAKE_CFLAGS_MT_DBG += -march=armv4t -mtune=arm920t
                        QMAKE_CFLAGS_MT_DLL += -march=armv4t -mtune=arm920t
                        QMAKE_CFLAGS_MT_DLLDBG += -march=armv4t -mtune=arm920t
                        QMAKE_CFLAGS_SHLIB += -march=armv4t -mtune=arm920t
                        QMAKE_CFLAGS_THREAD += -march=armv4t -mtune=arm920t
                        QMAKE_CFLAGS_WARN_OFF += -march=armv4t -mtune=arm920t
                        QMAKE_CFLAGS_WARN_ON += -march=armv4t -mtune=arm920t

                        QMAKE_CXXFLAGS_DEBUG += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_MT += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_MT_DBG += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_MT_DLL += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_MT_DLLDBG += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_RELEASE += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_SHLIB += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_THREAD += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_WARN_OFF += -march=armv4t -mtune=arm920t
                        QMAKE_CXXFLAGS_WARN_ON += -march=armv4t -mtune=arm920t

                        load(qt_config)

                        1 Reply Last reply
                        0
                        • V Offline
                          V Offline
                          vsrk
                          wrote on last edited by
                          #14

                          Sorry above file is Qmake Configuration file which i have modified inside qws/mkspecs/am-linux-g++ folder

                          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