Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123637

QT test tries to execute while cross-build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.5.3
    • None
    • Linux/Other display system, Other

    Description

      Hi,

       

      I am trying to cross- build QT, without XCB and tried to build the examples and tests.

      ```

      -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_CMAKE_TESTING=OFF -DBUILD_qtactiveqt=OFF -DBUILD_qtbase=ON -DBUILD_qtdoc=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_WITH_PCH=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DFEATURE_clang=OFF -DFEATURE_clangcpp=OFF -DFEATURE_cross_compile=ON -DFEATURE_zstd=OFF -DQT_ALLOW_SYMLINK_IN_PATHS=ON -DQT_USE_CCACHE=ON -DWARNINGS_ARE_ERRORS=OFF -DCMAKE_IGNORE_PATH='/;/usr;/usr/local' -DFEATURE_alsa=OFF -DFEATURE_bluez=ON -DFEATURE_cups=OFF -DFEATURE_dbus=ON -DDBus1_FOUND=ON -DFEATURE_dbus_linked=ON -DFEATURE_evdev=ON -DFEATURE_ffmpeg=OFF -DFEATURE_fontconfig=ON -DFEATURE_gif=OFF -DFEATURE_glib=ON -DFEATURE_grpc=OFF -DFEATURE_gssapi=OFF -DFEATURE_gstreamer_1_0=ON -DFEATURE_gtk3=OFF -DFEATURE_iconv=OFF -DFEATURE_icu=OFF -DFEATURE_jasper=OFF -DFEATURE_journald=OFF -DFEATURE_libinput=ON -DFEATURE_libproxy=OFF -DFEATURE_libudev=ON -DFEATURE_lttng=OFF -DFEATURE_mng=OFF -DFEATURE_modbus_serialport=OFF -DFEATURE_mtdev=ON -DFEATURE_opengl=ON -DFEATURE_opengl_desktop=OFF -DFEATURE_openssl=ON -DFEATURE_openssl_linked=ON -DFEATURE_opensslv11=ON -DFEATURE_opensslv30=OFF -DFEATURE_printsupport=OFF -DQT_FEATURE_printer=OFF -DFEATURE_linguist=OFF -DFEATURE_sql_mysql=OFF -DFEATURE_sql_pql=OFF -DFEATURE_sql_sqlite=ON -DFEATURE_sql=ON -DFEATURE_system_freetype=ON -DFEATURE_system_harfbuzz=ON -DFEATURE_system_hunspell=ON -DFEATURE_system_jpeg=OFF -DFEATURE_system_pcre2=ON -DFEATURE_system_png=ON -DFEATURE_system_sqlite=ON -DFEATURE_system_tiff=OFF -DFEATURE_system_webp=OFF -DFEATURE_system_zlib=ON -DFEATURE_tslib=OFF -DFEATURE_use_bfd_linker=ON -DFEATURE_use_gold_linker=OFF -DFEATURE_vnc=OFF -DFEATURE_xkbcommon=ON -DFEATURE_xlib=OFF -DFEATURE_gui=ON -DFEATURE_eglfs=ON -DFEATURE_linuxfb=OFF -DFEATURE_widgets=ON -DFEATURE_xcb=OFF -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=ON -DQT_BUILD_MANUAL_TESTS=OFF -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=ON -DBUILD_qt3d=OFF -DBUILD_qt5compat=ON -DBUILD_qtcharts=ON -DBUILD_qtcoap=ON -DBUILD_qtconnectivity=ON -DBUILD_qtdatavis3d=ON -DBUILD_qtdeclarative=ON -DBUILD_qtimageformats=ON -DBUILD_qtlocation=ON -DBUILD_qtlottie=ON -DBUILD_qtmqtt=ON -DBUILD_qtmultimedia=ON -DBUILD_qtnetworkauth=ON -DBUILD_qtopcua=ON -DBUILD_qtquick3d=ON -DBUILD_qtquick3dphysics=OFF -DBUILD_qtquickeffectmaker=OFF -DBUILD_qtquicktimeline=OFF -DBUILD_qtremoteobjects=ON -DBUILD_qtscxml=ON -DBUILD_qtsensors=ON -DBUILD_qtserialbus=ON -DBUILD_qtserialport=ON -DBUILD_qtshadertools=ON -DBUILD_qtspeech=ON -DBUILD_qtsvg=ON -DBUILD_qttools=ON -DBUILD_qttranslations=ON -DBUILD_qtvirtualkeyboard=ON -DBUILD_qtwayland=ON -DBUILD_qtwebchannel=ON -DBUILD_qtwebengine=OFF -DBUILD_qtwebsockets=ON -DBUILD_qtwebview=OFF -DFEATURE_vaes=OFF  -DBUILD_qtpositioning=ON  -DBUILD_qtlanguageserver=OFF  -DBUILD_qthttpserver=OFF  -DBUILD_qtgrpc=ON  -DQT_QPA_DEFAULT_PLATFORM=wayland -DFEATURE_gpu_vivante=ON -DFEATURE_kms=ON  -DFEATURE_eglfs_viv=ON  -DFEATURE_eglfs_viv_wl=ON \

      ```

       

      But I am getting error, it seems the testcase is trying to run in the build machine itself and fails as below

       

      ```

      FAILED: qtquick3d/tests/baseline/scenegrabber/.ibl/OpenfootageNET_lowerAustria01-1024.ktx qt6-6.5.3/qt-everywhere-src-6.5.3/target-build/qtquick3d/tests/baseline/scenegrabber/.ibl/OpenfootageNET_lowerAustria01-1024.ktx 
      cd qt6-6.5.3/qt-everywhere-src-6.5.3/target-build/qtquick3d/tests/baseline/scenegrabber && fake/bin/balsam --no-plugins -o qt6-6.5.3/qt-everywhere-src-6.5.3/target-build/qtquick3d/tests/baseline/scenegrabber/.ibl qt6-6.5.3/qt-everywhere-src-6.5.3/qtquick3d/tests/baseline/data/shared/maps/OpenfootageNET_lowerAustria01-1024.hdr
      qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

      Available platform plugins are: offscreen, vnc, minimal, linuxfb.

      [13105/24662] Generating .ibl/TestEnvironment-512.ktx
      FAILED: qtquick3d/tests/baseline/scenegrabber/.ibl/TestEnvironment-512.ktx qt6-6.5.3/qt-everywhere-src-6.5.3/target-build/qtquick3d/tests/baseline/scenegrabber/.ibl/TestEnvironment-512.ktx 
      cd qt6-6.5.3/qt-everywhere-src-6.5.3/target-build/qtquick3d/tests/baseline/scenegrabber && fake/bin/balsam --no-plugins -o qt6-6.5.3/qt-everywhere-src-6.5.3/target-build/qtquick3d/tests/baseline/scenegrabber/.ibl qt6-6.5.3/qt-everywhere-src-6.5.3/qtquick3d/tests/baseline/data/shared/maps/OpenfootageNET_lowerAustria01-1024.hdr --no-plugins -o qt6-6.5.3/qt-everywhere-src-6.5.3/target-build/qtquick3d/tests/baseline/scenegrabber/.ibl qt6-6.5.3/qt-everywhere-src-6.5.3/qtquick3d/tests/baseline/data/shared/maps/TestEnvironment-512.exr
      qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

      Available platform plugins are: offscreen, vnc, minimal, linuxfb.

      [13106/24662] Linking CXX shared library qtbase/lib/libQt6Quick3DRuntimeRender.so.6.5.3
      toolchain/lib/gcc/aarch64-linux-gnu/9.5.0/../../../../aarch64-linux-gnu/bin/ld.bfd: warning: toolchain/usr/lib/libGLESv2.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000
      toolchain/lib/gcc/aarch64-linux-gnu/9.5.0/../../../../aarch64-linux-gnu/bin/ld.bfd: warning: toolchain/lib/libEGL.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000
      [13107/24662] Building CXX object qtmultimedia/src/re...udio/ambisonics/stereo_from_soundfield_converter.cc.o[13108/24662] Building CXX object qtmultimedia/src/re...o/resonance_audio/api/binaural_surround_renderer.cc.o[13109/24662] Building CXX object qtmultimedia/src/re.../3rdparty/resonance-audio/platforms/common/utils.cc.o[13110/24662] Building CXX object qtmultimedia/src/re...ance_audio/ambisonics/ambisonic_binaural_decoder.cc.o[13111/24662] Building CXX object qtmultimedia/src/re...esonance_audio/ambisonics/ambisonic_lookup_table.cc.o[13112/24662] Building CXX object qtmultimedia/src/re...sonics/associated_legendre_polynomials_generator.cc.o[13113/24662] Building CXX object qtmultimedia/src/re...nce-audio/resonance_audio/ambisonics/foa_rotator.cc.o[13114/24662] Building CXX object qtmultimedia/src/re...nce-audio/resonance_audio/ambisonics/hoa_rotator.cc.o
      ninja: build stopped: subcommand failed.

      ```

      Any idea on this to move forward,

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            rocker Prasanth R
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes