[SOLVED]Cross-compilation for embedded powerpc



  • Hello, I try to cross-compile qt for embedded powerpc.

    I use this command to configure qt.

    ./configure
    -embedded powerpc
    -xplatform qws/linux-powerpc-g++
    -nomake demos
    -nomake examples
    -nomake tools
    -big-endian
    -host-little-endian

    I got the following errors:

    /mnt/data/projects/apm-hana/src/qt-everywhere-opensource-src-4.7.3/bin/qmake: 1: Syntax error: "(" unexpected
    /mnt/data/projects/apm-hana/src/qt-everywhere-opensource-src-4.7.3/bin/qmake: 1: Syntax error: "(" unexpected
    /mnt/data/projects/apm-hana/src/qt-everywhere-opensource-src-4.7.3/bin/qmake: 1: Syntax error: "(" unexpected
    /mnt/data/projects/apm-hana/src/qt-everywhere-opensource-src-4.7.3/bin/qmake: 1: Syntax error: "(" unexpected
    ..........

    Best Regards,



  • The problem was that I did cross compile qmake.



  • I have problem with cross compiling the qt.

    This is a script I use to compile qt:

    #!/bin/sh

    PKG=qt-everywhere-opensource-src-4.7.3

    PROJECT_PATH=/home/daniil/projects/apm-hana

    CS_TOOLCHAIN_PATH=$PROJECT_PATH/sdk/apm-2010.09
    SYSROOT=$PROJECT_PATH/sdk/V1.2/44xFP/staging
    PATH=$CS_TOOLCHAIN_PATH/bin:$PATH
    CROSS_COMPILE=powerpc-apm-linux-gnu-
    ARCH=powerpc

    export CS_TOOLCHAIN PATH CROSS_COMPILE SYSROOT ARCH

    CC=powerpc-apm-linux-gnu-gcc
    CPP=powerpc-apm-linux-gnu-cpp
    AS=powerpc-apm-linux-gnu-as
    ASCPP=powerpc-apm-linux-gnu-as
    AR=powerpc-apm-linux-gnu-ar
    RANLIB=powerpc-apm-linux-gnu-ranlib
    CXXCPP=powerpc-apm-linux-gnu-cpp
    CXX=powerpc-apm-linux-gnu-g++
    LD=powerpc-apm-linux-gnu-ld
    STRIP=powerpc-apm-linux-gun-strip
    #CFLAGS="-mcpu=440fp -mtune=440fp --sysroot $SYSROOT"
    CFLAGS="--sysroot $SYSROOT"

    LD_LIBRARY_PATH=$SYSROOT/lib:$SYSROOT/usr/lib:$LD_LIBRARY_PATH
    PKG_CONFIG_PATH=$SYSROOT/usr/lib/pkgconfig

    export CFLAGS PKG_CONFIG_PATH

    PREFIX=/usr/local
    INSTALL_DIR=$PROJECT_PATH/pkg/$PKG

    cd $PROJECT_PATH/src/$PKG

    ./configure
    -v
    -embedded powerpc
    -xplatform qws/linux-powerpc-g++
    -nomake demos
    -nomake examples
    -nomake tools
    -big-endian
    -host-little-endian
    -no-qt3support
    -no-declarative
    -no-gui
    -no-cups
    -dbus
    -force-pkg-config
    -qt-sql-mysql
    -I$SYSROOT/usr/include
    -L$SYSROOT/lib \

    make

    And I got the following Error:
    release-shared/moc.o: In function Moc::generate(_IO_FILE*)': moc.cpp:(.text+0x7f4f): undefined reference to__nldbl___fprintf_chk'
    moc.cpp:(.text+0x7fa1): undefined reference to __nldbl___fprintf_chk' moc.cpp:(.text+0x80ca): undefined reference to__nldbl___fprintf_chk'
    moc.cpp:(.text+0x81ba): undefined reference to __nldbl___fprintf_chk' moc.cpp:(.text+0x81da): undefined reference to__nldbl___fprintf_chk'



  • Many people want to know about [url=http://www.embeddedplanet.com/products/single-board-computers/freescale-powerpc/]"embeddedplanet.com" [/url]. Today I am going to tell all of you that the question about embedded power PC was also belonged to me. But I have got my ans from the following link.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.