This commit is contained in:
chyyuu
2022-06-28 13:47:52 +00:00
parent d4b382af50
commit c5369b9902
3 changed files with 3 additions and 6 deletions

View File

@@ -431,8 +431,7 @@ make -j<span class="k">$(</span>nproc<span class="k">)</span>
<li><p>出现 <code class="docutils literal notranslate"><span class="pre">ERROR:</span> <span class="pre">pixman</span> <span class="pre">&gt;=</span> <span class="pre">0.21.8</span> <span class="pre">not</span> <span class="pre">present</span></code> 时,可以安装 <code class="docutils literal notranslate"><span class="pre">libpixman-1-dev</span></code> 包。</p></li>
</ul>
<p>另外一些 Linux 发行版编译 Qemu 的依赖包可以从 <a class="reference external" href="https://risc-v-getting-started-guide.readthedocs.io/en/latest/linux-qemu.html#prerequisites">这里</a>
找到。</p>
<p>GCC 11 可能无法正常编译 Qemu5 ,而 GCC 9.3.0 (Ubuntu 20.04 自带) 及 GCC 10.3.0 经测试可以编译,请自行选择合适的编译器版本。</p>
找到。请自行选择合适的编译器版本正常编译 Qemu。</p>
</div>
<p>之后我们可以在同目录下 <code class="docutils literal notranslate"><span class="pre">sudo</span> <span class="pre">make</span> <span class="pre">install</span></code> 将 Qemu 安装到 <code class="docutils literal notranslate"><span class="pre">/usr/local/bin</span></code> 目录下,但这样经常会引起
冲突。个人来说更习惯的做法是,编辑 <code class="docutils literal notranslate"><span class="pre">~/.bashrc</span></code> 文件(如果使用的是默认的 <code class="docutils literal notranslate"><span class="pre">bash</span></code> 终端),在文件的末尾加入

View File

@@ -174,9 +174,7 @@ Qemu 模拟器安装
- 出现 ``ERROR: pixman >= 0.21.8 not present`` 时,可以安装 ``libpixman-1-dev`` 包。
另外一些 Linux 发行版编译 Qemu 的依赖包可以从 `这里 <https://risc-v-getting-started-guide.readthedocs.io/en/latest/linux-qemu.html#prerequisites>`_
找到。
GCC 11 可能无法正常编译 Qemu5 ,而 GCC 9.3.0 (Ubuntu 20.04 自带) 及 GCC 10.3.0 经测试可以编译,请自行选择合适的编译器版本。
找到。请自行选择合适的编译器版本正常编译 Qemu。
之后我们可以在同目录下 ``sudo make install`` 将 Qemu 安装到 ``/usr/local/bin`` 目录下,但这样经常会引起
冲突。个人来说更习惯的做法是,编辑 ``~/.bashrc`` 文件(如果使用的是默认的 ``bash`` 终端),在文件的末尾加入

File diff suppressed because one or more lines are too long