Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Urgent] Install Qt for embedded Linux using Toolchain CodeSourcery 2010.09
Qt 6.11 is out! See what's new in the release blog

[Urgent] Install Qt for embedded Linux using Toolchain CodeSourcery 2010.09

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 2.2k 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
    lequanghuy028
    wrote on last edited by
    #1

    Hello everyone,

    In our current project , we decided to install the Qt libraries for use on the target, but I can not get it to work properly.
    In fact, our board is Wandboard DuoCore with iMX6 Controllers . I installed successfully the Boost libraries , encoded with Boost and run the application on the target without any problems. To do this, I followed the instructions on the official website of Boost ( The cross compiler I used is CodeSourcery 2010.09 ) .

    After seeing the interest of Qt and especially the possibility of GUI programming, we wanted to install Qt libraries to code applications using Qt with Qt Creator IDE and launch applications on the target ( always using the CodeSourcery cross compiler 2010.09 ) . However, it is not easy to do. I actually followed the instructions of the site Qt: http://qt-project.org/doc/qt-4.8/qt-embedded-install.html and http://qt-project.org/doc/qt-4.8/qt-embedded-crosscompiling.html :

    1 . export PATH = path / to / cross / compiler : $ PATH
    2 . Edit qmake.conf file qt-everywhere-opensource-src-4.8.5/mkspecs/qws/linux-arm-gnueabi-g + +
    TOOLS_BIN = / home/huyoptm/opt/arm-2010.09/bin

    Modifications to g+ + . Conf

    QMAKE_CC = $$ TOOLS_BIN / arm - none -linux- gnueabi -gcc
    QMAKE_CXX = $$ TOOLS_BIN / arm - none -linux- gnueabi -g + +
    QMAKE_LINK = $$ TOOLS_BIN / arm - none -linux- gnueabi -g + +
    QMAKE_LINK_SHLIB = $$ TOOLS_BIN / arm - none -linux- gnueabi -g + +

    Changes to linux.conf

    QMAKE_AR = $$ TOOLS_BIN / arm - none -linux- gnueabi -ar cqs
    QMAKE_OBJCOPY = $$ TOOLS_BIN / arm - none -linux- gnueabi - objcopy
    QMAKE_STRIP = $$ TOOLS_BIN / arm - none -linux- gnueabi -strip
    3 . configuration:
    Go to qt -everywhere -opensource -src- 4.8.5 and run :
    . / configure -embedded arm- xplatform QWS / linux -arm- gnueabi -g + + -little- endian -no- webkit -no- qt3support
    4 . Make and make install
    In step to generate binary libraries when doing a "make" , it always returns errors that I can not interpret.
    Here are the errors in question :

    ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h : In member function ' bool QMutexPrivate :: wait (int )':
    ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h : 233:35 : error : output number 1 not Directly addressable
    ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h : In member function ' void QMutexPrivate :: wakeup ( )':
    ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h : 233:35 : error : output number 1 not Directly addressable
    make [1 ] : *** [ .obj / release -shared- emb -arm / qmutex_unix.o ] Error 1
    make [1 ] : Leaving directory `/ home/huyoptm/qt-everywhere-opensource-src-4.8.5/src/corelib '
    make: *** [sub - corelib - make_default -ordered ] Error 2

    Thanks for your help, it's urgent

    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