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. Installation error for cross compiler
Forum Updated to NodeBB v4.3 + New Features

Installation error for cross compiler

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 161 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
    doubitchou
    wrote on last edited by
    #1

    Hi,

    I'm using the most up to date tutorial I've found to have a cross compiler for the RaspberryPI3 here :
    https://wiki.qt.io/RaspberryPi2EGLFS. I'd like to mention that:

    • I have changed the image to suit to Buster lite instead of Wheezy.
    • I've cloned Qt 5.12 version
    • The environment I'm using is a VM with a recent 64 bits Linux Mint

    And the output of the configure is :

    <srcbase> = /home/david/raspi/qtbase
    <bldbase> = /home/david/raspi/qtbase
    <outbase> = /home/david/raspi/qtbase
    Creating qmake...
    make: rien à faire pour « first ».
    Command line: -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/david/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/david/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/david/raspi/qt5pi -hostprefix /home/david/raspi/qt5 -v -no-use-gold-linker

    This is the Qt Open Source Edition.

    You have already accepted the terms of the Open Source license.

    Running configuration tests...

    • /home/david/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -dumpmachine

    arm-linux-gnueabihf
    Checking for valid makespec...

    • cd /home/david/raspi/qtbase/config.tests/verifyspec && /home/david/raspi/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/david/raspi/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/david/raspi/sysroot" "QMAKE_LFLAGS += --sysroot=/home/david/raspi/sysroot" -early "CONFIG += cross_compile" /home/david/raspi/qtbase/config.tests/verifyspec
    • cd /home/david/raspi/qtbase/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make

    rm -f verifyspec.o
    rm -f *~ core *.core
    /home/david/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/home/david/raspi/sysroot -O2 -std=gnu++11 -w -fPIC -I. -I/home/david/raspi/qtbase/mkspecs/devices/linux-rasp-pi3-g++ -o verifyspec.o verifyspec.cpp
    /home/david/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/david/raspi/sysroot -Wl,-O1 -Wl,-rpath-link,/home/david/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/david/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/david/raspi/sysroot/lib/arm-linux-gnueabihf -o verifyspec verifyspec.o
    /home/david/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: Aucun fichier ou dossier de ce type
    /home/david/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: Aucun fichier ou dossier de ce type
    /home/david/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lm
    collect2: error: ld returned 1 exit status
    Makefile:69: recipe for target 'verifyspec' failed
    make: *** [verifyspec] Error 1
    Note: Also available for Linux: linux-clang linux-icc

    ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

    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