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

C++ classes of the QtWebSockets module have misspelled package names in the instructions for CMake

    XMLWordPrintable

Details

    • bb0a0e8f296c455f8e528e93adfb8bd071e86470 (qt/qtwebsockets/dev) 87db8fd8d9fa069cf2e07f9d7264883cabd72fc5 (qt/qtwebsockets/6.2)
    • Da Vinci sprint 43

    Description

       C++ classes of the QtWebSockets module have misspelled the module in the instructions for CMake in the documentation. Websockets is used when it should be WebSockets, without capitalization of the first 'S' letter you get the following error when running cmake for the project:
       
      C:\Qt\6.2.0\msvc2019_64\lib\cmake\Qt6Core\Qt6CoreMacros.cmake:558: error: Target "untitled48" links to target "Qt6::Websockets" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? C:/Qt/6.2.0/msvc2019_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:523 (_qt_internal_create_executable) C:/Qt/6.2.0/msvc2019_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:820 (qt6_add_executable) CMakeLists.txt:23 (qt_add_executable)
       
      Please see the following:
      https://doc.qt.io/qt-6/qwebsocketcorsauthenticator.html
      https://doc.qt.io/qt-6/qmaskgenerator.html
      https://doc.qt.io/qt-6/qwebsocket.html
      https://doc.qt.io/qt-6/qwebsocketserver.html
        
      As well as the QWebSocketProtocol Namespace, https://doc.qt.io/qt-6/qwebsocketprotocol.html
       
      In these docs regarding CMake it reads as follows:
      ```
      find_package(Qt6 COMPONENTS Websockets REQUIRED)
      target_link_libraries(mytarget PRIVATE Qt6::Websockets)
      ```

      When it should read as follows:
      ```
      find_package(Qt6 COMPONENTS WebSockets REQUIRED)
      target_link_libraries(mytarget PRIVATE Qt6::WebSockets)

      Attachments

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

        Activity

          People

            paulwicking Paul Wicking
            foxxx Tuukka Kettunen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes