gui/libgui.a(xo): Bosh를 컴파일할 때 'XSetForeground' 기호에 대한 정의되지 않은 참조

gui/libgui.a(xo): Bosh를 컴파일할 때 'XSetForeground' 기호에 대한 정의되지 않은 참조

소스에서 boch를 컴파일해야 합니다. 이미 다음 명령을 실행했습니다.

./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

이렇게 하면 Bosch에 필요한 모든 종속성이 처리됩니다.

관련 정보