Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu18.04执行scons报: wayland-util.h: No such file or directory #852

Open
Ritchie21680 opened this issue Aug 14, 2023 · 1 comment

Comments

@Ritchie21680
Copy link

hal
xml
charset
csv
ubjson
compressors
miniz
tkc_core
mbedtls
nanovg
scons: done reading SConscript files.
scons: Building targets ...
gcc -o 3rd/SDL/gen/pointer-constraints-unstable-v1-protocol.o -c -g -Wall -Wno-unused-function -fPIC -DLINUX -DHAS_PTHREAD -DSDL_REAL_API -DSDL_TIMER_UNIX -DSDL_VIDEO_DRIVER_X11 -DSDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS -DSDL_AUDIO_DRIVER_SNDIO -DSDL_VIDEO_OPENGL_GLX -DSDL_VIDEO_RENDER_OGL -DSDL_LOADSO_DLOPEN -DSDL_VIDEO_OPENGL_EGL -DSDL_VIDEO_OPENGL_ES2 -DSDL_REAL_API -DSDL_HAPTIC_DISABLED -DSDL_SENSOR_DISABLED -DSDL_JOYSTICK_DISABLED -DWITH_64BIT_CPU -DTK_ROOT=""/home/llw/awtk"" -DWITH_MBEDTLS=1 -DENABLE_CURSOR=1 -DWITH_TEXT_BIDI=1 -DWITH_DATA_READER_WRITER=1 -DWITH_EVENT_RECORDER_PLAYER=1 -DWITH_ASSET_LOADER -DWITH_FS_RES -DWITH_ASSET_LOADER_ZIP -DSTBTT_STATIC -DSTB_IMAGE_STATIC -DWITH_STB_IMAGE -DWITH_VGCANVAS -DWITH_UNICODE_BREAK -DWITH_DESKTOP_STYLE -DWITH_SDL -DHAS_STDIO -DHAVE_STDIO_H -DHAS_GET_TIME_US64 -DHAS_STD_MALLOC -DTK_MAX_MEM_BLOCK_NR=3 -DWITH_RES_TOOLS -DWITH_MAIN_LOOP_CONSOLE=1 -DWITH_IME_PINYIN -DWITH_GPU -DWITH_VGCANVAS_LCD -DWITH_STB_FONT -DWITH_NANOVG_GL3 -DWITH_NANOVG_GL -DWITH_NANOVG_GPU -DSDL_STATIC_LIB -D__FLTUSED__ -I/usr/include/gtk-3.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/ibus-1.0 -I3rd/SDL/include -I/usr/include/harfbuzz -I3rd/SDL/gen -I3rd/SDL/src/video/khronos -I3rd/SDL/src/audio/alsa -I3rd/SDL/src 3rd/SDL/gen/pointer-constraints-unstable-v1-protocol.c
3rd/SDL/gen/pointer-constraints-unstable-v1-protocol.c:29:10: fatal error: wayland-util.h: No such file or directory
#include "wayland-util.h"
^~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [3rd/SDL/gen/pointer-constraints-unstable-v1-protocol.o] Error 1

已经执行了
aptitude install gcc g++ scons libsndio-dev libgtk-3-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libasound2-dev libibus-1.0-dev fcitx-libs-dev git vim clang-format libharfbuzz-dev nodejs libreadline-dev
安装完依赖之后编译的,提示wayland-util.h: No such file or directory

@Ritchie21680
Copy link
Author

昨晚解决了 , 需要重新安装 libgtk-3-dev 和 libreadline-dev, 进行降级等匹配版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant