如果编译bochs的过程中出现下面的错误
/usr/bin/ld: gui/libgui.a(x.o): undefined reference to symbol 'XSetForeground'
/usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
此时可以考虑在执行configure时添加参数LIBS='-lX11'
,也就是说可以是这样的:
./configure --enable-debugger --enable-disasm --enable-readline LIBS='-lX11'