Page 1 of 1

bochsdbg installation

Posted: Wed Jun 15, 2016 5:36 am
by demoo
Hi
I already installed bochs using these commands:

[*] sudo apt-get install bochs
[*] sudo apt-get install bochs-x

But when I'm trying to use bochsdbg I'm getting error that there isn't something like this... I tried to install this like: sudo apt-get install bochsgdb but there is no packet like this.

Could anybody help with this? I also tried to install this manually but I got error like there is missing some file.

Re: bochsgdb installation

Posted: Wed Jun 15, 2016 5:40 am
by Ycep
Isn't it called bochsdbg?

Re: bochsgdb installation

Posted: Wed Jun 15, 2016 5:56 am
by demoo
Yep, of course I meant bochsdbg, but it's the same:
bochsdbg: command not found

Re: bochsdbg installation

Posted: Wed Jun 15, 2016 6:20 am
by iansjack
You'll probably need to build a debug version from source.

http://wyding.blogspot.co.uk/2011/02/bu ... linux.html

Re: bochsdbg installation

Posted: Wed Jun 15, 2016 7:12 am
by demoo
/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/hdimage/libhdimage.a \
bx_debug/libdebug.a cpu/libcpu.a cpu/cpudb/libcpudb.a \
memory/libmemory.a gui/libgui.a \
disasm/libdisasm.a \
fpu/libfpu.a \
-lX11 -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
mkdir .libs
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/hdimage/libhdimage.a bx_debug/libdebug.a cpu/libcpu.a cpu/cpudb/libcpudb.a memory/libmemory.a gui/libgui.a disasm/libdisasm.a fpu/libfpu.a -lX11 -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: polecenia dla obiektu 'bochs' nie powiodły się
make: *** [bochs] Error 1
Of course I changed the downloading link (wget http.....)