%EF%BC%9A%E7%B7%A8%E8%AD%AF%20Bosh%20%E6%99%82%E7%AC%A6%E8%99%9F%E3%80%8CXSetForeground%E3%80%8D%E7%9A%84%E6%9C%AA%E5%AE%9A%E7%BE%A9%E5%BC%95%E7%94%A8.png)
我需要從原始碼編譯 bochs,我已經運行了以下命令:
./configure --with-x11 --with-wx --enable-ne2000 --enable-gdb-stub
--enable-disasm --enable-e1000 --enable-usb --enable-pci
現在是時候運行 make.. 一段時間後我收到此錯誤:
/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
有什麼線索嗎?
答案1
如果您要使用,--with-x11
則需要xorg-dev
安裝該軟體包。
sudo apt-get install xorg-dev
這將處理博世需要的所有可能的依賴。