Last active
April 5, 2023 09:28
-
-
Save ivanursul/146b3474a7f3449ec70729f5c7f946ee to your computer and use it in GitHub Desktop.
This file contains hidden or 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
1)SD Card Formatter - Format SD Card | |
2) | |
sudo diskutil unmount /dev/disk2s1 | |
sudo dd if=/Users/ivanursul/Downloads/2017-07-05-raspbian-jessie.img of=/dev/rdisk2 bs=1m | |
sudo diskutil eject /dev/rdisk2 | |
3) | |
sudo mv /var/lib/dpkg/info/linux* ./ | |
sudo mv /var/lib/dpkg/info/qdbus* /. | |
sudo mv /var/lib/dpkg/info/qjackctl* /. | |
sudo mv /var/lib/dpkg/info/qtchooser* /. | |
sudo mv /var/lib/dpkg/info/qtcore4-l10n* /. | |
sudo mv /var/lib/dpkg/info/* /. | |
sudo mv /var/lib/dpkg/info/raspberrypi-artwork* /. | |
sudo mv /var/lib/dpkg/info/qttranslations5-l10n* /. | |
sudo mv /var/lib/dpkg/info/raspberrypi-bootloader* /. | |
sudo mv /var/lib/dpkg/info/raspberrypi-kernel* /. | |
sudo mv /var/lib/dpkg/info/raspberrypi-ui-mods* /. | |
sudo mv /var/lib/dpkg/info/raspi-config* /. | |
sudo mv /var/lib/dpkg/info/raspi-copies-and-fills* /. | |
sudo mv /var/lib/dpkg/info/python3.4* /. | |
sudo mv /var/lib/dpkg/info/python3* /. | |
sudo dpkg --configure -a | |
sudo apt update | |
sudo apt upgrade | |
4) | |
sudo apt-get update && sudo apt-get install cmake ant | |
5) | |
sudo apt-get install build-essential cmake pkg-config libpng12-0 libpng12-dev libpng++-dev libpng3 libpnglite-dev zlib1g-dbg zlib1g zlib1g-dev pngtools libtiff4 libtiffxx0c2 libtiff-tools libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs libavcodec-dev libavformat-dev libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev libunicap2 libunicap2-dev libdc1394-22-dev libdc1394-22 libdc1394-utils swig libv4l-0 libv4l-dev | |
6) | |
export ANT_HOME=/usr/share/ant/ | |
export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/ | |
export PATH=$PATH:$JAVA_HOME/bin:${ANT_HOME}/bin | |
7) | |
wget https://codeload.github.com/Itseez/opencv/zip/3.2.0 | |
mv 3.2.0 opencv.zip | |
unzip opencv.zip | |
cd opencv-3.2.0/ | |
8) | |
mkdir build | |
cd build | |
9) | |
cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_LIBV4L=ON -D WITH_OPENCL=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_SHARED_LIBS=OFF -D JAVA_INCLUDE_PATH=$JAVA_HOME/include -D JAVA_AWT_LIBRARY=$JAVA_HOME/jre/lib/amd64/libawt.so -D JAVA_JVM_LIBRARY=$JAVA_HOME/jre/lib/arm/server/libjvm.so -D CMAKE_INSTALL_PREFIX=/usr/local .. | |
10) | |
sudo make | |
sudo make install | |
Checks | |
1) Check python with version | |
``` | |
python3 | |
import cv2 | |
print (cv2.__version__) | |
``` | |
Enable camera in `sudo raspi-config` | |
Set memory split to 256 mb | |
Install javafx on raspberry | |
https://stackoverflow.com/questions/38359076/how-can-i-get-javafx-working-on-raspberry-pi-3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment