Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] Cannot cross-compile Qt5.5 for Raspberry Pi on openSUSE 12.3 x86_64

[Solved] Cannot cross-compile Qt5.5 for Raspberry Pi on openSUSE 12.3 x86_64

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.1k 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.
  • C Offline
    C Offline
    cristeab
    wrote on last edited by cristeab
    #1

    Hi

    I am using this tutorial

    http://exploreembedded.tumblr.com/post/115333857238/guide-to-cross-compile-qt-54-for-the-raspberry-pi

    to cross-compile Qt, but the make step fails with this error:

    g++ -Wl,--gc-sections -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o ../../../bin/moc .obj/moc.o .obj/preprocessor.o .obj/generator.o
    .obj/parser.o .obj/token.o .obj/main.o -L/home/bogdan/Qt/5.5/Src/qtbase/lib -lQt5Bootstrap -lpthread
    collect2: fatal error: cannot find 'ld'

    I am configuring the compilation with the command:

    ROOTFS=/mnt/rasp-pi-rootfs
    TOOLCHAIN=~/Build/raspberrypi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-

    ./configure -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=$TOOLCHAIN -sysroot $ROOTFS -prefix /usr/local/qt5-rpi -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -skip qtwebkit

    I find strange that g++ is not taken from the cross-compiler toolchain. If I cross-compile a simple C++ program everything works correctly and I am able to run the program on Raspberry. My host OS is openSUSE 13.2 x64 installed in VirtualBox.

    Do you have any ideeas how to solve this compilation error ?

    thanks
    Bogdan

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cristeab
      wrote on last edited by
      #2

      On openSUSE 12.3 x86_64 one needs to install binutils_gold

      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