Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Failed to build Qt 6.1.2 from source.
QtWS25 Last Chance

Failed to build Qt 6.1.2 from source.

Scheduled Pinned Locked Moved Unsolved Qt 6
2 Posts 2 Posters 284 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.
  • jiapei1000J Offline
    jiapei1000J Offline
    jiapei1000
    wrote on last edited by jiapei1000
    #1

    Failed to build Qt 6.1.2 from source.
    My ENV:

    ➜  ~ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 20.04.2 LTS
    Release:	20.04
    Codename:	focal
    ➜  ~ gcc --version
    gcc (GCC) 10.3.1 20210627
    Copyright (C) 2020 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    

    Error messages:

    ......
    Configuring 'qt3d'
     Could NOT find Qt6Gamepad (missing: Qt6Gamepad_DIR)
     Using source syncqt found at: ....../qt-everywhere-src-6.1.2/qtbase/libexec/syncqt.pl
     Running syncqt for module: 'Qt3DCore'
     CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimpTargets.cmake:54 (if):
       if given arguments:
    
         "ON"
    
       An argument named "ON" appears in a conditional statement.  Policy CMP0012
       is not set: if() recognizes numbers and boolean constants.  Run "cmake
       --help-policy CMP0012" for policy details.  Use the cmake_policy command to
       set the policy and suppress this warning.
     Call Stack (most recent call first):
       /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimp-config.cmake:1 (include)
       qt3d/cmake/FindWrapQt3DAssimp.cmake:8 (find_package)
       qtbase/cmake/QtFindPackageHelpers.cmake:113 (find_package)
       qt3d/src/core/configure.cmake:13 (qt_find_package)
       qtbase/cmake/QtModuleHelpers.cmake:415 (include)
       qt3d/src/core/CMakeLists.txt:7 (qt_internal_add_module)
     This warning is for project developers.  Use -Wno-dev to suppress it.
     Performing Test
     CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimpTargets.cmake:54 (if):
       if given arguments:
    
         "ON"
    
       An argument named "ON" appears in a conditional statement.  Policy CMP0012
       is not set: if() recognizes numbers and boolean constants.  Run "cmake
       --help-policy CMP0012" for policy details.  Use the cmake_policy command to
       set the policy and suppress this warning.
     Call Stack (most recent call first):
       /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimp-config.cmake:1 (include)
       ....../qt-everywhere-src-6.1.2/qt3d/cmake/FindWrapQt3DAssimp.cmake:8 (find_package)
       ....../qt-everywhere-src-6.1.2/qt3d/config.tests/assimp/CMakeLists.txt:7 (find_package)
     This warning is for project developers.  Use -Wno-dev to suppress it.
     CMake Error in ....../qt-everywhere-src-6.1.2/qt3d/config.tests/assimp/CMakeLists.txt:
       Imported target "WrapQt3DAssimp::WrapQt3DAssimp" includes non-existent path
    
         "/usr/lib/include"
    
       in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
    
       * The path was deleted, renamed, or moved to another location.
    
       * An install or uninstall procedure did not complete successfully.
    
       * The installation package was faulty and references files it does not
       provide.
    
    
     CMake Error in ....../qt-everywhere-src-6.1.2/qt3d/config.tests/assimp/CMakeLists.txt:
       Imported target "WrapQt3DAssimp::WrapQt3DAssimp" includes non-existent path
    
         "/usr/lib/include"
    
       in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
    
       * The path was deleted, renamed, or moved to another location.
       * An install or uninstall procedure did not complete successfully.
    
       * The installation package was faulty and references files it does not
       provide.
    
    
     CMake Error at qtbase/cmake/QtFeature.cmake:802 (try_compile):
       Failed to generate test project build system.
     Call Stack (most recent call first):
       qt3d/src/core/configure.cmake:15 (qt_config_compile_test)
       qtbase/cmake/QtModuleHelpers.cmake:415 (include)
       qt3d/src/core/CMakeLists.txt:7 (qt_internal_add_module)
    
     Configuring incomplete, errors occurred!
     See also "....../qt-everywhere-src-6.1.2/build/CMakeFiles/CMakeOutput.log".
     See also "....../qt-everywhere-src-6.1.2/build/CMakeFiles/CMakeError.log".
    

    A nobody in computer vision & AI

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Can you post your configure invocation?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      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