Skip to content

Commit 0d8b0c0

Browse files
committed
rpi3 scripts cleanup
1 parent 30cb14f commit 0d8b0c0

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

hardware/rpi3.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
echo ">>>> setup RPi3 system"
1+
echo ">>>> Setup RPi3 system"
22

3-
echo ">>>> update system"
3+
echo ">>>> Update system"
44
sudo apt-get update
55

6-
echo ">>>> setup basic libs"
6+
echo ">>>> Setup basic libs"
77
sudo apt-get install build-essential libfontconfig1-dev libdbus-1-dev \
88
libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev \
99
libssl-dev libpng-dev libjpeg-dev libglib2.0-dev libraspberrypi-dev cmake \
1010
libtiff-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
11-
libx264-dev mc cmake
11+
libx264-dev mc cmake unzip pkg-config
1212

13-
echo ">>>> setup gstreamer"
13+
echo ">>>> Setup gstreamer"
1414
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
1515
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-tools
1616

17-
echo ">>>> make BCM sym-links"
17+
echo ">>>> Make BRCM sym-links"
1818
sudo ln -s /opt/vc/lib/libbrcmEGL.so /usr/lib/libEGL.so
1919
sudo ln -s /opt/vc/lib/libbrcmGLESv2.so /usr/lib/libGLESv2.so
2020
sudo ln -s /opt/vc/lib/libbrcmOpenVG.so /usr/lib/libOpenVG.so
@@ -41,4 +41,5 @@ v4l2-ctl --list-formats
4141
echo ">>>> Camera check"
4242
vcgencmd get_camera
4343

44-
echo ">>>> RPi3 system is OK"
44+
echo ">>>> RPi3 system setup finished"
45+

opencv/buildRPi3.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/sh
2-
echo "setup OpenCV on RPi3"
3-
sudo apt-get install build-essential cmake unzip pkg-config libjpeg-dev libpng-dev libtiff-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libx264-dev
2+
echo ">>>> Setup OpenCV on RPi3"
3+
../hardware/rpi3.sh
4+
5+
echo ">>>> Get OpenCV"
46
mkdir ~/sdk
57
cd ~/sdk
68
mkdir src
@@ -11,6 +13,8 @@ mkdir build
1113
cd build
1214
mkdir opencv
1315
cd opencv
16+
17+
echo ">>>> Configure OpenCV"
1418
cmake -D CMAKE_BUILD_TYPE=RELEASE \
1519
-D CMAKE_INSTALL_PREFIX=/usr/local \
1620
-D BUILD_TESTS=OFF \
@@ -20,7 +24,9 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
2024
-D ENABLE_NEON=ON \
2125
-D ENABLE_VFPV3=ON \
2226
../../opencv
23-
make
24-
sudo make -j 1 install
27+
28+
echo ">>>> It's time for: make & make install & ldconfig"
29+
#make
30+
#sudo make -j 1 install
2531
# -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
2632
#

qt/rpi3.sh

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
echo ">>>> setup qt5"
1+
echo ">>>> Setup Qt5 base"
22

3-
# ../hardware/rpi3.sh
3+
../hardware/rpi3.sh
4+
5+
echo ">>>> get Qt5 base"
46
mkdir ~/sdk
57
cd ~/sdk
68
mkdir src
@@ -17,7 +19,7 @@ cd build
1719
mkdir qt
1820
cd qt
1921

20-
echo ">>>> configure Qt5"
22+
echo ">>>> Configure Qt5 base"
2123
PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \
2224
../../src/qt/qtbase-everywhere-src-5.12.0/configure \
2325
-v \
@@ -46,15 +48,6 @@ QMAKE_LIBDIR_OPENVG=/opt/vc/lib QMAKE_INCDIR_OPENVG="/opt/vc/include /opt/vc/inc
4648

4749
echo ">>>> RPi EGLFS status:"
4850
less config.summary | grep Raspberry
49-
#-skip qtlocation \
50-
#-no-feature-geoservices_mapboxgl \
51-
#-skip qtwayland \
52-
#-skip qtwebengine \
53-
#-skip qtlocation \
54-
#-skip qtwebchannel \
55-
#-skip qtwebglplugin \
56-
#-skip qtwebsockets \
57-
#-skip qtwebview \
58-
#-skip qtcanvas3d \
59-
#-skip qtdatavis3d \
60-
#-skip qtvirtualkeyboard \
51+
52+
echo "It's time for: make & make install & ldconfig"
53+

0 commit comments

Comments
 (0)