akiyosi / goneovim

A GUI frontend for neovim.
MIT License
2.37k stars 62 forks source link

Build error in MacOS #435

Closed akiyosi closed 1 year ago

akiyosi commented 1 year ago

The following error occurs on MacOS.

clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX
10.14.sdk' [-Wmissing-sysroot]
../../../goqtframelesswindow/moc.go:4:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
akiyosi commented 1 year ago

The reason for the error is that the directory /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk does not exist. The problem can be solved by creating a symbolic link as follows:

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
$ sudo ln -s MacOSX.sdk MacOSX10.14.sdk