常见开源软件编译异常解决方案

       CLion加载CMakeList.txt 时,经常会提示一些系统库找不到。此时可以先检查软件包的基本信息,使用指令如下:

apt-cache search libuv

     通过指令我们可以找到如下信息,从而可以确定要安装的包内容

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
... ...

       

      如下罗列了CMakeList.txt文件加载时遇到的常见问题及要安装的软件包内容。

1、问题:"Xcursor headers not found; install libxcursor development package"

解决方案: 

apt-get install libxcursor-dev

2、问题:"Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
  OPENGL_INCLUDE_DIR)” 或 “Could NOT find OpenGL (missing: GLX)”

解决方案:

apt-get install libgl1-mesa-dev

3、问题:"None of the required 'libuv' found"

解决方案:

sudo apt-get install libuv1-dev

4、问题: "None of the required 'glfw3' found"

解决方案:

sudo apt-get install libglfw3-dev

你可能感兴趣的:(开源引擎,开源软件)