Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED]Cross-compilation for embedded powerpc
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Cross-compilation for embedded powerpc

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 6.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    daniil
    wrote on 5 Aug 2011, 02:58 last edited by
    #1

    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,

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daniil
      wrote on 5 Aug 2011, 09:29 last edited by
      #2

      The problem was that I did cross compile qmake.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daniil
        wrote on 5 Aug 2011, 09:36 last edited by
        #3

        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'

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nazrul
          wrote on 8 Nov 2013, 16:06 last edited by
          #4

          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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved