Results 1 to 2 of 2

Thread: gmake embedded ARM build issue

Hybrid View

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

    Question gmake embedded ARM build issue

    Hi all,

    I am trying to build for an ARM embedded target with this configuration command:

    ./configure -embedded arm -xplatform /home/developer/Desktop/qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-arm-g++ -big-endian -prefix /usr/local/Trolltech/qt_target

    The configuration runs successfully. I now run 'gmake' and get the following error:

    ************************************************** **************

    .obj/release-shared-emb-arm/moc_qsignaltransition.o .obj/release-shared-emb-arm/moc_qeventtransition.o -L/home/developer/Desktop/qt-everywhere-opensource-src-4.7.1/lib -lpthread -lm -ldl
    .obj/release-shared-emb-arm/qeasingcurve.o: In function `easeInSine(float)':
    qeasingcurve.cpp:(.text+0x7ac) :undefined reference to `cosf'

    ...

    A lot more undefined references...

    ...

    qline.cpp:(.text+0x1fa0): undefined reference to `cosf'
    qline.cpp:(.text+0x1fb4): undefined reference to `sinf'
    collect2: ld returned 1 exit status
    gmake[1]: *** [../../lib/libQtCore.so.4.7.1] Error 1
    gmake[1]: Leaving directory `/home/developer/Desktop/qt-everywhere-opensource-src-4.7.1/src/corelib'
    gmake: *** [sub-corelib-make_default-ordered] Error 2

    ************************************************** **************

    Some research indicates that the libm math library cannot be found. I have the arm-linux-g++ compiler installed. The following files:

    libm.a
    libm.so
    libm.so.0

    (along with many others)

    Are located here:

    /usr/local/arm/3.4/arm-linux/lib

    Here is my PATH:

    /usr/lib/mpi/gcc/openmpi/bin:/home/developer/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/local/Trolltech/QtEmbedded-4.7.1/bin:/usr/bin/gcc:/usr/lib/gcc:/usr/bin/X11/gcc:/usr/local/arm/3.4/bin:/usr/local/arm/3.2.1-elf/bin:/usr/local/arm/3.4/arm-linux/lib

    I've tried relocating the libm files into other directories with no luck. I've attached the Makefile for reference.

    OS: openSUSE 11.3
    Qt 4.7.1

    Thanks in advance for any help you can provide.
    Attached Files Attached Files

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

    Smile Re: gmake embedded ARM build issue

    Ok. My problem is resolved. I changed my configure line to:

    ./configure -embedded arm -xplatform /home/developer/Desktop/qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-arm-gnueabi-g++ -big-endian -prefix /usr/local/Trolltech/qt_target

    and made sure that my PATH var contained:

    /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin

    All is now well with Qt building.

Similar Threads

  1. QT4 Embedded custom build issue
    By nikel in forum Installation and Deployment
    Replies: 0
    Last Post: 26th November 2010, 21:03
  2. QPainter issue in embedded system
    By dulan2010 in forum Qt Programming
    Replies: 0
    Last Post: 13th November 2010, 14:51
  3. Build QT Embedded Linux Ubuntu Error ?
    By Thành Viên Mới in forum Installation and Deployment
    Replies: 0
    Last Post: 4th November 2010, 05:15
  4. QWebkit Demo Build On Embedded System
    By Thành Viên Mới in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 4th November 2010, 04:15
  5. Static build of Qt-embedded applications
    By cloud in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 8th January 2010, 12:29

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.