Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tom Pillot
pi-gen-thymio
Commits
6a5dcfba
Commit
6a5dcfba
authored
Jun 19, 2020
by
Tom Pillot
Browse files
Add Qt5.12 and build Thymio Suite
parent
88448cc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
stage4/00-install-packages/00-packages
View file @
6a5dcfba
...
...
@@ -22,4 +22,3 @@ pprompt
rp-prefapps
ffmpeg
vlc
flatpak
stage4/05-thymio-suite/00-packages
0 → 100755
View file @
6a5dcfba
mesa-common-dev libgl1-mesa-dev
clang clang-format gdb
git
cmake
ninja-build
libavahi-compat-libdnssd-dev
libudev-dev
libssl-dev
libfreetype6
libfontconfig
libnss3 libasound2 libxtst6 libxrender1 libxi6 libxcursor1 libxcomposite1
stage4/05-thymio-suite/01-run.sh
0 → 100755
View file @
6a5dcfba
#!/bin/bash -e
# udev rules to grant the user account permissions to use the device
cat
>
"
${
ROOTFS_DIR
}
/etc/udev/rules.d/99-mobsya.rules"
<<
EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="0617", ATTRS{idProduct}=="000a", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0617", ATTRS{idProduct}=="000c", MODE="0666"
EOF
on_chroot
<<
EOF
udevadm control --reload-rules
EOF
# Install Qt 5.12 with https://github.com/koendv/qt5-opengl-raspberrypi
on_chroot
<<
EOF
wget -P /tmp https://github.com/koendv/qt5-opengl-raspberrypi/releases/download/v5.12.5-1/qt5-opengl-dev_5.12.5_armhf.deb
apt-get install -y /tmp/qt5-opengl-dev_5.12.5_armhf.deb
EOF
# Download and build aseba
on_chroot
<<
EOF
cd /home/
${
FIRST_USER_NAME
}
git clone --recursive https://github.com/mobsya/aseba.git
cd aseba
mkdir build && cd build
export CMAKE_PREFIX_PATH=/usr/lib/qt5.12
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..
make -j4
make install
EOF
# Aseba need english locales to work
on_chroot
<<
EOF
sed -i 's/^# *
\(
en_US.UTF-8
\)
/
\1
/' /etc/locale.gen && locale-gen
EOF
# Fix shared library path
sed
-i
's/^Exec=/Exec=env LD_LIBRARY_PATH=\/usr\/lib\/qt5.12\/lib /'
"
${
ROOTFS_DIR
}
/usr/local/share/applications/org.mobsya.ThymioSuite.desktop"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment