Results 1 to 3 of 3

Thread: Qtopia cross-compile for arm

Threaded View

Previous Post Previous Post   Next Post Next Post
  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 08:01.

Similar Threads

  1. Qtopia install
    By dragon in forum Qt for Embedded and Mobile
    Replies: 14
    Last Post: 23rd August 2007, 09:55
  2. Cross compile QT/X11 for platform xscale-elf
    By nmkarvekar in forum Installation and Deployment
    Replies: 0
    Last Post: 19th May 2006, 07: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.