Skip to content

Commit 65f2db4

Browse files
committed
Qt6 not supported
1 parent 8072031 commit 65f2db4

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

CMakeLists.txt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ find_package(LSL REQUIRED
1616
HINTS ${LSL_INSTALL_ROOT}
1717
"${CMAKE_CURRENT_LIST_DIR}/../../LSL/liblsl/build/"
1818
"${CMAKE_CURRENT_LIST_DIR}/../../LSL/liblsl/build/install"
19+
"${CMAKE_CURRENT_LIST_DIR}/../../LSL/liblsl/install"
1920
"${CMAKE_CURRENT_LIST_DIR}/../../LSL/liblsl/out/build/x64-Release"
2021
"${CMAKE_CURRENT_LIST_DIR}/../../LSL/liblsl/out/install/x64-Release"
2122
PATH_SUFFIXES share/LSL)
@@ -28,15 +29,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
2829
set(CMAKE_AUTOMOC ON)
2930
set(CMAKE_AUTOUIC ON)
3031
set(CMAKE_AUTORCC ON)
31-
32-
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
33-
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Qml Quick Gamepad REQUIRED)
34-
if(Qt${QT_VERSION_MAJOR} STREQUAL "Qt6")
35-
# find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Core5Compat REQUIRED)
36-
qt6_add_resources(qml_QRC src/qml.qrc)
37-
elseif(Qt${QT_VERSION_MAJOR} STREQUAL "Qt5")
38-
qt5_add_resources(qml_QRC src/qml.qrc)
39-
endif()
32+
find_package(QT NAMES Qt5 REQUIRED COMPONENTS Core)
33+
find_package(Qt5 REQUIRED COMPONENTS Qml Quick Gamepad)
34+
qt5_add_resources(qml_QRC src/qml.qrc)
4035

4136
# Native `std::thread`s still require a platform thread library.
4237
# CMake can find and link to it with the `Threads` package (link your
@@ -56,7 +51,7 @@ target_link_libraries(${PROJECT_NAME}
5651
PRIVATE
5752
Qt${QT_VERSION_MAJOR}::Qml
5853
Qt${QT_VERSION_MAJOR}::Quick
59-
Qt${QT_VERSION_MAJOR}::Gamepad
54+
Qt5::Gamepad
6055
Qt${QT_VERSION_MAJOR}::Network
6156
Threads::Threads
6257
LSL::lsl

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ There's nothing platform-specific here, so it should build in Windows/Mac/Linux.
4040
1. Qt
4141
* version 5.15 used for development typically installed with Qt Maintenance tool.
4242
* Ubuntu, if not using Qt maintenance tool, must be on 20.04 or later, and use `sudo apt install -y qtbase5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5gamepad5-dev`.
43+
* Qt6 not supported.
4344
1. An IDE. QtCreator or Visual Studio both tested to work.
4445

4546
Then follow the general [LSL Application build instructions](https://labstreaminglayer.readthedocs.io/dev/app_build.html).

0 commit comments

Comments
 (0)