如果编译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'
本文介绍了解决Bochs在编译过程中遇到的与X11库相关联的链接错误的方法。通过在configure阶段添加特定参数,成功解决了链接器无法找到X11库符号的问题。

2282

被折叠的 条评论
为什么被折叠?



