如果編譯bochs的過程中出現下面的錯誤
/usr/bin/ld: gui/libgui.a(x.o): undefined reference to symbol 'XSetForeground'
/usr/lib/x86_64-linux-gnu/libX11.so: error adding symbols: DSO missing from command line
collect2: error: ld returned exit status
此時可以考慮在執行configure時添加參數
LIBS='-lX11'
,也就是說可以是這樣的: