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

  • Hi

    I am using this tutorial


    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:


    ./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 ?


  • On openSUSE 12.3 x86_64 one needs to install binutils_gold

Log in to reply

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