Results 1 to 3 of 3

Thread: Qtopia cross-compile for arm

  1. #1
    Join Date
    Jun 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Qtopia cross-compile for arm

    Hello,

    I'm new on Qtopia and linux. I have installed Qtopia-Core 4.1.1 for my x86-System without problems. Now i want to cross-compile Qtopia-Core 4.1.1 for my embedded ARM-system, but it crashed..

    I've configured Qtopia with:

    ./configure -prefix /usr/local/Trolltech/QtopiaCore-4.1.1-arm -embedded arm -depths 4,8 -pch -qt-zlib -qt-libjpeg -qt-libpng -release

    If I would run "make" the compiler crash on file src/corelib/arch/arm/malloc.c

    ErrorMessage:

    Qt Code:
    1. arm-linux-gcc -c -include .obj/release-shared-emb-arm/QtCore -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I../3rdparty/zlib -I.moc/release-shared-emb-arm -I. -o .obj/release-shared-emb-arm/malloc.o arch/arm/malloc.c
    2. arch/arm/malloc.c:298:2: invalid preprocessing directive #if
    3. arch/arm/malloc.c:300:2: invalid preprocessing directive #else
    4. arch/arm/malloc.c:301:1: warning: "__STD_C" redefined
    5. arch/arm/malloc.c:299:1: warning: this is the location of the previous definition
    6. arch/arm/malloc.c:311:2: invalid preprocessing directive #if
    7. arch/arm/malloc.c:313:2: invalid preprocessing directive #else
    8. arch/arm/malloc.c:314:1: warning: "Void_t" redefined
    9. arch/arm/malloc.c:312:1: warning: this is the location of the previous definition
    10. arch/arm/malloc.c:316:2: #endif without #if
    11. arch/arm/malloc.c:318:2: invalid preprocessing directive #if
    12. In file included from arch/arm/malloc.c:319:
    13. /opt/emlix/netdcu5/lib/gcc/arm-linux/3.4.3/include/stddef.h:30:2: invalid preprocessing directive #if
    14. /opt/emlix/netdcu5/lib/gcc/arm-linux/3.4.3/include/stddef.h:39:2: invalid preprocessing directive #if
    15. /opt/emlix/netdcu5/lib/gcc/arm-linux/3.4.3/include/stddef.h:42:2: invalid preprocessing directive #define
    16. /opt/emlix/netdcu5/lib/gcc/arm-linux/3.4.3/include/stddef.h:43:2: invalid preprocessing directive #define
    17. /opt/emlix/netdcu5/lib/gcc/arm-linux/3.4.3/include/stddef.h:45:2: invalid preprocessing directive #define
    18. /opt/emlix/netdcu5/lib/gcc/arm-linux/3.4.3/include/stddef.h:47:2: invalid preprocessing directive #define
    19. /opt/emlix/netdcu5/lib/gcc/arm-linux/3.4.3/include/stddef.h:48:2: invalid preprocessing directive #endif
    20. .
    21. .
    22. .
    23. arch/arm/malloc.c:320:2: invalid preprocessing directive #else
    24. arch/arm/malloc.c:321:2: invalid preprocessing directive #include
    25. arch/arm/malloc.c:322:2: invalid preprocessing directive #endif
    26. arch/arm/malloc.c:324:2: invalid preprocessing directive #ifdef
    27. arch/arm/malloc.c:325: error: parse error before string constant
    28. arch/arm/malloc.c:326:2: invalid preprocessing directive #endif
    29. arch/arm/malloc.c:333:2: invalid preprocessing directive #include
    30. arch/arm/malloc.c:334:2: invalid preprocessing directive #endif
    31. arch/arm/malloc.c:341:2: invalid preprocessing directive #include
    32. .
    33. .
    34. .
    35. arch/arm/malloc.c:5765:1: unterminated #ifndef
    36. arch/arm/malloc.c:5753:1: unterminated #ifndef
    37. arch/arm/malloc.c:5743:1: unterminated #ifndef
    38. .
    39. .
    40. .
    41. arch/arm/malloc.c:325: confused by earlier errors, bailing out
    42. make[3]: *** [.obj/release-shared-emb-arm/malloc.o] Fehler 1
    43. make[3]: Leaving directory `/home/test/Desktop/GraphikFrameworks/Qtopia/qtopia-core-opensource-src-4.1.1/src/corelib'
    44. make[2]: *** [release] Fehler 2
    45. make[2]: Leaving directory `/home/test/Desktop/GraphikFrameworks/Qtopia/qtopia-core-opensource-src-4.1.1/src/corelib'
    46. make[1]: *** [sub-corelib-make_default-ordered] Fehler 2
    47. make[1]: Leaving directory `/home/test/Desktop/GraphikFrameworks/Qtopia/qtopia-core-opensource-src-4.1.1/src'
    48. make: *** [sub-src-make_default-ordered] Fehler 2
    To copy to clipboard, switch view to plain text mode 

    I hope someone of you can help me...

    Greez

    Bitz
    Last edited by Bitz; 2nd June 2006 at 09:01.

  2. #2
    Join Date
    Feb 2006
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Qtopia cross-compile for arm

    Hi,

    You need to add the processor/bin path to your path.

    Kruti

  3. #3
    Join Date
    Jun 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qtopia cross-compile for arm

    Hello kruti,

    the processor bin-Path is in my global path..

    but i forgot a flag in the configure command --> -little-endian!!!

    My configure command looks like:
    ./configure -prefix /usr/local/Trolltech/QtopiaCore-4.1.1-arm -embedded arm -little-endian -no-qvfb -depths 4,8 -release
    it is all the same whether I write “-no-qvfb” or I omit it.

    Now it compiles more but broke again.

    i have a lot of warnungs like:

    Qt Code:
    1. In file included from ../../include/QtCore/qglobal.h:1,
    2. from .rcc/release-shared-emb-arm/qrc_deform.cpp:10:
    3. ../../include/QtCore/../../src/corelib/global/qglobal.h:1025: warning: `visibility' attribute does not apply to types
    4. ../../include/QtCore/../../src/corelib/global/qglobal.h:1511: warning: `visibility' attribute does not apply to types
    To copy to clipboard, switch view to plain text mode 

    and it brokes with this error:

    Qt Code:
    1. arm-linux-g++ -Wl,-rpath,/usr/local/Trolltech/QtopiaCore-4.1.1-arm/lib -Wl,-rpath,/usr/local/Trolltech/QtopiaCore-4.1.1-arm/lib -o deform .obj/release-shared-emb-arm/main.o .obj/release-shared-emb-arm/pathdeform.o .obj/release-shared-emb-arm/moc_pathdeform.o .obj/release-shared-emb-arm/qrc_deform.o -L/home/test/Desktop/GraphikFrameworks/Qtopia/qtopia-core-opensource-src-4.1.1-arm/lib -L../shared -ldemo_shared -L/home/test/Desktop/GraphikFrameworks/Qtopia/qtopia-core-opensource-src-4.1.1-arm/lib -lQtGui -lQtNetwork -lQtCore -lz -lm -ldl -lpthread
    2. /home/test/Desktop/GraphikFrameworks/Qtopia/qtopia-core-opensource-src-4.1.1-arm/lib/libQtGui.so: undefined reference to `QVFbScreen::QVFbScreen(int)'
    3. collect2: ld returned 1 exit status
    4. make[2]: *** [deform] Fehler 1
    5. make[2]: Leaving directory `/home/test/Desktop/GraphikFrameworks/Qtopia/qtopia-core-opensource-src-4.1.1-arm/demos/deform'
    6. make[1]: *** [sub-deform-make_default-ordered] Fehler 2
    7. make[1]: Leaving directory `/home/test/Desktop/GraphikFrameworks/Qtopia/qtopia-core-opensource-src-4.1.1-arm/demos'
    8. make: *** [sub-demos-make_default-ordered] Fehler 2
    To copy to clipboard, switch view to plain text mode 

    I hope someone of you can help me.

    Greez
    Bitz

Similar Threads

  1. Qtopia install
    By dragon in forum Qt for Embedded and Mobile
    Replies: 14
    Last Post: 23rd August 2007, 10:55
  2. Cross compile QT/X11 for platform xscale-elf
    By nmkarvekar in forum Installation and Deployment
    Replies: 0
    Last Post: 19th May 2006, 08:20

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.