一般的なオープンソース ソフトウェアのコンパイル例外ソリューション

       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 ヘッダーが見つかりません。libxcursor 開発パッケージをインストールしてください」

解決: 

apt-get install libxcursor-dev

2、问题:「OpenGLが見つかりませんでした(欠落:OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
  OPENGL_INCLUDE_DIR)」または「OpenGLが見つかりませんでした(欠落:GLX)」

解決:

apt-get install libgl1-mesa-dev

3、问题:「必要な 'libuv' が見つかりません」

解決:

sudo apt-get install libuv1-dev

4、问题:「必要な「glfw3」が見つかりません」

解決:

sudo apt-get install libglfw3-dev

おすすめ

転載: blog.csdn.net/bluebird888/article/details/127163964