gui/libgui.a(xo):編譯 Bosh 時符號「XSetForeground」的未定義引用

gui/libgui.a(xo):編譯 Bosh 時符號「XSetForeground」的未定義引用

我需要從原始碼編譯 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

這將處理博世需要的所有可能的依賴。

相關內容