Results 1 to 2 of 2

Thread: Qt compilation error

  1. #1
    Join Date
    Mar 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Qt compilation error

    Good Night to you all,

    I'm quite new to Qt and would be really delighted to be able to use it in some of my personal projects. I've done a fair amount of reading about the tools and means to develop using Qt by now, and by any means I will ask for somebody to solve a problem for me.

    However I came across several Issues that I will now report, hoping that someone is already past them, here they are:


    Beagle Board

    I am trying to set Qt creator to work with a beagle board I possess, and I'm having a hard time compiling Qt-everywhere-4.7.2 for the armv7a architecture...here are the commands I`ve been trying:
    configuring qt
    Qt Code:
    1. ./configure -prefix /home/saul/qt-arm -embedded arm -platform /qws/linux-x86_64-g++ -xplatform /qws/linux-angstrom-g++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast
    To copy to clipboard, switch view to plain text mode 
    I'm aware I'm not enabling tslib support
    the configure step goes on ok, but when I try to "make" I get:

    Qt Code:
    1. In file included from ../../include/QtCore/qatomic_arm.h:1:0,
    2. from ../../include/QtCore/../../src/corelib/arch/qatomic_arch.h:54,
    3. from ../../include/QtCore/qatomic_arch.h:1,
    4. from ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:227,
    5. from ../../include/QtCore/qbasicatomic.h:1,
    6. from ../../include/QtCore/../../src/corelib/thread/qatomic.h:46,
    7. from ../../include/QtCore/qatomic.h:1,
    8. from ../../include/QtCore/../../src/corelib/tools/qbytearray.h:45,
    9. from ../../include/QtCore/qbytearray.h:1,
    10. from ../../include/QtCore/../../src/corelib/tools/qstring.h:46,
    11. from ../../include/QtCore/qstring.h:1,
    12. from kernel/qobject.h:48,
    13. from kernel/qobject.cpp:42:
    14. ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h: In function 'void qt_removeObject(QObject*)':
    15. ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35: error: output number 1 not directly addressable
    16. make[1]: *** [.obj/release-shared-emb-arm/qobject.o] Error 1
    17. make[1]: *** Waiting for unfinished jobs....
    18. make[1]: Leaving directory `/home/saul/Downloads/qt-everywhere-opensource-src-4.7.2/src/corelib'
    19. make: *** [sub-corelib-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    It was the same error with codesourcery and the angstorm-distribution toolchain... can anybody help?


    here is my qmake.conf
    Qt Code:
    1. #
    2. # qmake configuration for building with arm-linux-g++
    3. #
    4.  
    5. include(../../common/g++.conf)
    6. include(../../common/linux.conf)
    7. include(../../common/qws.conf)
    8.  
    9. # modifications to g++.conf
    10. QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    11. QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    12.  
    13. QMAKE_CC = arm-none-linux-gnueabi-gcc
    14. QMAKE_CXX = arm-none-linux-gnueabi-g++
    15. QMAKE_LINK = arm-none-linux-gnueabi-g++
    16. QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
    17.  
    18. # modifications to linux.conf
    19.  
    20. QMAKE_AR = arm-none-linux-gnueabi-ar cqs
    21. QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
    22. QMAKE_STRIP = arm-none-linux-gnueabi-strip
    23.  
    24.  
    25. load(qt_config)
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2011
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt compilation error

    I had the same issue using Codesourcery toolchain (version 2010.09-50) and reverting to version 2010q1-202 release made the problem disappear.

    Apparently there is a bug in gcc 4.5 (shipped with last Codesourcery release: 2010.09-50) and to solve it you could revert to older version or try some of the hacks from the following discussions:

    volatile int causes inline assembly build failure
    [PATCH] Volatile bitfields vs. inline asm memory constraints

Similar Threads

  1. Qt 4.6.2. compilation error
    By b1 in forum Installation and Deployment
    Replies: 3
    Last Post: 13th June 2010, 08:22
  2. compilation error
    By jjbabu in forum Qt Programming
    Replies: 19
    Last Post: 9th April 2009, 07:03
  3. Qt 4.4.0 compilation Error?
    By mismael85 in forum Installation and Deployment
    Replies: 7
    Last Post: 3rd July 2008, 09:59
  4. QT 4. Compilation error
    By mansoorulhaq in forum Qt Programming
    Replies: 2
    Last Post: 9th October 2007, 09:32

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.