bochs 2.3.5 Source code compilation

Compile online bochs There's a lot of information , There are solutions to basic problems , I'm going to focus on the uncommon problems .  Basic installation steps

tar vxzf bochs-2.3.5.tar.gz
cd bochs-2.3.5
sudo ./configure --enable-debugger --enable-disasm --enable-x86-64
LDFLAGS=-L/usr/lib/i386-linux-gnu
sudo make sudo make install 

bochs yes c++ Realized , So its dependent environment will have build-esstianl g++ devlib etc. , The environment needs to be installed in advance

sudo apt-get install build-essential
sudo apt-get install xorg-dev //GUI Interface
sudo apt-get install bison

In execution ./configure when , appear apt-get orgx-dev After still appear still prompt ERROR: X windows gui was selected, but X windows libraries were not found  Take the solution :

As long as the compile time is connected -lX11 This library will do , So we can make configure Don't exit where the stage goes wrong , And in make When link X11 This library , edit configure, Comment out the exit

echo ERROR: X windows gui was selected, but X windows libraries were not found.
#exit 1
configure Add... After the order LDFLAGS=-L/usr/lib/i386-linux-gnu 
The problem cannot be solved by --with-nogui solve , Otherwise, it can't output hello os, Because it needs to be used gui

make A document needs to be modified before bx_debug/symbol.cc

 stay 97 Add the following code after the line ,
using namespace std; #ifdef __GNUC__ // modify
using namespace __gnu_cxx; // modify
#endif // modify struct symbol_entry_t After compiling and installing , Need to be in img Create in a folder bochsrc.txt. The contents are as follows :
###############################################################
# Configuration file for Bochs(Linux)
############################################################### #=======================================================================
# filename of ROM images
#=======================================================================
romimage: file=$BXSHARE/BIOS-bochs-latest #=======================================================================
# VGAROMIMAGE
# You now need to load a VGA ROM BIOS into C0000.
#=======================================================================
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest #=======================================================================
# what disk images will be used
#=======================================================================
floppya: 1_44=a.img, status=inserted #=======================================================================
# choose the boot disk.
#=======================================================================
boot: floppy #=======================================================================
# where do we send log messages?
#=======================================================================
log: bochsout.txt #=======================================================================
# disable the mouse
#=======================================================================
mouse: enabled= #=======================================================================
# enable key mapping, using US layout as default.
#=======================================================================
keyboard_mapping: enabled=, map= #=======================================================================
# how much memory the emulated machine will have
#=======================================================================
megs:

 

64 position Ubuntu 13.04 install Bochs 2.3.5 More articles about

  1. 64 position win7 Hard disk installation 64 position ubuntu 13.04

    Recently, I was going to upgrade ubuntu from 12.04 Upgrade to 12.10 Upgrade to 13.04 Of , But upgrade to 12.10 after , It may be due to improper operation of a certain step , There's a situation where you can't get into the system . But the good thing is that the main ...

  2. 【 turn 】64 position win7 Hard disk installation 64 position ubuntu 13.04

    Original website :http://www.cnblogs.com/jiangz/p/3751617.html Recently, I was going to upgrade ubuntu from 12.04 Upgrade to 12.10 Upgrade to 13.04 Of , But upgrade ...

  3. 64 position Ubuntu 14.04 install wps

    because wps Not yet provided 64 Bit version number wps,13.10 It started to cancel again ia32-libs Support for , After self testing , Can use the following command to complete the installation sudo dpkg -i Package name sudo apt-get -f ins ...

  4. 【 turn 】64 position Ubuntu 16.04 Build an embedded cross compiler environment arm-linux-gcc Process diagram

    64 position Ubuntu 16.04 Build an embedded cross compiler environment arm-linux-gcc Process diagram , Before developing bare metal environment, we need to build its development environment first , After all, if you want to do a good job, you must first sharpen your tools .  Installation steps 1. Prepare the tool installation directory download ar ...

  5. Ubuntu 13.04 Install Sogou ime

    Ubuntu 13.04 Install Sogou ime [ date :2013-07-08] source :Linux Commune   author :LinuxIDC.com [ typeface : Big in Small ]     The goal is : stay Ubuntu 13.04 And based on U ...

  6. stay 64 position Ubuntu Installation on system 32 Bit package

    stay 64 position Ubuntu Installation on system 32 Bit package $sudo apt-get install package_name:i386 for example : $sudo apt-get install openjdk-7-j ...

  7. ubuntu 13.04 install JDK

    ubuntu 13.04 install JDK Please refer to the following links for details : http://blog.csdn.net/yang_hui1986527/article/details/6677450 1. To Su ...

  8. vmware 8 Next ubuntu 13.04 install vmware tools

    In the virtual machine vmware 8.0 Installed in ubuntu 13.04. To facilitate interaction with the host , install vmware tools. Decompress and run it directly ./vmware-install.pl All the way to the default path , To &qu ...

  9. Ubuntu 13.04 install GCC4.8.1

    Finally there is a complete realization C++11 Of GCC 4.8.1. Upgrade your system . The following steps can install GCC4.8.1, Content comes from :http://askubuntu.com/questions/312620/ho ...

Random recommendation

  1. Entity Framework 4、5 Multi field sorting

    public interface IOrderByExpression<TEntity> where TEntity : class { IOrderedQueryable<TEnt ...

  2. 07. frequently-used SQL sentence

    Commonly used SQL sentence , Write in imitation of ( Just change the field and table names , Library name ) Check out the database engine                 SHOW ENGINES;( Default InnoDB) Use the database to generate UUID            selec ...

  3. First time to know CentOS Service orders

    (1) System architecture View kernel # uname -s -r Linux 2.6.32-358.el6.x86_64 Check out the release # cat /etc/redhat-release CentOS relea ...

  4. Linux Synchronization mechanism - Multithreading development summary

    1 about CPU Expensive scenes , Can use multi-core , Just make the most of multicore ( I often think that the amount of computation of a certain demand is not large , And CPU Fast enough , Just lazy to write a single thread , It turns out to be inefficient ) 2 When using multithreading , The default is locked . Under the condition of locking to ensure normal business , ...

  5. hdu-5505( number theory )

    Topic link : GT and numbers Time Limit: 2000/1000 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Ot ...

  6. ACM3787

    /* Problem specification Given two integers A and B, Its expression is : We start in the ones place , Use commas for every three digits "," separate . Now calculate A+B Result , And output in normal form . Input Input contains multiple sets of data , Each group of data occupies one row , ...

  7. kubernetes series 08—service Detailed explanation of resources

    This article is included in the container technology learning series article catalog 1. know service 1.1 Why use service Kubernetes Pod  There is a life cycle , They can be created , It can also be destroyed , However, once destroyed, life will end forever ...

  8. linux Study : file , Backup and process related command usage collation

    Instructions :tar.zip.gzip.unzip.rsync.scp.ps.kill.nohup Compress tar Filing order , No compression function tar -zcvf test.tar.gz  test/     # ...

  9. js The executive environment of learning notes

    js When executing global code or function code , Prepare first , And then execute . Preparation stage , It's the stage of creating an execution environment . 1. execution environment When a period js When the code encounters an interpreter , For example, the browser opens a paragraph js Code time , The first thing is not to do it right away ...

  10. selenium+python automation 98-- File download pop-up processing (PyKeyboard)

    Preface stay web When automating download operations , Sometimes a download box pops up , This download box doesn't belong to web The page of , There's no way to locate it ( Some students talk about clicking , Inside the head is positioning ! location ! location !) Sometimes we don't have to go to this button and click , ...