Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake Segmentation fault on Raspberry Pi Bookworm ARM64

qmake Segmentation fault on Raspberry Pi Bookworm ARM64

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 589 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
    Drexel
    wrote on last edited by
    #1

    Hello,

    I have problems running Qt from the online installer on Raspberry Pi Bookworm ARM64.

    I installed the latest QT LTS version 6.8.3 on my Rpasbery Pi Bookworm OS ARM64 via the Online Installer to generate PyQt binding.

    But building with sip-wheel fails:

    sip-wheel --confirm-license --verbose
    Querying qmake about your Qt installation...
    /home/raspifm/QtOnlineInstaller/6.8.3/gcc_arm64/bin/qmake -query
    sip-wheel: '/home/raspifm/QtOnlineInstaller/6.8.3/gcc_arm64/bin/qmake -query' failed returning 139 
    

    When I run qmake -query directly:

    ~/QtOnlineInstaller/6.8.3/gcc_arm64/bin $ ./qmake -query
    Segmentation fault 
    

    Does anyone else have this problem?

    I also opened a bug report:
    https://bugreports.qt.io/browse/QTBUG-137145

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Drexel
      wrote on last edited by Drexel
      #4

      It is a problem with the installer's binaries they were build on Ubunto with a different libc or libstdc++ library than on Raspberry.

      https://bugreports.qt.io/browse/QTBUG-137145

      You can build it from the sources, then it works.

      Install required packages
      sudo apt install cmake libfontconfig1-dev libdbus-1-dev libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev libssl-dev libpng-dev libjpeg-dev libglib2.0-dev libgles2-mesa-dev libgbm-dev libdrm-dev libvulkan-dev vulkan-tools
      
      Install wayland libs
      sudo apt install libwayland-dev libwayland-egl1-mesa libwayland-server0
      
      Download and extract https://download.qt.io/official_releases/qt/6.8/6.8.3/submodules/qtbase-everywhere-src-6.8.3.tar.xz, tar -xf qtbase-everywhere-src-6.8.3.tar.xz
      Switch to the directory where the file is extracted, make a directory for the build inside, switch into the build directory
      cd /path/to/qtbase-extract, mkdir ./build, cd ./build
      
      Build
      cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/raspifm/Qt/6.8.3-aarch64 -DQT_FEATURE_opengles2=ON -DQT_FEATURE_opengles3=ON -DQT_FEATURE_kms=ON -DQT_AVOID_CMAKE_ARCHIVING_API=ON ..
      cmake --build . --parallel 4
      
      Install
      cmake --install .
      
      Build modules, e.g.: qtsvg, qtimageformats, qtwayland
      Download and extract https://download.qt.io/official_releases/qt/6.8/6.8.3/submodules/qt....tar.xz
      tar -xf qt....tar.xz
      
      Switch to the directory where the file is extracted, make a directory for the build inside, switch into the build directory
      cd /path/to/qt...-extract, mkdir ./build, cd ./build
      
      Build
      /home/raspifm/Qt/6.8.3-aarch64/bin/qt-configure-module  .., then cmake --build . --parallel 4
      
      Install
      cmake --install .
      
      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #2

        Is it a Raspberry PI 5 or 4?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Drexel
          wrote on last edited by
          #3

          Raspberry PI 5

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Drexel
            wrote on last edited by Drexel
            #4

            It is a problem with the installer's binaries they were build on Ubunto with a different libc or libstdc++ library than on Raspberry.

            https://bugreports.qt.io/browse/QTBUG-137145

            You can build it from the sources, then it works.

            Install required packages
            sudo apt install cmake libfontconfig1-dev libdbus-1-dev libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev libssl-dev libpng-dev libjpeg-dev libglib2.0-dev libgles2-mesa-dev libgbm-dev libdrm-dev libvulkan-dev vulkan-tools
            
            Install wayland libs
            sudo apt install libwayland-dev libwayland-egl1-mesa libwayland-server0
            
            Download and extract https://download.qt.io/official_releases/qt/6.8/6.8.3/submodules/qtbase-everywhere-src-6.8.3.tar.xz, tar -xf qtbase-everywhere-src-6.8.3.tar.xz
            Switch to the directory where the file is extracted, make a directory for the build inside, switch into the build directory
            cd /path/to/qtbase-extract, mkdir ./build, cd ./build
            
            Build
            cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/raspifm/Qt/6.8.3-aarch64 -DQT_FEATURE_opengles2=ON -DQT_FEATURE_opengles3=ON -DQT_FEATURE_kms=ON -DQT_AVOID_CMAKE_ARCHIVING_API=ON ..
            cmake --build . --parallel 4
            
            Install
            cmake --install .
            
            Build modules, e.g.: qtsvg, qtimageformats, qtwayland
            Download and extract https://download.qt.io/official_releases/qt/6.8/6.8.3/submodules/qt....tar.xz
            tar -xf qt....tar.xz
            
            Switch to the directory where the file is extracted, make a directory for the build inside, switch into the build directory
            cd /path/to/qt...-extract, mkdir ./build, cd ./build
            
            Build
            /home/raspifm/Qt/6.8.3-aarch64/bin/qt-configure-module  .., then cmake --build . --parallel 4
            
            Install
            cmake --install .
            
            1 Reply Last reply
            0
            • D Drexel has marked this topic as solved on

            • Login

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