Results 1 to 3 of 3

Thread: Problem while Cross compiling Qt v4.6.3

  1. #1
    Join Date
    Mar 2010
    Posts
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Problem while Cross compiling Qt v4.6.3

    Hi,

    I have cross compiled Qt v4.5.2 successfully but when I try to cross compile qt v4.6.3, It configures correctly but it throws following error when I run "make" command.

    ../3rdparty/javascriptcore/JavaScriptCore/wtf/TCSystemAlloc.cpp: In function 'void* TrySbrk(size_t, size_t*, size_t)':
    ../3rdparty/javascriptcore/JavaScriptCore/wtf/TCSystemAlloc.cpp:126: error: 'sbrk' was not declared in this scope
    make[1]: *** [obj/release/TCSystemAlloc.o] Error 1
    make[1]: Leaving directory `/home/bakul/Qt/qt-everywhere-opensource-src-4.6.3/src/script'
    make: *** [sub-script-make_default-ordered] Error 2



    I am using "qt-everywhere-opensource-src-4.6.3.tar.gz" and I used following options while configuration.

    ./configure -little-endian -embedded arm -xplatform qws/linux-arm-g++ -no-qt3support -static -no-webkit -prefix /usr/local/Qt_4.6.3 -qt-mouse-tslib -L /usr/local/tslib/lib -I /usr/local/tslib/include -opensource -nomake examples -nomake demos -optimized-qmake

    I do not why it gives this error comes with v4.6.3 which is not the case with v4.5.2.
    If anybody has compiled v4.6.3 with any other options please let me know.
    Thanks in advance for help.

  2. #2
    Join Date
    Sep 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Problem while Cross compiling Qt v4.6.3

    Hii

    I am also getting the same error.
    Did you get the solution for this.

  3. #3

    Default Re: Problem while Cross compiling Qt v4.6.3

    I found the solution on a Chinese web page:

    Edit the header file:
    .../4.3.3/arm-none-linux-gnueabi/libc/usr/include/unistd.h
    Un-comment the sbrk function header.

    Google translation of original page:
    http://translate.googleusercontent.c...ToCFHVKDygthYA

Similar Threads

  1. cross compiling QT for arm archetacture
    By yogeshpjadhav in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th August 2010, 03:48
  2. cross-compiling a Qt app for MacOS X?
    By akos.maroy in forum Qt Programming
    Replies: 0
    Last Post: 3rd August 2009, 20:37
  3. QtCreator and cross-compiling
    By zuck in forum Qt Tools
    Replies: 1
    Last Post: 28th April 2009, 20:04
  4. cross compiling
    By tommy in forum Installation and Deployment
    Replies: 1
    Last Post: 8th March 2009, 18:02
  5. Problem cross compiling examples/demo on mips.Qmake/Linking?
    By Cursedbeasty in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 5th July 2007, 10:53

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.