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. Cross-compile qt for raspberrypi
Forum Updated to NodeBB v4.3 + New Features

Cross-compile qt for raspberrypi

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 377 Views
  • 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.
  • S Offline
    S Offline
    sofiane
    wrote on last edited by
    #1

    I am trying to follow this tutorial step by step to cross-compile qt for raspberrypi :
    https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi

    Until I reach :

    $ ../qt5/configure -release -opengl es2 -nomake examples -nomake tests -qt-host-path $HOME/qt-host -extprefix $HOME/qt-raspi -prefix /usr/local/qt6 -device linux-rasp-pi4-aarch64 -device-option CROSS_COMPILE=aarch64-linux-gnu- -- -DCMAKE_TOOLCHAIN_FILE=$HOME/toolchain.cmake -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON
    

    I get the following error:

    CMake Error at /home/name/qt5/qtwebengine/configure.cmake:65 (check_for_ulimit):
      Unknown CMake command "check_for_ulimit".
    Call Stack (most recent call first):
      /home/name/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:242 (include)
    

    check_for_ulimit is a function defined elsewhere (qt5/qtwebengine/cmake/Functions.cmake) and used in the configure file I am running. I tried to fix this by adding the following in the configure.cmake file :

    include("${CMAKE_CURRENT_LIST_DIR}/cmake/Functions.cmake")
    

    FIrst problem solved but another error pops up :

    Make Error at /home/name/qt5/qtwebengine/cmake/Functions.cmake:36 (qt_parse_all_arguments):
      Unknown CMake command "qt_parse_all_arguments".
    Call Stack (most recent call first):
      /home/name/qt5/qtwebengine/configure.cmake:429 (add_check_for_support)
      /home/name/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:242 (include)
    

    qt_parse_all_arguments isn't included too, how can I deal with every function included isn't imported ?

    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