From 0c13bed1592712136762601689488282bc3bf9f1 Mon Sep 17 00:00:00 2001
From: Andrew Bell Linux Notes
Platform Setup Guides:
To install CMake:
-sudo apt-get install cmake
-
- Cinder should be built using the version of Clang (v3.5.0) packaged for Raspbian Jessie. Install it using apt-get:
sudo apt-get install clang
- You can also download the binaries for Clang from here. For the Raspberry Pi 2, download Clang for armv7a Linux.
-To set Clang as the default compiler, select /usr/bin/clang++ when prompted by this command:
-
sudo update-alternatives --config c++
-
-
- If you have special reason to use GCC instead of Clang, the CPU/GPU memory split will need to be adjusted. The default settings for the memory split causes a hard crash when building Cinder. Please see the Raspberry Pi 2 documentation for instructions.
-NOTE: Cinder has not been tested using GCC 5.x on Raspberry Pi 2.
-sudo apt-get install libxcursor-dev \
-libgles2-mesa-dev \
-zlib1g-dev \
-libfontconfig1-dev \
-libmpg123-dev \
-libsndfile1 \
-libsndfile1-dev \
-libpulse-dev \
-libasound2-dev \
-libcurl4-gnutls-dev \
-libgstreamer1.0-dev \
-libgstreamer-plugins-bad1.0-dev \
-libgstreamer-plugins-base1.0-dev \
-gstreamer1.0-libav \
-gstreamer1.0-alsa \
-gstreamer1.0-pulseaudio \
-gstreamer1.0-plugins-bad
-
-
- git clone --recursive https://github.com/cinder/Cinder.git
-cd Cinder
-mkdir build && cd build
-cmake .. -DCINDER_TARGET_GL=es2-rpi
-make -j 3
-
-
- cd samples/BasicApp/proj/cmake
-mkdir build && cd build
-cmake .. -DCINDER_TARGET_GL=es2-rpi
-make
-
- Starting from samples/BasicApp/proj/cmake/build:
./Debug/BasicApp
-
- Hit the Esc key to exit the BasicApp. Cinder for Linux on the Raspberry Pi 2 currently has Esc hardcoded to exit an application. Otherwise it's non-trivial to return to the OS. A future version will offer a more graceful way to handle this.
Raspbian ships with Pulse Audio installed, however you must start the pulsedeamon before you can use audio in your application. Do that by running the following:
pulseaudio -D
-
- Try the following, it will force output to the 3.5mm jack (more information here):
-sudo amixer cset numid=3 1
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/htmlsrc/guides/linux-notes/rpi3.html b/docs/htmlsrc/guides/linux-notes/rpi3.html
deleted file mode 100644
index 8b290bfdfe..0000000000
--- a/docs/htmlsrc/guides/linux-notes/rpi3.html
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
- To install CMake:
-sudo apt-get install cmake
-
- sudo apt-get install libxcursor-dev \
-libgles2-mesa-dev \
-zlib1g-dev \
-libfontconfig1-dev \
-libmpg123-dev \
-libsndfile1 \
-libsndfile1-dev \
-libpulse-dev \
-libasound2-dev \
-libcurl4-gnutls-dev \
-libgstreamer1.0-dev \
-libgstreamer-plugins-bad1.0-dev \
-libgstreamer-plugins-base1.0-dev \
-gstreamer1.0-libav \
-gstreamer1.0-alsa \
-gstreamer1.0-pulseaudio \
-gstreamer1.0-plugins-bad \
-libboost-filesystem-dev
-
-
- git clone --recursive https://github.com/cinder/Cinder.git
-cd Cinder
-mkdir build && cd build
-cmake .. -DCINDER_TARGET_GL=es2-rpi
-make -j 3
-
-
-NOTE: Attempting to build Cinder with more than 3 jobs (specified with the -j 3 parameter) will likely cause a hard crash due to GCC memory requirements.
Cinder can also be used with the version of Clang (v3.5.0) packaged for Raspbian Jessie. Install it using apt-get:
sudo apt-get install clang
- To set Clang as the default compiler, select /usr/bin/clang++ when prompted by this command:
-
sudo update-alternatives --config c++
-
-
- cd samples/BasicApp/proj/cmake
-mkdir build && cd build
-cmake .. -DCINDER_TARGET_GL=es2-rpi
-make
-
- Starting from samples/BasicApp/proj/cmake/build:
./Debug/BasicApp
-
- Hit the Esc key to exit the BasicApp. Cinder for Linux on the Raspberry Pi 3 currently has Esc hardcoded to exit an application. Otherwise it's non-trivial to return to the OS. A future version will offer a more graceful way to handle this.
Raspbian ships with Pulse Audio installed, however you must start the pulsedeamon before you can use audio in your application. Do that by running the following:
pulseaudio -D
-
- Try the following, it will force output to the 3.5mm jack (more information here):
-sudo amixer cset numid=3 1
-
-
-
-
-
-
-
-
-
diff --git a/docs/htmlsrc/guides/linux-notes/rpi4.html b/docs/htmlsrc/guides/linux-notes/rpi4.html
deleted file mode 100644
index 4c2fce0f61..0000000000
--- a/docs/htmlsrc/guides/linux-notes/rpi4.html
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
- To install CMake:
-sudo apt-get install cmake
-
- sudo apt-get install libxcursor-dev \
-libgles2-mesa-dev \
-zlib1g-dev \
-libfontconfig1-dev \
-libmpg123-dev \
-libsndfile1 \
-libsndfile1-dev \
-libpulse-dev \
-libasound2-dev \
-libcurl4-gnutls-dev \
-libgstreamer1.0-dev \
-libgstreamer-plugins-bad1.0-dev \
-libgstreamer-plugins-base1.0-dev \
-gstreamer1.0-libav \
-gstreamer1.0-alsa \
-gstreamer1.0-pulseaudio \
-gstreamer1.0-plugins-bad \
-libboost-filesystem-dev \
-xcb \
-libxcb-xkb-dev \
-x11-xkb-utils \
-libx11-xcb-dev \
-libxkbcommon-x11-dev
-
-
- git clone --recursive https://github.com/cinder/Cinder.git
-cd Cinder
-mkdir build && cd build
-cmake .. -DCINDER_TARGET_GL=es3-rpi
-make -j 3
-
-
-NOTE: Attempting to build Cinder with more than 3 jobs (specified with the -j 3 parameter) will likely cause a hard crash due to GCC memory requirements.
Cinder can also be used with the version of Clang (v3.5.0) packaged for Raspbian Jessie. Install it using apt-get:
sudo apt-get install clang
- To set Clang as the default compiler, select /usr/bin/clang++ when prompted by this command:
-
sudo update-alternatives --config c++
-
-
- cd samples/BasicApp/proj/cmake
-mkdir build && cd build
-cmake .. -DCINDER_TARGET_GL=es3-rpi
-make
-
- Starting from samples/BasicApp/proj/cmake/build:
./Debug/BasicApp
-
- Hit the Esc key to exit the BasicApp. Cinder for Linux on the Raspberry Pi 3 currently has Esc hardcoded to exit an application. Otherwise it's non-trivial to return to the OS. A future version will offer a more graceful way to handle this.
Raspbian ships with Pulse Audio installed, however you must start the pulsedeamon before you can use audio in your application. Do that by running the following:
pulseaudio -D
-
- Try the following, it will force output to the 3.5mm jack (more information here):
-sudo amixer cset numid=3 1
-
-
-
-
-
-
-
-
-
diff --git a/docs/htmlsrc/guides/linux-notes/rpi5.html b/docs/htmlsrc/guides/linux-notes/rpi5.html
new file mode 100644
index 0000000000..1a69fd3a8d
--- /dev/null
+++ b/docs/htmlsrc/guides/linux-notes/rpi5.html
@@ -0,0 +1,90 @@
+
+
+
+ sudo apt-get install zlib1g-dev \
+libfontconfig1-dev \
+libcurl4-openssl-dev \
+libgl1-mesa-dev \
+libpulse-dev \
+libmpg123-dev \
+libsndfile1-dev \
+libgstreamer1.0-dev \
+libgstreamer-plugins-base1.0-dev \
+libgstreamer-plugins-bad1.0-dev \
+libxcursor-dev \
+libxrandr-dev \
+libxinerama-dev \
+libxi-dev
+
+
+ These are not needed to build Cinder, but are required at runtime for GStreamer video (e.g. the QuickTimeBasic sample):
+sudo apt-get install gstreamer1.0-gl \
+gstreamer1.0-libav
+
+
+ git clone --recursive https://github.com/cinder/Cinder.git
+cd Cinder
+cmake -B build -DCINDER_TARGET_GL=es3-rpi -DCMAKE_BUILD_TYPE=Debug
+cmake --build build -j$(nproc)
+
+
+ Output: lib/linux/aarch64/es3-rpi/Debug/libcinder.a
cd samples/BasicApp/proj/cmake
+cmake -B build -DCINDER_TARGET_GL=es3-rpi -DCMAKE_BUILD_TYPE=Debug
+cmake --build build
+
+
+ Starting from samples/BasicApp/proj/cmake/build:
./Debug/BasicApp
+
+ Hit the Esc key to exit the application.