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

CMake for Qt6 is not working in parallel with Qt5 on platform

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.0.0
    • Build System
    • None
    • Ubuntu 20.04
    • Linux/X11

    Description

      I am trying to build a hello world style program against Qt6.0.

      cmake_minimum_required(VERSION 3.5)
      project(hello)
      set(CMAKE_CXX_STANDARD 17)
      find_package(Qt6Core)
      add_executable(hello main.cpp )
      target_link_libraries(hello Qt6::Core )
      

       

      Running

      cmake  --debug-output  .. -G Ninja -DCMAKE_PREFIX_PATH=/home/rwolf/Qt/6.0.0/gcc_64/lib/cmake
      

       results in an error.  No build system was generated.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            hoaxbuster Roland Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes