Results 1 to 20 of 23

Thread: QT build - cross compilation error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default QT build - cross compilation error

    Hello
    when Iḿ trying to build QT (cross compilation) I have error with message:
    typing: ./configure -opensource -confirm-license -prefix /opt/qt-arm -no-qt3support -embedded arm -little-endian -xplatform qws/linux-arm-ti3517 -qtlibinfix E

    and when i type ¨make¨ error occurs:

    g++: error trying to exec 'cc1plus': execvp: No such file or directory
    Assembler messages:
    Fatal error: Invalid -march= option: `armv5te'
    make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] Error 1
    make[1]: Leaving directory `/home/user/qt-everywhere-opensource-src-4.7.3/src/corelib'
    make: *** [sub-corelib-make_default-ordered] Error 2

    ma qmake.conf file:
    #
    # qmake configuration for building with arm-linux-g++
    #

    include(../../common/g++.conf)
    include(../../common/linux.conf)
    include(../../common/qws.conf)

    # modifications to g++.conf
    #Compiler Flags to take advantage of the ARM architecture
    #QMAKE_CFLAGS_RELEASE = -g -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    #QMAKE_CXXFLAGS_RELEASE = -g -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp

    QMAKE_CC = /home/user/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin/gcc
    QMAKE_CXX = /home/user/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin/g++
    QMAKE_LINK = /home/user/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin/g++
    QMAKE_LINK_SHLIB = /home/user/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin/g++

    # modifications to linux.conf
    QMAKE_AR = /home/user/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin/ar cqs
    QMAKE_OBJCOPY = /home/user/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin/objcopy
    QMAKE_STRIP = /home/user/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin/strip

    load(qt_config)

    Sourcery G++ Lite 2011.03-41
    QT version: 4.7.3
    Ubunt 10.10 on VMware

  2. #2
    Join Date
    Jun 2011
    Location
    Białystok, Poland
    Posts
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT build - cross compilation error

    I have problems with building Qt for embedded too:/

    makespecs/qws/linux-arm-g++ looks like this:

    include(../../common/g++.conf)
    include(../../common/linux.conf)
    include(../../common/qws.conf)

    # modifications to g++.conf
    QMAKE_CC = arm-linux-gnueabi-gcc
    QMAKE_CXX = arm-linux-gnueabi-g++
    QMAKE_LINK = arm-linux-gnueabi-g++
    QMAKE_LINK_SHLIB = arm-linux-gnueabi-g++

    # modifications to linux.conf
    QMAKE_AR = arm-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = arm-linux-gnueabi-objcopy
    QMAKE_STRIP = arm-linux-gnueabi-strip

    load(qt_config)

    my configure line is:
    ./configure -embedded arm -shared -release -no-largefile -qt-sql-sqlite -no-qt3support -no-phonon -no-svg -no-scripttools -nomake demo -nomake examples -qt-decoration-default -no-opengl -qt-gfx-linuxfb -little-endian


    after configure I'm using 'make' and after a while I have this issue:

    arm-linux-gnueabi-g++ -Wl,-rpath-link,/home/ryba/qt-everywhere-opensource-src-4.7.3/lib -fno-exceptions -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib -o ../../../bin/lrelease .obj/release-shared-emb-arm/main.o .obj/release-shared-emb-arm/qlibraryinfo.o .obj/release-shared-emb-arm/qsettings.o .obj/release-shared-emb-arm/numerus.o .obj/release-shared-emb-arm/translator.o .obj/release-shared-emb-arm/translatormessage.o .obj/release-shared-emb-arm/qm.o .obj/release-shared-emb-arm/qph.o .obj/release-shared-emb-arm/po.o .obj/release-shared-emb-arm/ts.o .obj/release-shared-emb-arm/xliff.o .obj/release-shared-emb-arm/proitems.o .obj/release-shared-emb-arm/profileevaluator.o -L/home/ryba/qt-everywhere-opensource-src-4.7.3/src/tools/bootstrap -lbootstrap
    /usr/lib/gcc/arm-linux-gnueabi/4.5.2/../../../../arm-linux-gnueabi/bin/ld: cannot find -lbootstrap
    collect2: ld returned 1 exit status
    make[1]: *** [../../../bin/lrelease] Error 1
    make[1]: Leaving directory `/home/ryba/qt-everywhere-opensource-src-4.7.3/tools/linguist/lrelease'
    make: *** [sub-tools-linguist-lrelease-make_default-ordered] Error 2
    root@ryba-VirtualBox:/home/ryba/qt-everywhere-opensource-src-4.7.3#


    thanks for Your help
    Last edited by 7ymekk; 17th June 2011 at 19:52.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT build - cross compilation error

    Is this the result of configure or make? Did configure build the bootstrap library for you?

    I would suggest disabling build of the tools, it's very unlikely you'll ever need Assistant for the embedded system.
    Last edited by wysota; 17th June 2011 at 19:46.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jun 2011
    Location
    Białystok, Poland
    Posts
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT build - cross compilation error

    thanks for a quick reply. This is a result of make. 'find' command doesn't see any *bootstrap* files except source ones. ' -nomake tools' added but this issue still occurs

    ps. this problem occurs on my old Ubuntu 10.04 and fresh installed Ubuntu 11.04...
    Last edited by 7ymekk; 17th June 2011 at 20:13.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT build - cross compilation error

    At the same place? Hardly possible if you disabled the tools. Did you run make clean? The bootstrap library is in src/tools/bootstrap and is called libbootstrap.a.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jun 2011
    Location
    Białystok, Poland
    Posts
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT build - cross compilation error

    yes, it occurs in the same moment and I've made 'make clean' before reruning 'configure' and 'make' commands.

    find of bootstrap looks like this:

    root@ryba-VirtualBox:/# find -name *bootstrap*
    ./var/log/bootstrap.log
    ./home/ryba/qt-everywhere-opensource-src-4.7.3/src/corelib/arch/qatomic_bootstrap.h
    ./home/ryba/qt-everywhere-opensource-src-4.7.3/src/tools/bootstrap
    ./home/ryba/qt-everywhere-opensource-src-4.7.3/src/tools/bootstrap/bootstrap.pri
    ./home/ryba/qt-everywhere-opensource-src-4.7.3/src/tools/bootstrap/bootstrap.pro
    ./home/ryba/qt-everywhere-opensource-src-4.7.3/include/QtCore/qatomic_bootstrap.h
    ./home/ryba/qt-everywhere-opensource-src-4.7.3/include/Qt/qatomic_bootstrap.h
    ./home/ryba/qt-everywhere-opensource-src-4.7.3/tools/qtestlib/wince/cetest/bootstrapped.pri
    ./usr/share/perl/5.10.1/ExtUtils/Mkbootstrap.pm
    ./usr/lib/libreoffice/program/bootstraprc
    ./usr/lib/libreoffice/basis3.3/program/libmozbootstrap.so
    ./usr/lib/ure/lib/bootstrap.uno.so
    ./lib/firmware/dsp56k/bootstrap.asm
    ./lib/firmware/dsp56k/bootstrap.bin
    root@ryba-VirtualBox:/#

    ps.some files was computed before this issue. e.g qmake was built

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT build - cross compilation error

    So adding -nomake tools doesn't prevent the compilation from building tools?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Jun 2011
    Location
    Białystok, Poland
    Posts
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT build - cross compilation error

    apparently not because I compared this error message with the previous one and it is exactly the same message

    I removed all sources dir and extracted it again. configure with command:

    ./configure -embedded arm -shared -release -no-largefile -qt-sql-sqlite -no-qt3support -no-phonon -no-svg -no-scripttools -nomake demo -nomake examples -nomake tools -qt-decoration-default -no-opengl -qt-gfx-linuxfb -little-endian

    ,after that 'make' and tools are built...

    I don't want to give up but I have no idea what is wrong...all forums, websites etc. shows excatly the same procedure
    Last edited by 7ymekk; 18th June 2011 at 10:20.

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT build - cross compilation error

    Run make distclean, make confclean, then run configure again and before running make check what got built. Also somewhere during its output configure should output a log of enabled and disabled features, please post it here.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt-4.6.2 cross compilation with DBus
    By grsandeep85 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 20th August 2010, 07:52
  2. Cross Compilation of QT- 4.4.3 with linux-sh4-g++
    By Manasa in forum Installation and Deployment
    Replies: 4
    Last Post: 5th March 2009, 10:09
  3. Cross compilation from OS X to Windows
    By NicholasSmith in forum Installation and Deployment
    Replies: 3
    Last Post: 15th January 2009, 17:43
  4. qt-embedded cross compilation error help
    By aj2903 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 27th October 2008, 08:41
  5. problems about cross-compilation qte to arm
    By slient in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 10th April 2007, 16:59

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.