Ubuntu11.10x64 compile and install Bochs2.5.1

Source: Internet
Author: User
As we all know, the bochs installed by Apt-get do not contain debugging functions. You must add -- enable-debugger through source code compilation. Now the bochs version on the Ubuntu source is 2.4.6, but the bochs website has released 2.5.1, So we compile and install bochs2.5.1 directly. Compile the source code from http://bochs.sourceforge.net/download the latest source code and decompress it. /configur

As we all know, the bochs installed by Apt-get do not contain debugging functions. You must add -- enable-debugger through source code compilation.

Now the bochs version on the Ubuntu source is 2.4.6, but the bochs website has released 2.5.1, So we compile and install bochs2.5.1 directly.

  1. Compile source code
    1. Download the latest source code from http://bochs.sourceforge.net/and unzip it
    2. . /Configure -- with-x11 -- with-wx -- enable-debugger -- enable-disasm -- enable-all-optimizations -- enable-readline -- enable-long-phy-address -- enable-debugger-gui
      1. If bochs is compiled on a 64-bit system, you must add the -- enable-long-phy-address option. Otherwise, bochs exception (): 3rd (13) will occur during running) exception with no resolution, shutdown status is
    1. Make
    1. $ Cp bochs bochsdbg, compilation does not produce bochsdbg, So copy it manually here
    2. Sudo make install
  1. Handle bochs source code errors
    1. Checking for C compiler default output file name... Configure: error: C compiler cannot create executables
      Sudo apt-get install build-essential libc6-dev
    1. ERROR: X windows gui was selected, but X windows libraries were not found.
      Sudo apt-get install xorg-dev libgtk2.0-dev
    1. Install: cannot stat './bios/VGABIOS *':
      In the bios directory of the source code (/xxxx/bochs-2.5.1/bios), create a symbolic link ln-s/usr/share/vgabios. bin VGABIOS-lgpl-latest
    1. Undefined reference to 'xstringtokeysym'
      Add -- with-x11 when configure, -- with-x11 -- with-wx -- enable-debugger -- enable-disasm -- enable-all-optimizations -- enable-readline -- enable-long-phy-address -- enable-debugger-gui
    1. If there is a problem with -- with-wx when configure is prompted, sudo apt-get install libwxgtk2.8-dev libx11-xcb-dev
  1. After the source code make install, use sudo apt-get install bochs to install normal bochs.
  1. Normally installed bochs are in/usr/bin/bochs, while the source code is installed in/usr/local/bin/bochs, the priority of/usr/local/bin in PATH is higher than that of/usr/bin. Therefore, the actual running of bochs is the one installed by source code, we can rename/usr/local/bin/bochs.
    This ensures that bochs is installed normally and bochsdbg is installed by source code.
  1. Problems encountered during source code Installation and Use
    1. (.: 7444): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap ",
      1. Sudo apt-get install gtk2-engines-pixbuf Solution
    1. Crash during use (-_-!)
      1. Comment out config_interface and display_library
      2. Or config_interface = textconfig, display_library = x, options = "gui_debug", do not use wx
  1. The sample of the bochs2.5.1 configuration file is. bochsrc under the source code directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.