Page 1 of 1

How to compile bochs ?

Posted: Thu Sep 17, 2015 1:31 pm
by bscreator
Hello,

I installed Bochs from the packages and additionally i want to install a second instance of Bochs with Debugging-enabled, like in the Document from http://wiki.osdev.org/Bochs. I used Bochs 2.6 and tried it with the following commands :

Code: Select all

sudo apt-get install build-essential

Code: Select all

sudo apt-get install libgtk2.0-dev

Code: Select all

gunzip -c bochs-2.6.tar.gz | tar -xvf -

Code: Select all

./configure --enable-smp --enable-cpu-level=6 --enable-all-optimizations --enable-x86-64 --enable-pci --enable-vmx --enable-debugger --enable-disasm --enable-debugger-gui --enable-logging --enable-fpu --enable-3dnow --enable-cdrom --enable-x86-debugger --enable-iodebug --disable-plugins --disable-docbook --with-x --with-x11 --with-term
But it failed with the following error : Curses library not found: tried curses, ncurses, termlib and pdcurses.
And so I can't execute make and also not make-install.

What I am doing wrong ?

Thanks for all your help!

Re: How to compile bochs ?

Posted: Thu Sep 17, 2015 1:35 pm
by iansjack
You haven't installed the curses library?

Re: How to compile bochs ?

Posted: Thu Sep 17, 2015 3:43 pm
by Nable
One should install development packages for all dependencies. I don't remember the whole list for Bochs but for ncurses development you should install libncurses5-dev.

Re: How to compile bochs ?

Posted: Fri Sep 18, 2015 3:52 am
by Kevin
I'm pretty sure that Debain has a bochs package, so you could make use of that and do something like this:

Code: Select all

apt-get build-dep bochs

Re: How to compile bochs ?

Posted: Fri Sep 18, 2015 6:09 am
by embryo2
It's much more interesting how to compile bochs under Windows.

Re: How to compile bochs ?

Posted: Sat Sep 19, 2015 11:44 am
by onlyonemac
embryo2 wrote:It's much more interesting how to compile bochs under Windows.
...although irrelevant.

Re: How to compile bochs ?

Posted: Sat Sep 19, 2015 5:08 pm
by Nutterts
bscreator wrote:Curses library not found: tried curses, ncurses, termlib and pdcurses.
apt-get install ncurses-dev

... or something like that... try 'apt-cache search ncurses' to find the exact package name if the above fails.

Re: How to compile bochs ?

Posted: Fri Sep 25, 2015 1:54 am
by bscreator
...although irrelevant.
Exactly
I don't remember the whole list for Bochs but for ncurses development you should install libncurses5-dev
Exactly

After installing the necessary libraries the ./configure-command was going fine, but make broke with an Error. I asked Google and i found, that you have to add "LDFLAGS='-pthread'" to your ./configure-command.

So i run ./configure with

Code: Select all

./configure --enable-debugger --enable-disasm LDFLAGS='pthread'

Code: Select all

make
And all runs smoothly :D

So, for all of yours who want to compile Bochs by yourself, don't forget LDFLAGS='pthread' !!!

Thanks for all your help !
bsc