0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

CMake configuration failedの1例

Posted at

pip を使ってのライブラリのインストールの際に cmake を使ってソースのtarファイルからbuild が走ることがある。

そのようなライブラリのインストールの際に、次のようにbuildが失敗することがあった。

失敗例

pip3 install pyexr
Collecting pyexr
  Using cached pyexr-0.4.0-py3-none-any.whl.metadata (4.5 kB)
Collecting OpenEXR>=3.2.3 (from pyexr)
  Using cached openexr-3.2.4.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.20.0 in /usr/local/lib/python3.8/dist-packages (from pyexr) (1.24.4)
Using cached pyexr-0.4.0-py3-none-any.whl (6.9 kB)
Building wheels for collected packages: OpenEXR
  Building wheel for OpenEXR (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for OpenEXR (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [89 lines of output]
      openexr_skbuild_plugin: Computing OpenEXR version from CMake...
      openexr_skbuild_plugin: Computed version: 3.2.4
      *** scikit-build-core 0.8.1 using CMake 3.30.1 (wheel)


中略      
      -- clang-format not found.
      CMake Error at CMakeLists.txt:168

トラブルの一部

clang-format がインストールされていることが前提になっていた。

解決方法

apt install -y clang-format

結果

-- clang-format found: /usr/bin/clang-format

となって、その部分のエラーはなくなった。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?