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. [SOLVED] Qt5 adding mkspecs

[SOLVED] Qt5 adding mkspecs

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 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.
  • L Offline
    L Offline
    ltillier
    wrote on last edited by VRonin
    #1

    Hello everybody

    I would like to create a graphic interface on a embedded linux with an ARM architecture using Qt.
    So I downloaded the source code of Qt5 (the tar.gz for Linux).
    I have extracted the files.

    Before running ./configure with the correct configuration options, I have to add in the qtbase/mkspecs/ directory the configuration of my toolchain. And I think this where I'm wrong.

    I created in /mkspecs directory a new directory "arm-v5t-g++" with the name of my toolchain, that is quite similar to linux-arm-gnueabi-g++
    And in that new folder I have created a qmake.conf and qplatformdefs.h file.
    The qplatformdefs is the same as the one of linux-arm-gnueabi-g++.

    Here is the qmake.conf

    MAKEFILE_GENERATOR      = UNIX
    CONFIG                  += incremental gdb_dwarf_index
    QMAKE_INCREMENTAL_STYLE = sublib
    
    include(../common/linux.conf)
    include(../common/gcc-base-unix.conf)
    include(../common/g++-unix.conf)
    
    # modifications to g++.conf
    QMAKE_CC                = arm-v5t-gcc
    QMAKE_CXX               = arm-v5t-gcc
    QMAKE_LINK              = arm-v5t-gcc
    QMAKE_LINK_SHLIB        = arm-v5t-gcc
    
    QMAKE_INCDIR  =/home/arm/v5t/target/usr/include
    QMAKE_LIBDIR  =/home/arm/v5t/target/usr/lib
    
    QMAKE_LIBS              = -lpng
    
    # modifications to linux.conf
    QMAKE_AR                = arm-v5t-ar cqs
    QMAKE_OBJCOPY           = arm-v5t-objcopy
    QMAKE_STRIP             = arm-v5t-strip
    
    load(qt_config)
    

    And then I run ./configure -xplatform linux-arm ...

    But I have got errors
    /home/Qt5/qt-everywhere-opensource-src-5.0.1/qtbase/configure: line 2638: arm-v5t-g++: command not found

    May someone helps me ?
    I don't know where I have made a mistake and I can not find help for embedded system with Qt5.

    Thanks you

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

      Hi,
      I think that your arm-v5t-g++ is not in your PATH so it can't be called. You need to update your PATH (perhaps inside your bashrc/profile etc...)

      Hope it helps

      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
      • L Offline
        L Offline
        ltillier
        wrote on last edited by
        #3

        Thanks you for your advice. That worked out !

        But I got a new error when I run the ./confgiure ...options...

        @
        arm-v5t-g++ -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
        /free/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: unrecognized option '-Bsymbolic-functions'
        @

        Regarding the --help of arm-v5t-g++, the syntax seems good
        @-Wl,<options> Pass comma-separated <options> on to the linker@

        I can't figure out from where comes that issue.

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

          At first sight, I would say the age of your compiler (3.4.3 is around 7 years old).

          You should get a recent cross-compiler (gcc is currently at 4.7.2 and the oldest maintained version is 4.6.3)

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

            Ok and is there anyway to disable Bsymbolic functions with the configure options ?

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

              The minimal arm gcc for Qt4.8 is already 4.1.1. I don't know yet for Qt5, so 3.4.3 won't be able to compile Qt5.

              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
              • L Offline
                L Offline
                ltillier
                wrote on last edited by
                #7

                Ok thanks for your help

                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