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. Solved: QtCreator Toolchain mismatch
Forum Updated to NodeBB v4.3 + New Features

Solved: QtCreator Toolchain mismatch

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.4k 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.
  • S Offline
    S Offline
    sting
    wrote on last edited by
    #1

    I am trying to start to understand how to build a UI application for the beaglebone black.

    I downloaded the following toolchain:

    angstrom-2011.03-x86_64-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3.tar.bz2

    I installed the following QtCreator:

    qt-opensource-linux-x64-1.05.01-online.run

    I run /usr/local/angstrom/qrm/environment-setup before I start QtCreator. I can see the environment variables in term. I have tried to setup a kit to use the angstrom compiler from the toolchain, but my project keeps telling me that I need a compiler. Is this because the toolchain is not compatible with the version of QtCreator. In the help->about for QtCreator it is 4.6.1 with GCC 4.6.1 or am I just stumbling around trying to setup the kit correctly.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sting
      wrote on last edited by
      #2

      I'm not sure if I am any closer, but when I try to compile the example I get this error message.
      For some reason it seems to be looking for the wrong compiler. I have created a kit with the compiler I want to use and made it the default.

      DQT_GUI_LIB -DQT_CORE_LIB -I../../../../5.2.1/gcc_64/mkspecs/linux-g++ -I../qtprojects -I../../../../5.2.1/gcc_64/include -I../../../../5.2.1/gcc_64/include/QtWidgets -I../../../../5.2.1/gcc_64/include/QtGui -I../../../../5.2.1/gcc_64/include/QtCore -I. -I. -I. -o main.o ../qtprojects/main.cpp
      make: g++: Command not found
      make: Leaving directory `/home/ray/Qt/Tools/QtCreator/bin/build-qtprojects-Desktop_Qt_5_2_1_GCC_64bit-Release'
      make: *** [main.o] Error 127
      21:26:44: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project qtprojects (kit: Desktop Qt 5.2.1 GCC 64bit)
      When executing step 'Make'
      21:26:44: Elapsed time: 00:01.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        I think this is your biggest clue:

        bq. Error while building/deploying project qtprojects (kit: Desktop Qt 5.2.1 GCC 64bit)

        That does not look like the name of a kit that would cross compile.

        Make sure you have the correct kit selected as your build configuration in the Project settings

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sting
          wrote on last edited by
          #4

          I saw that and I have a different kit set as the default. I can't seem to figure out how to assign the kit to my project. At this point it seems like magic. I can't even find where to tell it it is for a different platform.

          When I open the project build selector, it will let me choose the build, but not the other aspects.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sting
            wrote on last edited by
            #5

            I created a new kit:

            Name: arm-angstrom
            Device Type: Generic Linux Type // not too many choices here
            Device: Generic Linux Device (default for Generic Linux)
            Sysroot: who knows
            Compiler GCC
            Debugger: System GDB /usr/bin/gdb // link to angstrom debugger
            Qt version: Qt 5.2.1 GCC 64 bit
            Qt mkspwc: linux-arm-gnueabi-g++

            The compiler

            Name: GCC
            Compiler path: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-9++
            Platform codegen: who knows
            Platform linker: Who knows
            ABI: Custom arm linux generic elf 64bit

            Devices
            Name Generic Linux Device
            Machine Type: Physical Device
            Hostname: 192.168.7.1 ssh port: 22

            Tested and verified
            The project run key selector still thinks its a local even when the kit points to the remote device?

            Should I be asking this question somewhere 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