[已解决]ccls + gtk 找不到头文件

第一次用ccls,默认 /usr/include 之类下的头文件都没问题。但是开了个简单的 gtk3 项目 ccls 就找不到头文件了。用的cmake生成compile_commands.json如下。是不是我少配置了什么??:face_with_raised_eyebrow:

[
{
  "directory": "/home/limon/project/c/hello/Debug",
  "command": "/usr/bin/cc  -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include  -g   -pthread -o CMakeFiles/hello.dir/main.c.o   -c /home/limon/project/c/hello/main.c",
  "file": "/home/limon/project/c/hello/main.c"
}
]

====================

不好意思,已经解决了。问题出在 ccls 的安装上,之前我自己随便放了个PATH里的路径。改成make install的默认路径就好了。 :sweat: