Commit 6a5dcfba authored by Tom Pillot's avatar Tom Pillot
Browse files

Add Qt5.12 and build Thymio Suite

parent 88448cc9
......@@ -22,4 +22,3 @@ pprompt
rp-prefapps
ffmpeg
vlc
flatpak
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
#!/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"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment