OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 8:35 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: How to compile bochs ?
PostPosted: Thu Sep 17, 2015 1:31 pm 
Offline
User avatar

Joined: Wed Dec 17, 2008 11:22 am
Posts: 8
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:
sudo apt-get install build-essential

Code:
sudo apt-get install libgtk2.0-dev

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

Code:
./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!


Top
 Profile  
 
 Post subject: Re: How to compile bochs ?
PostPosted: Thu Sep 17, 2015 1:35 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
You haven't installed the curses library?


Top
 Profile  
 
 Post subject: Re: How to compile bochs ?
PostPosted: Thu Sep 17, 2015 3:43 pm 
Offline
Member
Member

Joined: Tue Nov 08, 2011 11:35 am
Posts: 453
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.


Top
 Profile  
 
 Post subject: Re: How to compile bochs ?
PostPosted: Fri Sep 18, 2015 3:52 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1070
Location: Germany
I'm pretty sure that Debain has a bochs package, so you could make use of that and do something like this:
Code:
apt-get build-dep bochs

_________________
Developer of tyndur - community OS of Lowlevel (German)


Top
 Profile  
 
 Post subject: Re: How to compile bochs ?
PostPosted: Fri Sep 18, 2015 6:09 am 
Offline
Member
Member

Joined: Wed Jun 03, 2015 5:03 am
Posts: 397
It's much more interesting how to compile bochs under Windows.

_________________
My previous account (embryo) was accidentally deleted, so I have no chance but to use something new. But may be it was a good lesson about software reliability :)


Top
 Profile  
 
 Post subject: Re: How to compile bochs ?
PostPosted: Sat Sep 19, 2015 11:44 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
embryo2 wrote:
It's much more interesting how to compile bochs under Windows.
...although irrelevant.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: How to compile bochs ?
PostPosted: Sat Sep 19, 2015 5:08 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 05, 2015 5:33 pm
Posts: 159
Location: Drenthe, Netherlands
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.

_________________
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS


Top
 Profile  
 
 Post subject: Re: How to compile bochs ?
PostPosted: Fri Sep 25, 2015 1:54 am 
Offline
User avatar

Joined: Wed Dec 17, 2008 11:22 am
Posts: 8
Quote:
...although irrelevant.
Exactly
Quote:
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:
./configure --enable-debugger --enable-disasm LDFLAGS='pthread'

Code:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group