我试图在Ubuntu中设置bochs-2.6.2。首先,我将Bochs从.tar文件解压缩到home/userName/Downloads/bochs-2.6.2
。
然后我使用configure命令:
./configure --prefix=/home/userName/Desktop/bochs --enable-debugger --enable-disasm \
--enable-iodebug --enable-x86-debugger --with-x --with-x11
在那之后,我使用make
(字符太多,此正文限制为30000个字符)
最后,我使用sudo make install
并获得以下消息
make[1]: Entering directory '/home/eecheng/Downloads/bochs-2.6.2/memory'
make[1]: 'libmemory.a' is up to date.
make[1]: Leaving directory '/home/eecheng/Downloads/bochs-2.6.2/memory'
echo done
done
cd gui && \
make libgui.a
make[1]: Entering directory '/home/eecheng/Downloads/bochs-2.6.2/gui'
make[1]: 'libgui.a' is up to date.
make[1]: Leaving directory '/home/eecheng/Downloads/bochs-2.6.2/gui'
echo done
done
cd disasm && \
make libdisasm.a
make[1]: Entering directory '/home/eecheng/Downloads/bochs-2.6.2/disasm'
make[1]: 'libdisasm.a' is up to date.
make[1]: Leaving directory '/home/eecheng/Downloads/bochs-2.6.2/disasm'
echo done
done
cd cpu/fpu && \
make libfpu.a
make[1]: Entering directory '/home/eecheng/Downloads/bochs-2.6.2/cpu/fpu'
make[1]: 'libfpu.a' is up to date.
make[1]: Leaving directory '/home/eecheng/Downloads/bochs-2.6.2/cpu/fpu'
echo done
done
/bin/bash ./libtool --mode=link --tag CXX g++ -o bochs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH='"/usr/local/share/bochs"' -export-dynamic logio.o main.o config.o load32bitOShack.o pc_system.o osdep.o plugin.o crc.o \
iodev/libiodev.a iodev/display/libdisplay.a iodev/hdimage/libhdimage.a \
bx_debug/libdebug.a cpu/libcpu.a cpu/cpudb/libcpudb.a \
memory/libmemory.a gui/libgui.a \
disasm/libdisasm.a \
cpu/fpu/libfpu.a \
-lX11 -lXpm -lXrandr \
\
\
\
\
-lm -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype
g++ -o bochs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH=\"/usr/local/share/bochs\" logio.o main.o config.o load32bitOShack.o pc_system.o osdep.o plugin.o crc.o -Wl,--export-dynamic iodev/libiodev.a iodev/display/libdisplay.a iodev/hdimage/libhdimage.a bx_debug/libdebug.a cpu/libcpu.a cpu/cpudb/libcpudb.a memory/libmemory.a gui/libgui.a disasm/libdisasm.a cpu/fpu/libfpu.a -lX11 -lXpm -lXrandr -lm -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig /usr/lib/x86_64-linux-gnu/libfreetype.so -Wl,--rpath -Wl,/usr/lib/x86_64-linux-gnu -Wl,--rpath -Wl,/usr/lib/x86_64-linux-gnu
/usr/bin/ld: gui/libgui.a(gtk_enh_dbg_osdep.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:179: recipe for target 'bochs' failed
但是我收到了错误消息recipe for target 'bochs' failed
:
Makefile 179: recipe for target 'bochs' failed
make: ***[bochs] error 1
我都尝试过在桌面下创建bochs文件夹。
有什么建议吗?非常感谢!