When CLion loads CMakeList.txt, it often prompts that some system libraries cannot be found. At this point, you can first check the basic information of the software package. The instructions are as follows:
apt-cache search libuv
Through the command, we can find the following information, so that we can determine the package content to be installed
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
... ...
Common problems encountered when loading the CMakeList.txt file and the contents of the software packages to be installed are listed below.
1、问题:"Xcursor headers not found; install libxcursor development package"
solution:
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)”
solution:
apt-get install libgl1-mesa-dev
3、问题:"None of the required 'libuv' found"
solution:
sudo apt-get install libuv1-dev
4、问题: "None of the required 'glfw3' found"
solution:
sudo apt-get install libglfw3-dev