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?

macosでneovimのbuild時にヘッダファイルが見つからないエラー

0
Posted at

はじめに

neovimをビルドしようと

make CMAKE_BUILD_TYPE=RelWithDebInfo

を実行したところ

fatal error: CoreServices/CoreServices.h: No such file or directory

というエラーが出た.

原因

(nixでインストールした?)gccを使用していると,macOSの最新SDKと互換性のないヘッダーファイルを参照してしまうらしい

解決策

clangを使用すると,無事にビルドできた

オプションで指定するなら下記

make CMAKE_BUILD_TYPE=RelWithDebInfo CC=clang CXX=clang++
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?