Gängige Ausnahmelösungen für die Kompilierung von Open-Source-Software

       Wenn CLion CMakeList.txt lädt, wird häufig die Meldung angezeigt, dass einige Systembibliotheken nicht gefunden werden können. An dieser Stelle können Sie zunächst die grundlegenden Informationen des Softwarepakets überprüfen. Die Anweisungen lauten wie folgt:

apt-cache search libuv

     Über den Befehl können wir die folgenden Informationen finden, sodass wir den zu installierenden Paketinhalt bestimmen können

libuv1 - asynchronous event notification library - runtime library
libuv1-dev - asynchronous event notification library - development files
python3-uvloop - fast implementation of asyncio event loop on top of libuv
python3-uvloop-dbg - fast implementation of asyncio event loop on top of libuv
libh2o-dev - dev helpers of the H2O library compiled with libuv
libh2o0.13 - H2O library compiled with libuv
libuv0.10 - asynchronous event notification library - runtime library
libuv0.10-dbg - asynchronous event notification library - debugging symbols
libuv0.10-dev - asynchronous event notification library - development files
libuvc-dev - cross-platform library for USB video devices - development files
libuvc-doc - cross-platform library for USB video devices - documentation
libuvc0 - cross-platform library for USB video devices
lua-luv - libuv bindings for lua
lua-luv-dev - libuv bindings for lua
... ...

       

      Häufige Probleme beim Laden der Datei CMakeList.txt und der Inhalte der zu installierenden Softwarepakete sind unten aufgeführt.

1. Fehler: „Xcursor-Header nicht gefunden; libxcursor-Entwicklungspaket installieren“

Lösung: 

apt-get install libxcursor-dev

2、Fehler: „OpenGL konnte NICHT gefunden werden (fehlt: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
  OPENGL_INCLUDE_DIR)“ oder „OpenGL konnte NICHT gefunden werden (fehlt: GLX)“

Lösung:

apt-get install libgl1-mesa-dev

3、Fehler: „Keines der erforderlichen ‚libuv‘ gefunden“

Lösung:

sudo apt-get install libuv1-dev

4. Fehlermeldung: „Keines der erforderlichen ‚glfw3‘ gefunden.“

Lösung:

sudo apt-get install libglfw3-dev

Je suppose que tu aimes

Origine blog.csdn.net/bluebird888/article/details/127163964
conseillé
Classement