似乎我的系统 (Mac OS 10.8) 上没有安装 wmctrl,但是当我尝试通过克隆git 仓库并按照说明(,,./configure
)运行会导致一堆错误,其中前几个错误如下所示:make
make install
make
main.c:33:22: error: X11/Xlib.h: No such file or directory
main.c:34:23: error: X11/Xatom.h: No such file or directory
main.c:35:28: error: X11/cursorfont.h: No such file or directory
main.c:36:29: error: X11/Xmu/WinUtil.h: No such file or directory
该wmctrl
目录是否需要放在其他地方?
答案1
跑步brew install homebrew/homebrew-core/wmctrl
旧答案
我使用 homebrew 获取了brew install homebrew/x11/wmctrl
它https://github.com/Homebrew/homebrew-x11