![CMAKE 缺失:X11_EXECUTABLE)](https://linux22.com/image/167253/CMAKE%20%E7%BC%BA%E5%A4%B1%EF%BC%9AX11_EXECUTABLE%EF%BC%89.png)
我正在尝试使用 CMAKE 编译程序,但它需要安装 X11。我的系统上安装了 X11。当我运行时,apt-file find x11.so
我得到输出:
aeolus: /usr/lib/aeolus/aeolus_x11.so
banshee: /usr/lib/banshee/Backends/libbnpx11.so
baresip-x11: /usr/lib/baresip/modules/x11.so
fcitx-module-x11: /usr/lib/x86_64-linux-gnu/fcitx/fcitx-x11.so
gmerlin-plugins-base: /usr/lib/x86_64-linux-gnu/gmerlin/plugins/i_x11.so
gmerlin-plugins-base: /usr/lib/x86_64-linux-gnu/gmerlin/plugins/ov_x11.so
keepassx: /usr/lib/x86_64-linux-gnu/keepassx/libkeepassx-autotype-x11.so
kwin-x11: /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
libdirectfb-extra: /usr/lib/x86_64-linux-gnu/directfb-1.7-7/systems/libdirectfb_x11.so
libjogl2-jni: /usr/lib/jni/libnativewindow_x11.so
libsuil-0-0: /usr/lib/x86_64-linux-gnu/suil-0/libsuil_x11.so
libva-dev: /usr/lib/x86_64-linux-gnu/libva-x11.so
libva-x11-2: /usr/lib/x86_64-linux-gnu/libva-x11.so.2
libva-x11-2: /usr/lib/x86_64-linux-gnu/libva-x11.so.2.100.0
libxkbcommon-x11-0: /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0
libxkbcommon-x11-0: /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0.0.0
libxkbcommon-x11-dev: /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so
mir-platform-graphics-mesa-x13: /usr/lib/x86_64-linux-gnu/mir/server-platform/server-mesa-x11.so.13
mit-scheme: /usr/lib/x86_64-linux-gnu/mit-scheme/lib/prx11.so
plymouth-x11: /usr/lib/x86_64-linux-gnu/plymouth/renderers/x11.so
scim: /usr/lib/x86_64-linux-gnu/scim-1.0/1.4.0/FrontEnd/x11.so
transcode: /usr/lib/transcode/import_x11.so
但运行我的 CMAKE 命令时出现错误:
Starting build with cmake...
-- Could NOT find x11 (missing: X11_EXECUTABLE)
-- Could NOT find x11 (missing: X11_EXECUTABLE)
CMake Error at cmake/Modules/Geant4InterfaceOptions.cmake:229 (message):
could not find X11 Xmu library and/or headers
Call Stack (most recent call first):
cmake/Modules/G4CMakeMain.cmake:65 (include)
CMakeLists.txt:55 (include)
我已经浏览了有关此问题的所有线索并完成了所有建议,例如apt-get install libx11-dev libx11-devel
等等。我还能做什么来解决这个问题?