|
36 | 36 | </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> |
37 | 37 | <p class="caption"><span class="caption-text">Contents:</span></p> |
38 | 38 | <ul class="current"> |
39 | | -<li class="toctree-l1"><a class="reference internal" href="README.html">Python Bindings for Raylib 4.0-dev</a></li> |
| 39 | +<li class="toctree-l1"><a class="reference internal" href="README.html">Python Bindings for Raylib 4.0.0</a></li> |
40 | 40 | <li class="toctree-l1"><a class="reference internal" href="README.html#quickstart">Quickstart</a></li> |
41 | 41 | <li class="toctree-l1"><a class="reference internal" href="README.html#installation">Installation</a></li> |
42 | 42 | <li class="toctree-l1"><a class="reference internal" href="README.html#how-to-use">How to use</a></li> |
| 43 | +<li class="toctree-l1"><a class="reference internal" href="README.html#app-showcase">App showcase</a></li> |
43 | 44 | <li class="toctree-l1"><a class="reference internal" href="README.html#rlzero">RLZero</a></li> |
44 | 45 | <li class="toctree-l1"><a class="reference internal" href="README.html#help-wanted">Help wanted</a></li> |
45 | 46 | <li class="toctree-l1"><a class="reference internal" href="README.html#license-updated">License (updated)</a></li> |
|
51 | 52 | <li class="toctree-l1"><a class="reference internal" href="dynamic.html">Dynamic Bindings</a></li> |
52 | 53 | <li class="toctree-l1 current"><a class="current reference internal" href="#">Building from source</a><ul> |
53 | 54 | <li class="toctree-l2"><a class="reference internal" href="#have-pip-build-from-source">Have Pip build from source</a></li> |
54 | | -<li class="toctree-l2"><a class="reference internal" href="#build-from-source-manually">Build from source manually</a><ul> |
| 55 | +<li class="toctree-l2"><a class="reference internal" href="#or-build-from-source-manually">Or, Build from source manually</a><ul> |
55 | 56 | <li class="toctree-l3"><a class="reference internal" href="#windows-manual-build">Windows manual build</a></li> |
56 | 57 | <li class="toctree-l3"><a class="reference internal" href="#linux-manual-build">Linux manual build</a></li> |
57 | 58 | <li class="toctree-l3"><a class="reference internal" href="#macos-manual-build">Macos manual build</a></li> |
|
90 | 91 | <h1>Building from source<a class="headerlink" href="#building-from-source" title="Permalink to this headline"></a></h1> |
91 | 92 | <div class="section" id="have-pip-build-from-source"> |
92 | 93 | <h2>Have Pip build from source<a class="headerlink" href="#have-pip-build-from-source" title="Permalink to this headline"></a></h2> |
93 | | -<p>Useful if the binaries don’t work on your system, or you want to use a newer version of Raylib.</p> |
94 | | -<p>Make sure Raylib is installed and then:</p> |
| 94 | +<p>This is useful if the binaries don’t work on your system, or you want to use a newer version of Raylib.</p> |
| 95 | +<p>First make sure Raylib is installed. On Linux/Mac it must include the pkg-config files. Best way to ensure this |
| 96 | +is to compile and install Raylib using CMake: <a class="reference external" href="https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux#build-raylib-using-cmake">https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux#build-raylib-using-cmake</a></p> |
| 97 | +<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="n">raylib</span><span class="o">-</span><span class="mf">4.0</span><span class="o">.</span><span class="mi">0</span> |
| 98 | +<span class="n">mkdir</span> <span class="n">build</span> |
| 99 | +<span class="n">cd</span> <span class="n">build</span> |
| 100 | +<span class="n">cmake</span> <span class="o">-</span><span class="n">DWITH_PIC</span><span class="o">=</span><span class="n">on</span> <span class="o">-</span><span class="n">DCMAKE_BUILD_TYPE</span><span class="o">=</span><span class="n">Release</span> <span class="o">..</span> |
| 101 | +<span class="n">make</span> |
| 102 | +<span class="n">sudo</span> <span class="n">make</span> <span class="n">install</span> |
| 103 | +</pre></div> |
| 104 | +</div> |
| 105 | +<p>Then ask Pip to build from source:</p> |
95 | 106 | <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip3</span> <span class="n">install</span> <span class="o">--</span><span class="n">no</span><span class="o">-</span><span class="n">binary</span> <span class="n">raylib</span> <span class="o">--</span><span class="n">upgrade</span> <span class="o">--</span><span class="n">force</span><span class="o">-</span><span class="n">reinstall</span> <span class="n">raylib</span> |
96 | 107 | </pre></div> |
97 | 108 | </div> |
98 | 109 | </div> |
99 | | -<div class="section" id="build-from-source-manually"> |
100 | | -<h2>Build from source manually<a class="headerlink" href="#build-from-source-manually" title="Permalink to this headline"></a></h2> |
| 110 | +<div class="section" id="or-build-from-source-manually"> |
| 111 | +<h2>Or, Build from source manually<a class="headerlink" href="#or-build-from-source-manually" title="Permalink to this headline"></a></h2> |
101 | 112 | <p>Useful if the Pip build doesn’t work and you want to debug it, or you want to contribute to the |
102 | 113 | project.</p> |
103 | 114 | <div class="admonition attention"> |
104 | 115 | <p class="admonition-title">Attention</p> |
105 | 116 | <p>If the Pip build doesn’t work, please submit a bug. (And if you have |
106 | 117 | fixed it, a PR.)</p> |
107 | 118 | </div> |
108 | | -<p>Manual instructions follow, but see also how we actually build the wheels |
| 119 | +<p>Manual instructions follow, but may be outdated, so see also how we actually build the wheels |
109 | 120 | at <a class="reference external" href="https://github.com/electronstudio/raylib-python-cffi/blob/master/.github/workflows/build.yml">https://github.com/electronstudio/raylib-python-cffi/blob/master/.github/workflows/build.yml</a></p> |
110 | 121 | <div class="section" id="windows-manual-build"> |
111 | 122 | <h3>Windows manual build<a class="headerlink" href="#windows-manual-build" title="Permalink to this headline"></a></h3> |
@@ -252,6 +263,8 @@ <h3>Macos manual build<a class="headerlink" href="#macos-manual-build" title="Pe |
252 | 263 | </div> |
253 | 264 | <div class="section" id="raspberry-pi"> |
254 | 265 | <h3>Raspberry Pi<a class="headerlink" href="#raspberry-pi" title="Permalink to this headline"></a></h3> |
| 266 | +<p>Latest info: <a class="reference external" href="https://github.com/electronstudio/raylib-python-cffi/issues/55#issuecomment-1012629701">https://github.com/electronstudio/raylib-python-cffi/issues/55#issuecomment-1012629701</a></p> |
| 267 | +<p>Old possibly out of date info that was written for RPi3 and Raylib 3 follows.</p> |
255 | 268 | <p>The integrated GPU hardware in a Raspberry Pi (“VideoCore”) is rather |
256 | 269 | idiosyncratic, resulting in a complex set of software options. Probably |
257 | 270 | the most interesting two options for Raylib applications are:</p> |
|
0 commit comments