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

interfaceframework examples not compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.3.1, 6.3.2
    • Qt Interface Framework
    • Ubuntu20.04 x64

    Description

      Use Qt 6.3.2 snapshot binaries, install gcc and Android binaries. Configure interfaceframework/qface-tutorial/chapter1-basics:

      /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/bin/qt-cmake -S /home/johanna/RTA/Qt_6.3.2/Examples/Qt-6.3.2/interfaceframework/qface-tutorial/chapter1-basics -B /home/johanna/RTA/Qt_6.3.2/Examples/Qt-6.3.2/interfaceframework/qface-tutorial/chapter1-basics/bld_gcc_64 -GNinja
      

      Fails:

      -- Check if compiler accepts -pthread
      -- Check if compiler accepts -pthread - yes
      -- Found Threads: TRUE  
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE  
      -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
      -- Found WrapOpenGL: TRUE  
      -- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "0.10.0", minimum required is "0.5.0") 
      -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
      -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
      -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
      -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
      -- Using installed ifcodegen found at: /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./libexec/ifcodegen
      -- Using installed ifcodegen templates found at: /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./ifcodegen-templates
      -- Using installed ifcodegen virtualenv found at: /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./libexec/ifcodegen/qtif_qface_virtualenv
      -- Running ifcodegen for /home/johanna/RTA/Qt_6.3.2/Examples/Qt-6.3.2/interfaceframework/qface-tutorial/chapter1-basics/instrument-cluster.qface with template frontend
      CMake Error at /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:378 (message):
        Error while running the ifcodegen:
        /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./libexec/ifcodegen/qtif_qface_virtualenv/bin/python
        /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./libexec/ifcodegen/generate.py -T
        /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./ifcodegen-templates
        --template=frontend --force
        /home/johanna/RTA/Qt_6.3.2/Examples/Qt-6.3.2/interfaceframework/qface-tutorial/chapter1-basics/instrument-cluster.qface
        /home/johanna/RTA/Qt_6.3.2/Examples/Qt-6.3.2/interfaceframework/qface-tutorial/chapter1-basics/bld_gcc_64/frontend/frontend
        Could not find platform independent libraries <prefix>
        Could not find platform dependent libraries <exec_prefix>
        Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
        Python path configuration:
          PYTHONHOME = (not set)
          PYTHONPATH = (not set)
          program name = '/home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./libexec/ifcodegen/qtif_qface_virtualenv/bin/python'
          isolated = 0
          environment = 1
          user site = 1
          import site = 1
          sys._base_executable = '/home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./libexec/ifcodegen/qtif_qface_virtualenv/bin/python'
          sys.base_prefix = '/usr'
          sys.base_exec_prefix = '/usr'
          sys.executable = '/home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/./libexec/ifcodegen/qtif_qface_virtualenv/bin/python'
          sys.prefix = '/usr'
          sys.exec_prefix = '/usr'
          sys.path = [
            '/usr/lib64/python38.zip',
            '/usr/lib64/python3.8',
            '/usr/lib64/lib-dynload',
          ]
        Fatal Python error: init_fs_encoding: failed to get the Python codec of the
        filesystem encoding
        Python runtime state: core initialized
        ModuleNotFoundError: No module named 'encodings'
        Current thread 0x00007f29d8c83100 (most recent call first):
        <no Python frame>
      Call Stack (most recent call first):
        /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:95 (qt6_ifcodegen_generate)
        /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:446 (internal_ifcodegen_import)
        /home/johanna/RTA/Qt_6.3.2/6.3.2/gcc_64/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:452 (qt6_ifcodegen_extend_target)
        frontend/CMakeLists.txt:16 (qt_ifcodegen_extend_target)
      -- Configuring incomplete, errors occurred!
      See also "/home/johanna/RTA/Qt_6.3.2/Examples/Qt-6.3.2/interfaceframework/qface-tutorial/chapter1-basics/bld_gcc_64/CMakeFiles/CMakeOutput.log".
      See also "/home/johanna/RTA/Qt_6.3.2/Examples/Qt-6.3.2/interfaceframework/qface-tutorial/chapter1-basics/bld_gcc_64/CMakeFiles/CMakeError.log".
      

      Reproduces also with released Qt6.3.1.

      Same error at least with chapter3-simulation-backend, chapter4-simulation-behavior and qface-addressbook

      Attachments

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

        Activity

          People

            gagi Dominik Holland
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes