Results 1 to 3 of 3

Thread: cross-compile the qtopia core 4

  1. #1
    Join Date
    May 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default cross-compile the qtopia core 4

    when compile the qtopia core 4,the argument of -embedded and -xplatform isn't workd,it can not configure the qt correctly,so i only modify the makefile ,but there are some errors,such as ld and so on.please everyone tell me why and post your experiences about this,i am very pleasured to communicate with you ,thank you

  2. #2
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: cross-compile the qtopia core 4

    have you try to put qtopia-core-opensource-src-4.1.4 at /tmp
    then tar xvfz qtopia-core-opensource-src-4.1.4
    because when my friend try to extract not at /tmp directory he got error.

    i am success to configure for embedded arm
    # ./configure -embedded arm -little-endian

    but i am still stuck at gmake step
    gmake[3]: Entering directory `/tmp/qtopia-core-opensource-src-4.1.4/src/corelib'
    arm-linux-g++ -c -pipe -fno-exceptions -g -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I../3rdparty/zlib -I.moc/debug-shared-emb-arm -I. -o .obj/debug-shared-emb-arm/qglobal.o global/qglobal.cpp
    ../../include/QtCore/../../src/corelib/tools/qchar.h: In member function 'ushort& QChar::unicode()':
    ../../include/QtCore/../../src/corelib/tools/qchar.h:224: error: cannot bind packed field '((QChar*)this)->QChar::ucs' to 'ushort&'
    gmake[3]: *** [.obj/debug-shared-emb-arm/qglobal.o] Error 1
    gmake[3]: Leaving directory `/tmp/qtopia-core-opensource-src-4.1.4/src/corelib'

  3. #3
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post

    Thumbs up Re: cross-compile the qtopia core 4

    all,

    i got repy from qt-bugs@trolltech.com concerning this bug.
    thanks to Jason.
    hope this help.

    best regards,
    sliawati

    --forwarded message--
    This was a known issue with gcc 4.
    I have attached the patch that fix this problem.
    Regards,
    Jason Barron, Support Engineer
    Trolltech ASA, Oslo
    --end of forwarded--

    --the patch.diff file--
    --- src/corelib/tools/qchar.h 2006-08-10 15:42:44 -0000
    +++ src/corelib/tools/qchar.h 2006-08-10 15:42:44 -0000

    @@ -211,7 +211,7 @@
    inline const char toLatin1() const;
    inline const ushort unicode() const { return ucs; }
    #ifdef Q_NO_PACKED_REFERENCE
    - inline ushort &unicode() { return *((ushort*)&ucs); }
    + inline ushort &unicode() { return const_cast<ushort&>(ucs); }
    #else
    inline ushort &unicode() { return ucs; }
    #endif
    --end of file--
    Attached Files Attached Files

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.