koendv / openmv-ide-raspberrypi

openmv-ide for raspberry pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raspberry pi openmv-ide

Building and packaging the openmv-ide on the raspberry pi.

Installation

Install udev rules for OpenMV:

$ wget https://raw.githubusercontent.com/koendv/openmv-ide-raspberrypi/main/setup.sh
$ ./setup.sh

Download the binary from releases and execute.

On 32 bit systems:

$ chmod +x OpenMV_IDE-2.6.9-armhf.AppImage
$ ./OpenMV_IDE-2.6.9-armhf.AppImage

On 64 bit systems:

$ chmod +x OpenMV_IDE-2.6.9-aarch64.AppImage
$ ./OpenMV_IDE-2.6.9-aarch64.AppImage

If you like this, maybe you want to buy me a cup of tea:

ko-fi

Building

Install prerequisites:

sudo apt-get update
sudo apt-get install qt5-default qtbase5-private-dev qtdeclarative5-dev libqt5serialport5-dev qttools5-dev-tools chrpath p7zip-full

Clone sources:

mkdir src
cd src
git clone --recursive https://github.com/openmv/openmv-ide.git

Remove nag screens:

cd ~/src/openmv-ide/qt-creator/
wget https://raw.githubusercontent.com/koendv/openmv-ide-raspberrypi/main/openmv-ide.patch
patch -p1 < openmv-ide.patch

Build:

cd ~/src/openmv-ide
./make.py

Create desktop shortcut and icon:

mkdir -p appdir/usr
cat > appdir/openmv-ide.desktop <<EOD
[Desktop Entry]
Type=Application
Exec=openmvide
Path=/usr/bin/openmvide
Icon=openmv-ide
Name=OpenMV IDE
GenericName=The IDE of choice for OpenMV Cam Development.
Terminal=false
Categories=Development;IDE;
MimeType=text/x-python;
X-AppImage-Version=2.6.9
EOD
cp bin/openmv.png appdir/openmv-ide.png

On 32 bit systems:

7z x -oappdir/usr openmv-ide-linux-arm-2.6.9-installer-archive.7z

Create AppImage. From https://github.com/AppImage/AppImageKit/releases/ download AppRun-armhf and appimagetool-armhf.AppImage

cp ~/Downloads/AppRun-armhf appdir/AppRun
chmod +x appdir/AppRun
~/Downloads/appimagetool-armhf.AppImage ./appdir

and test:

./OpenMV_IDE-armhf.AppImage

On 64 bit systems:

7z x -oappdir/usr openmv-ide-linux-arm64-2.6.9-installer-archive.7z

Create AppImage. From https://github.com/AppImage/AppImageKit/releases/ download AppRun-aarch64 and appimagetool-aarch64.AppImage

cp ~/Downloads/AppRun-aarch64 appdir/AppRun
chmod +x appdir/AppRun
~/Downloads/appimagetool-aarch64.AppImage ./appdir

and test:

./OpenMV_IDE-aarch64.AppImage

Hardware

Notes about the camera hardware I'm using with OpenMV.

not truncated

About

openmv-ide for raspberry pi


Languages

Language:Shell 100.0%