Results 1 to 5 of 5

Thread: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain

  1. #1
    Join Date
    Dec 2011
    Posts
    18
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Trouble building Qt-Embedded 4.8.3 using ARM Toolchain

    Hello!

    I've been building Qt-embedded for quite some time now using (arm-none-linux-gnueabi), but this time around I was faced with a nasty error when I tried to build Qt using the Raspberry Pi toolchain (armv6j-hardfloat-linux-gnueabi-), and I'd appreciate your help and insight on it. Steps taken:

    changing
    Qt Code:
    1. cat mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf
    2. #
    3. # qmake configuration for building with arm-none-linux-gnueabi-g++
    4. #
    5.  
    6. include(../../common/linux.conf)
    7. include(../../common/gcc-base-unix.conf)
    8. include(../../common/g++-unix.conf)
    9. include(../../common/qws.conf)
    10.  
    11. # modifications to g++.conf
    12. QMAKE_CC = armv6j-hardfloat-linux-gnueabi-gcc
    13. QMAKE_CXX = armv6j-hardfloat-linux-gnueabi-g++
    14. QMAKE_LINK = armv6j-hardfloat-linux-gnueabi-g++
    15. QMAKE_LINK_SHLIB = armv6j-hardfloat-linux-gnueabi-g++
    16.  
    17. # modifications to linux.conf
    18. QMAKE_AR = armv6j-hardfloat-linux-gnueabi-ar cqs
    19. QMAKE_OBJCOPY = armv6j-hardfloat-linux-gnueabi-objcopy
    20. QMAKE_STRIP = armv6j-hardfloat-linux-gnueabi-strip
    21.  
    22. load(qt_config)
    To copy to clipboard, switch view to plain text mode 

    and here's the config options:

    Qt Code:
    1. ./configure -prefix /usr/local/Trolltech/QtEmbedded-4.8.3-arm -embedded arm -release -opensource -qvfb -xplatform qws/linux-arm-gnueabi-g++ -nomake examples -nomake demos -no-qt3support -qt-gfx-linuxfb -qt-gfx-vnc -no-largefile -exceptions -no-accessibility -no-qt3support -no-sse2 -qt-zlib -no-gif -no-libtiff -qt-libpng -no-libmng -qt-libjpeg -no-nis -no-cups -qt-kbd-qvfb -qt-mouse-qvfb -qt-mouse-pc -depths 16,32 -qt-kbd-linuxinput -qt-mouse-linuxinput
    To copy to clipboard, switch view to plain text mode 

    Finally here's the error:

    Qt Code:
    1. gmake[1]: Entering directory `/home/pluvius/src/4.8.3-arm/qt-everywhere-opensource-src-4.8.3/src/corelib'
    2. /home/pluvius/src/4.8.3-arm/qt-everywhere-opensource-src-4.8.3/bin/moc -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm codecs/qtextcodecplugin.h -o .moc/release-shared-emb-arm/moc_qtextcodecplugin.cpp
    3. QFSFileEngine::currentPath: stat(".") failed
    4. QFSFileEngine::currentPath: stat(".") failed
    5. codecs/qtextcodecplugin.h:73: Error: Undefined interface
    6. gmake[1]: *** [.moc/release-shared-emb-arm/moc_qtextcodecplugin.cpp] Error 1
    7. gmake[1]: Leaving directory `/home/pluvius/src/4.8.3-arm/qt-everywhere-opensource-src-4.8.3/src/corelib'
    8. gmake: *** [sub-corelib-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    I'd appreciate some help here, thank you

  2. #2
    Join Date
    Oct 2010
    Location
    Bangalore
    Posts
    52
    Thanks
    8
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain

    try this steps ..
    clean your qt configuaration
    export PATH=your compiler Path:$PATH
    add -v option to your qt configure -v will shows log in this you can find what is happening ...
    I hope it will solve your problem ...

  3. #3
    Join Date
    May 2009
    Posts
    55
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain

    Why not to choose some build system to do it for you? I can recommend Buildroot.

    Cheers,

    marek

  4. #4
    Join Date
    Dec 2011
    Posts
    18
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain

    Sorry for my late response, but thank you very much guys , that solved my problem!

  5. #5
    Join Date
    Dec 2012
    Posts
    3
    Qt products
    Qt4 Qt/Embedded

    Default Re: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain

    I found I had to manually fixup my $PATH env var too like Qt/E page and unset $CC and $CXX when building qt 4.8 from source. Normally these are all set by our OE angstrom compiler when building SDK examples, but these had to be stripped when building full source tree.

    One more item I ran into was with the 4.8.3 webkit option kept getting disabled by the configure script. I tracked this down to extra quotes in QMAKE_CXX setting which failed the gcc -dumpversion check. Don't know why the OE guys put their QMAKE_ vars all in quotes.

Similar Threads

  1. Trouble building with web audio support
    By piezontm in forum Newbie
    Replies: 0
    Last Post: 10th August 2012, 13:40
  2. Replies: 2
    Last Post: 19th July 2012, 15:25
  3. Replies: 1
    Last Post: 10th November 2010, 22:46
  4. Building Qt Embedded for arm architecture
    By Naami in forum Qt Programming
    Replies: 1
    Last Post: 28th July 2010, 15:54
  5. Trouble building a sample (4.6)
    By Asperamanca in forum Newbie
    Replies: 12
    Last Post: 21st October 2009, 09:55

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.