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. Unable to cross-compile using Qtcreator
QtWS25 Last Chance

Unable to cross-compile using Qtcreator

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qtcreatorcross compile
12 Posts 2 Posters 4.2k 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.
  • S Offline
    S Offline
    Sumit
    wrote on last edited by
    #1

    I am trying to use poky cross-compiler in qtcreator to cross-compile application for Rensas Board.

    In qtcreator.sh
    i added :
    source /opt/poky/1.6.1/environment-setup-cortexa15hf-vfp-neon-poky-linux-gnueabi
    in qtcreator
    qmake path is /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/qt5/qmake
    compiler path is /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc

    when i build my application i get
    linux-oe-g++ missing

    Again i manually did source /opt/poky/1.6.1/environment-setup-cortexa15hf-vfp-neon-poky-linux-gnueabi
    then i ran qtcreator.sh
    keeping all the settings same for qmake and compiler.
    this time i got
    QT version invalid , run make install.

    Kindly provide some solution.

    jsulmJ 1 Reply Last reply
    0
    • S Sumit

      I am trying to use poky cross-compiler in qtcreator to cross-compile application for Rensas Board.

      In qtcreator.sh
      i added :
      source /opt/poky/1.6.1/environment-setup-cortexa15hf-vfp-neon-poky-linux-gnueabi
      in qtcreator
      qmake path is /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/qt5/qmake
      compiler path is /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc

      when i build my application i get
      linux-oe-g++ missing

      Again i manually did source /opt/poky/1.6.1/environment-setup-cortexa15hf-vfp-neon-poky-linux-gnueabi
      then i ran qtcreator.sh
      keeping all the settings same for qmake and compiler.
      this time i got
      QT version invalid , run make install.

      Kindly provide some solution.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Sumit You should set g++ not gcc as compiler

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Sumit You should set g++ not gcc as compiler

        S Offline
        S Offline
        Sumit
        wrote on last edited by
        #3

        @jsulm with g++ also i am facing the same problem.

        jsulmJ 1 Reply Last reply
        0
        • S Sumit

          @jsulm with g++ also i am facing the same problem.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Sumit "QT version invalid , run make install" - did you install Qt?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          1
          • jsulmJ jsulm

            @Sumit "QT version invalid , run make install" - did you install Qt?

            S Offline
            S Offline
            Sumit
            wrote on last edited by
            #5

            @jsulm Yes i had installed that , please see the below log:

            administrator@administrator-OptiPlex-990:~$ sudo apt-get install qt5-default
            [sudo] password for administrator:
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            qt5-default is already the newest version.
            The following packages were automatically installed and are no longer required:
            libbonobo2-0 libbonobo2-common libgconf2-4 libgnome2-0 libgnome2-bin
            libgnome2-common libgnomevfs2-0 libgnomevfs2-common libidl-common libidl0
            liborbit-2-0 liborbit2
            Use 'apt-get autoremove' to remove them.
            0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

            For building qt in Yocto Project i did :
            bitbake meta-toolcahin-qt

            is it something related to that.

            As i read, meta-toolchain-qt installs qt4.8. And the qmake which i am linking is from qt5 is that causing a problem?

            jsulmJ 1 Reply Last reply
            0
            • S Sumit

              @jsulm Yes i had installed that , please see the below log:

              administrator@administrator-OptiPlex-990:~$ sudo apt-get install qt5-default
              [sudo] password for administrator:
              Reading package lists... Done
              Building dependency tree
              Reading state information... Done
              qt5-default is already the newest version.
              The following packages were automatically installed and are no longer required:
              libbonobo2-0 libbonobo2-common libgconf2-4 libgnome2-0 libgnome2-bin
              libgnome2-common libgnomevfs2-0 libgnomevfs2-common libidl-common libidl0
              liborbit-2-0 liborbit2
              Use 'apt-get autoremove' to remove them.
              0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

              For building qt in Yocto Project i did :
              bitbake meta-toolcahin-qt

              is it something related to that.

              As i read, meta-toolchain-qt installs qt4.8. And the qmake which i am linking is from qt5 is that causing a problem?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Sumit "meta-toolchain-qt installs qt4.8. And the qmake which i am linking is from qt5 is that causing a problem?" - yes it is. You need to use qmake from the Qt version you want to use and this Qt version must be installed (not only qmake).

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 3 Replies Last reply
              1
              • jsulmJ jsulm

                @Sumit "meta-toolchain-qt installs qt4.8. And the qmake which i am linking is from qt5 is that causing a problem?" - yes it is. You need to use qmake from the Qt version you want to use and this Qt version must be installed (not only qmake).

                S Offline
                S Offline
                Sumit
                wrote on last edited by
                #7

                @jsulm Thanks i will get back to you on this, once done.

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Sumit "meta-toolchain-qt installs qt4.8. And the qmake which i am linking is from qt5 is that causing a problem?" - yes it is. You need to use qmake from the Qt version you want to use and this Qt version must be installed (not only qmake).

                  S Offline
                  S Offline
                  Sumit
                  wrote on last edited by
                  #8

                  @jsulm i got stuck while doing bitbake meta-tolchain-qt5.

                  Error is:
                  tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/qtbase/5.7.0+gitAUTOINC+69b43e74d7-r0/git/mkspecs/oe-device-extra.pri:
                  No such file or directory

                  Error 2: oe-runmake failed.

                  For error 1:
                  I found a patch which avoids this error by installing a qmake under mkspecs folder.
                  But did not install linux-oe-g++ related files under mkspecs which will be further required by the Qtcreator to perform qmake and cross-sompile the application.

                  If I use the above patch which avoids the Error 1, but Error 2 still persist(Somewhere it explains qmake version mismatch). There are some patch available to solve Error 2 .

                  I am confused wether to skip the linux-oe-g++(which i think should not be) or install.

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Sumit "meta-toolchain-qt installs qt4.8. And the qmake which i am linking is from qt5 is that causing a problem?" - yes it is. You need to use qmake from the Qt version you want to use and this Qt version must be installed (not only qmake).

                    S Offline
                    S Offline
                    Sumit
                    wrote on last edited by
                    #9

                    @jsulm it was the problem of qt version. I solved it by using bitbake meta-toolchain-qt5. Is there any way to have a SDK both with qt and opencv?

                    jsulmJ 1 Reply Last reply
                    0
                    • S Sumit

                      @jsulm it was the problem of qt version. I solved it by using bitbake meta-toolchain-qt5. Is there any way to have a SDK both with qt and opencv?

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Sumit I don't know. Who is providing the SDK?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      S 1 Reply Last reply
                      1
                      • jsulmJ jsulm

                        @Sumit I don't know. Who is providing the SDK?

                        S Offline
                        S Offline
                        Sumit
                        wrote on last edited by
                        #11

                        @jsulm I will again rephrase my question. After bitbake meta-toolchain-qt5 i have a sdk which compiles qt files. Now if i add opencv libraries onto my image. I would need a sdk to compile opencv codes. So is there anyway to built same sdk both for qt and opencv. Or i have to use seperate sdk for opencv.

                        jsulmJ 1 Reply Last reply
                        0
                        • S Sumit

                          @jsulm I will again rephrase my question. After bitbake meta-toolchain-qt5 i have a sdk which compiles qt files. Now if i add opencv libraries onto my image. I would need a sdk to compile opencv codes. So is there anyway to built same sdk both for qt and opencv. Or i have to use seperate sdk for opencv.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @Sumit Should be possible, but I never used Bitbake

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          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