adding in device running to test on nano

This commit is contained in:
talksik
2023-08-22 14:22:20 -07:00
parent 95ff638cdc
commit 74eab3ea56
3 changed files with 35 additions and 0 deletions
Executable
+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
# this is special script for running on jetson nano
export QT_DEBUG_PLUGINS=1
export QT_QPA_EGLFS_WIDTH=1920
export QT_QPA_EGLFS_HEIGHT=1080
export QT_QPA_EGLFS_INTEGRATION=eglfs_kms
export GST_DEBUG=2
rm -rf build
mkdir build
cd build
echo "Running cmake with build type Debug."
cmake -Wall -DCMAKE_PREFIX_PATH=/home/pluto/Qt/ \
-G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Debug ..
make
echo "running qml-example"
cd ..
./build/qml-example -platform eglfs
View File
+8
View File
@@ -7,5 +7,13 @@ ApplicationWindow
width: 640
height: 480
title: qsTr("Minimal Qml")
Rectangle {
id: rect
width: 100
height: 100
color: "red"
}
}