Results 1 to 2 of 2

Thread: Failed to build Qt 6.2.2 on Ubunbu 20.04 ...

  1. #1
    Join Date
    Sep 2009
    Location
    Surrey, BC, Canada
    Posts
    110
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Failed to build Qt 6.2.2 on Ubunbu 20.04 ...

    Can anybody give me a hand on how to solve this problem while configuring Qt6 ??

    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.2.2/qt3d/cmake/FindWrapQt3DAssimp.cmake:8 (find_package)
    ....../qt-everywhere-src-6.2.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.2.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:896 (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:515 (include)
    qt3d/src/core/CMakeLists.txt:7 (qt_internal_add_module)

    Configuring incomplete, errors occurred!
    See also "....../qt-everywhere-src-6.2.2/CMakeFiles/CMakeOutput.log".
    See also "....../qt-everywhere-src-6.2.2/CMakeFiles/CMakeError.log".
    Cheers
    Welcome to Vision Open
    http://www.visionopen.com

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,236
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Failed to build Qt 6.2.2 on Ubunbu 20.04 ...

    This warning is for project developers. Use -Wno-dev to suppress it.
    Try adding that to your command line when you invoke CMake (or to the C++ flags in the toolchain file and/or the appropriate CMakeLists.txt file.

    I am pretty sure that the term "project developers" refers to the developers of Qt itself, not people using Qt to develop their own projects.

    I am not using Qt6 yet, so don't have the CMake files to look at. Maybe there is some other reader here who can give more advice.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. APK Build Failed
    By Mathan in forum Qt Programming
    Replies: 0
    Last Post: 1st August 2016, 12:39
  2. Qt 5.7 build failed
    By r2com in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2016, 17:10
  3. Build failed
    By anh5kor in forum Newbie
    Replies: 1
    Last Post: 25th March 2015, 14:33
  4. Qt Creator Qt SDK, Remote Compiler "Build Failed: Errors in build"
    By strahlex in forum Qt Tools
    Replies: 0
    Last Post: 10th August 2011, 16:59
  5. Failed to build Qt 4.7.1 in a shadow build with feature tuning
    By myfifth in forum Installation and Deployment
    Replies: 0
    Last Post: 17th February 2011, 03:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.