Ubuntu에서 Bochs를 설치하는 동안 발생하는 여러 가지 오류 요약

4228 단어 linux_software
(1) 표시
1 “ERROR: X windows gui was selected, but X windows libraries were not found.
해결 방법:
1 sudo apt-get install libx11-dev xserver-xorg-dev xorg-dev

만약 아직 해결되지 않는다면 2.4.5 버전으로 다시 설치하십시오. 저는 2.3.5 버전에서 오랫동안 시도했지만 결국 2.4.5 버전으로 바꾸면 성공합니다.


 
(2) 나타나기
1 “ERROR: pkg-config was not found, or unable to access the gtk+-2.0 package. Install pkg-config and the gtk+ development package, or disable the gui debugger, or the wxWidgets display library (whichever is being used).”
2 ERROR: pkg-config was not found, or unable to access the gtk+-2.0 package.Install pkg-config and the gtk+ development package,or disable the gui debugger, or the wxWidgets display library (whichever is being used)
해결 방법:
1 sudo apt-get install libgtk2.0-dev
(3)
1 checking for C compiler default output file name… configure: error: C compiler cannot create executables
해결 방법:
1 apt-get install libc6-dev
(4)
1 configure: error: C++ preprocessor "/lib/cpp"fails sanity check
해결 방법:
1 apt-get install build-essential
(5)
1 X windows gui was selected, but X windows libraries were not found.
해결 방법: 04년 과정 포럼의 해결 방법을 참조하여 구성할 때 – with-nogui
Bochs 

1 설치 프로세스:
        
tar xzvf bochs-2.3.5.tar.gz

cd bochs-2.3.5

./configure --enable-debugger --enable--disasm 

make
문제 발생:
symbols.cc: At global scope:
      symbols.cc:137: error: ISO C++ forbids declaration of ‘hash_map’ with no type

symbols.cc:137: error: expected ‘;’ before ‘
해결 방법:
 make  ,  bx_debug/symbols.cc  97『 』  , :

using namespace std;

#ifdef __GNUC__  (  ,  )

using namespace __gnu_cxx; (  ,  )

#endif  (  )

struct symbol_entry_t;

bochs의 debugger를 사용할 때 설정./configure --enable-debugger 후make에서 다음 오류가 발생했습니다:gui/libgui.a(gtk_enh_dbg_osdep.o): In function `MakeGTKthreads()':/home/bcos/Desktop/bochs-test/bochs-2.4.pre1/gui/gtk_enh_dbg_osdep.cc:2120: undefined reference to `pthread_create'collect2: ld returned 1 exit status make: *** [bochs] Error 1 해결 방법 1: "Makefile.in"92 및 93 행위 수정 "CC= @CC@ -pthread"과 "CXX = @CXX@ -pthread"해결 방법 2: Makefile.인중 183행bochs@EXE@: @IODEV_LIB_VAR@ @DEBUGGER_VAR@\cpu/libcpu.a memory/libmemory.a gui/libgui.a\@DISASM_VAR@ @INSTRUMENT_VAR@ $(BX_OBJS)\$(SIMX86_OBJS) @FPU_VAR@ @GDBSTUB_VAR@ @PLUGIN_VAR@ @LINK@ @EXPORT_DYNAMIC@ $(BX_OBJS) $(SIMX86_OBJS)\@IODEV_LIB_VAR@ @DEBUGGER_VAR@ cpu/libcpu.a memory/libmemory.a gui/libgui.a\@DISASM_VAR@ @INSTRUMENT_VAR@ @PLUGIN_VAR@\@GDBSTUB_VAR@ @FPU_VAR@\@NONPLUGIN_GUI_LINK_OPTS@\$(MCH_LINK_FLAGS)\$(SIMX86_LINK_FLAGS)\$(READLINE_LIB)\$(EXTRA_LINK_OPTS)\$(LIBS)마지막 $(LIBS) 뒤에\-lpthread를 다음과 같이 추가합니다.bochs@EXE@: @IODEV_LIB_VAR@ @DEBUGGER_VAR@\cpu/libcpu.a memory/libmemory.a gui/libgui.a\@DISASM_VAR@ @INSTRUMENT_VAR@ $(BX_OBJS)\. . . $(LIBS)\-lpthread
번역하여 통과할 수 있다.
 
참고: Makefile.in은 configure에서 Makefile을 생성하는 데 사용되기 때문에 이 파일을 수정하면
재실행 필요:./configure --enable-debugger는 Makefile을 생성하고,
구성 후 Makefile을 수정하는 경우in, 그리고make를 실행합니다. 이때 Makefile이 컴파일되지 않았습니다.
# how much memory the emulated machine will have
megs: 32
# filename of ROM images
romimage:file=$BXSHARE/BIOS-bochs-latest
# 위의 줄을 주의하십시오. 2.3.5 이후의 뒤는 추가할 수 없습니다.address=0xf0000 그렇지 않으면 나타날 수 있습니다
#Message: ROM: System BIOS must end at 0xffff
#romimage: file=mybios.bin, address=0xfff80000 # 512k at memory top
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
                                                                               
# what disk images will be used
floppya: 1_44=a.img, status=inserted
#ata0-master: type=disk, mode=flat, path="30M.sample"
# hard disk
#ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
#ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
#ata2: enabled=0, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
#ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x360, irq=9
boot: floppy
log: bochsout.txt
mouse: enabled=0
floppya: 1_44=a.img, status=inserted
keyboard_mapping: enabled=1, map=/usr/local/share/bochs/keymaps/x11-pc-us.map

좋은 웹페이지 즐겨찾기