Skip to content

Commit 071e776

Browse files
committed
Update to glad for all platforms.
1 parent 3be73dd commit 071e776

File tree

187 files changed

+42785
-79074
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+42785
-79074
lines changed
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Cinder on Raspberry Pi 4</title>
5+
6+
<!-- keywords used for searching -->
7+
<meta name="keywords" content="guide, linux, raspberry, pi">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
10+
<!-- reference to Cinder classes -->
11+
<!-- <ci seealso dox="[CLASS NAME GOES HERE]" label="[NAME OF LINK]"></ci> -->
12+
13+
<!-- master stylesheet - these links will be replaced when compiled -->
14+
<link rel="stylesheet" href="../../_assets/css/foundation.css">
15+
<link rel="stylesheet" href="../../_assets/css/prism.css">
16+
<link rel="stylesheet" href="../../_assets/css/style.css">
17+
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
18+
19+
<!-- Place additional stylsheet links here, which will be copied over when compiled (optional) -->
20+
21+
</head>
22+
23+
<body id="guide-contents" class="language-c++">
24+
25+
<!-- CONTENT STARTS HERE -->
26+
27+
<h1>Raspberry Pi 4 Notes</h1>
28+
<h3 id="cmake">Requirements</h3>
29+
<ul>
30+
<li>Raspbian GNU/Linux 10 (buster) or later</li>
31+
<li>CMake 3.0+</li>
32+
</ul>
33+
<h4 id="cmake">CMake</h4>
34+
<p>To install CMake:</p>
35+
<pre><code>sudo apt-get install cmake</code></pre>
36+
37+
<h3 id="library-dependencies">Cinder Dependencies</h3>
38+
<pre><code>sudo apt-get install libxcursor-dev \
39+
libgles2-mesa-dev \
40+
zlib1g-dev \
41+
libfontconfig1-dev \
42+
libmpg123-dev \
43+
libsndfile1 \
44+
libsndfile1-dev \
45+
libpulse-dev \
46+
libasound2-dev \
47+
libcurl4-gnutls-dev \
48+
libgstreamer1.0-dev \
49+
libgstreamer-plugins-bad1.0-dev \
50+
libgstreamer-plugins-base1.0-dev \
51+
gstreamer1.0-libav \
52+
gstreamer1.0-alsa \
53+
gstreamer1.0-pulseaudio \
54+
gstreamer1.0-plugins-bad \
55+
libboost-filesystem-dev \
56+
xcb \
57+
libxcb-xkb-dev \
58+
x11-xkb-utils \
59+
libx11-xcb-dev \
60+
libxkbcommon-x11-dev
61+
</code></pre>
62+
63+
<h1 id="building-cinder">Building Cinder</h1>
64+
<h3 id="fetching-and-building-cinder">Fetching and Building Cinder</h3>
65+
<pre><code>git clone --recursive https://github.com/cinder/Cinder.git
66+
cd Cinder
67+
mkdir build &amp;&amp; cd build
68+
cmake .. -DCINDER_TARGET_GL=es3-rpi
69+
make -j 3
70+
</code></pre>
71+
72+
<p>NOTE: Attempting to build Cinder with more than 3 jobs (specified with the <code>-j 3</code> parameter) will likely cause a hard crash due to GCC memory requirements.</p>
73+
74+
<h4 id="clang">Clang</h4>
75+
<p>Cinder can also be used with the version of Clang (v3.5.0) packaged for Raspbian Jessie. Install it using <code>apt-get</code>:</p>
76+
<pre><code>sudo apt-get install clang</code></pre>
77+
<p>To set Clang as the default compiler, select <code>/usr/bin/clang++</code> when prompted by this command:
78+
<pre><code>sudo update-alternatives --config c++</code></pre>
79+
</p>
80+
81+
<h1 id="building-and-running-basicapp">Building and Running BasicApp</h1>
82+
<h3 id="building">Building</h3>
83+
<pre><code>cd samples/BasicApp/proj/cmake
84+
mkdir build &amp;&amp; cd build
85+
cmake .. -DCINDER_TARGET_GL=es3-rpi
86+
make</code></pre>
87+
88+
<h3 id="running">Running</h3>
89+
<p>Starting from <code>samples/BasicApp/proj/cmake/build</code>:</p>
90+
<pre><code>./Debug/BasicApp</code></pre>
91+
92+
<h3 id="exiting">Exiting</h3>
93+
<p>Hit the <code>Esc</code> key to exit the BasicApp. Cinder for Linux on the Raspberry Pi 3 currently has <code>Esc</code> 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.</p>
94+
<h1 id="troubleshooting">Troubleshooting</h1>
95+
<h3 id="audio">Audio</h3>
96+
97+
<h4 id="context_create_failed">Starting the pulsedeamon</h4>
98+
<p>Raspbian ships with Pulse Audio installed, however you must start the <code>pulsedeamon</code> before you can use audio in your application. Do that by running the following:</p>
99+
<pre><code>pulseaudio -D</code></pre>
100+
101+
<h4 id="no-output-using-35-jack">No Output Using 3.5mm headphone jack</h4>
102+
<p>Try the following, it will force output to the 3.5mm jack (<a href="https://www.raspberrypi.org/documentation/configuration/audio-config.md">more information here</a>):</p>
103+
<pre><code>sudo amixer cset numid=3 1</code></pre>
104+
<!-- END CONTENT -->
105+
106+
<!-- Scripts -->
107+
<script src="../../_assets/js/prism.js" type="text/javascript"></script>
108+
<!-- Place additional scripts here (optional) -->
109+
<!-- <script type="text/javascript"></script> -->
110+
111+
</body>
112+
</html>

0 commit comments

Comments
 (0)