繁体   English   中英

安装 bochs 编译错误 x.cc:37:22: 致命错误: X11/Xlib.h: 没有那个文件或目录

[英]installation bochs Compile Error x.cc:37:22: fatal error: X11/Xlib.h: No such file or directory

make[1]: Entering directory `/home/zfl/bochs-2.6.9/gui'
g++ -c  -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -pthread     x.cc -o x.o
x.cc:37:22: fatal error: X11/Xlib.h: No such file or directory
 #include <X11/Xlib.h>
                      ^
compilation terminated.
make[1]: *** [x.o] Error 1
make[1]: Leaving directory `/home/zfl/bochs-2.6.9/gui'
make: *** [gui/libgui.a] Error 2

看起来您缺少libx11包。

试试

sudo apt-get install libx11-dev

然后重新编译。

编辑:重新编译的步骤。 运行以下命令。

  1. make dist-clean
  2. ./configure
  3. make

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM