forked from torizon/vscode-torizon-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cppQML: Add the hardware acceleration support for the Qt template
Add the hardware acceleration support for the Qt template, by using the newly release Torizon Qt6 containers (torizon/qt6-wayland and torizon/qt6-wayland-vivante). Also change the build tool from qmake6 to cmake, because at the moment the "quick" module when added through qmake6 (in the .pro file), adds the requirement of libGLX on the Makefile, which is not available for the iMX8 modules. Therefore, before it gets fixed, to use qmake6 you have remove the /usr/lib/aarch64-linux-gnu/libGLX.so from the LIBS of the Makefile generated by qmake6 before running "make". Because of that, the recommended way is to use CMake, the default of this new hardware accelerated Qt6 template. Signed-off-by: Andre Riesco <[email protected]>
- Loading branch information
1 parent
a614d22
commit e3eab9c
Showing
9 changed files
with
195 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ amd64 | |
.qt | ||
credentials.zip | ||
*.lock.yml | ||
build-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(__change__ LANGUAGES CXX C) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
|
||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick) | ||
|
||
qt_add_executable(__change__ WIN32 | ||
main.cpp | ||
) | ||
|
||
set_target_properties(__change__ PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY "debug" | ||
ARCHIVE_OUTPUT_DIRECTORY "debug" | ||
LIBRARY_OUTPUT_DIRECTORY "debug" | ||
WIN32_EXECUTABLE TRUE | ||
) | ||
|
||
target_link_libraries(__change__ PRIVATE | ||
Qt::Core | ||
Qt::Gui | ||
Qt::Qml | ||
Qt::Quick | ||
) | ||
|
||
qt6_add_qml_module(__change__ | ||
URI __change__ | ||
VERSION 1.0 | ||
QML_FILES | ||
"QML/main.qml" | ||
"QML/Scene.ui.qml" | ||
RESOURCES | ||
"QML/assets/torizon-logo.png" | ||
) | ||
|
||
|
Oops, something went wrong.