Giter VIP home page Giter VIP logo

dosbox's Introduction

DOSBox Staging

GPL-2.0-or-later Chat

This repository attempts to modernize the DOSBox codebase by using current development practices and tools, fixing issues, and adding features that better support today's systems.

Build status

Linux x86_64 build status Linux other build status Windows (VisualStudio) build status Windows (MSYS2) build status macOS build status

Code quality status

Coverity status

Summary of features

For developers

Feature Status
Version control Git
Language C++17
SDL >= 2.0.5
Logging Loguru for C++5
Buildsystem Meson or Visual Studio 2019
CI Yes
Static analysis Yes1,3,4
Dynamic analysis Yes
clang-format Yes
Development builds Yes
Unit tests Yes6
Automated regression tests WIP

For users

Feature Status
CD-DA file codecs Yes: Opus, OGG/Vorbus, MP3, FLAC, and WAV
Integer scaling vertical or horizontal; replaced pixel-perfect mode7
Resizable window Yes, for all hardware-accelerated modes
Relative window size windowresolution=small, medium, or large
Window placement windowposition = 0,0, and more16
OPL emulator Nuked OPL, a highly accurate (YMF262, CT1747) emulator 8
CGA/mono support machine=cga_mono9
CGA composite modes machine=pcjr/tandy/cga with hotkeys)
Wayland support Experimental: use SDL_VIDEODRIVER=wayland
Modem phonebook file phonebookfile=<name>
Raw mouse input Yes: raw_mouse_input=true
Autotype command Yes10
Startup verbosity Yes11
GUS enhancements Yes12
FluidSynth MIDI Yes13: FluidSynth 2.x
MT-32 emulator Yes: libmt32emu 2.4.2 (Requires ROM files)
Expanded S3 support 4 and 8 MiB of RAM14
Portable & layered conf By default15
Translations handling Bundled, see section 14 in README
ENet modem transport Yes: serialport sock:1 flag or SERIAL.COM17
Ethernet via [slirp] Yes: See [ethernet] section in conf file
IDE support for CDROMs Yes: See -ide flag in IMGMOUNT.COM /help
Networking in Win3.11 Yes: Via local shell18
Audio filters Yes: See *_filter settings in conf file
Audio reverb and chorus Yes: See [mixer] conf section and MIXER.COM /help
Audio stereo crossfeed Yes: See [mixer] conf section and MIXER.COM /help
More command Yes19
Dual/multi-mouse input Yes: See [mouse] section in conf file
ReelMagic support Yes: See [reelmagic] section in conf file

Stable release builds

Linux, Windows, macOS

Test builds / development snapshots

Development builds.

Get the source

  • Clone the repository (one-time step):

    git clone https://github.com/dosbox-staging/dosbox-staging.git

Build instructions

Read BUILD.md for the comprehensive compilation guide.

DOSBox Staging has the following library dependencies:

Package (libname) Min Version Provides feature Presence Meson-wrap VCPKG repo availability
FluidSynth (fluidsynth) 2.2.3 General MIDI playback Optional yes yes common
Google Test+Mock (gmock) 1.8.0 Framework for unit testing (development) Optional yes yes common
IIR (iir1) 1.9.3 Audio filtering Mandatory yes yes rare
Munt (libmt32emu) 2.5.3 Roland MT-32 and CM-32L playback Optional yes yes rare
libpng (libpng) n/a PNG-encoding of screen captures Optional yes yes very common
Opus File (opusfile) n/a CDDA playback for Opus-encoded track files Mandatory yes yes common
SDL 2.0 (sdl2) 2.0.5 OS-agnostic API for video, audio, and eventing Mandatory yes yes common
SDL_image 2.0 (sdl2-image) 2.0.x Screenshot of rendered output to file Optional yes yes common
SDL_net 2.0 (sdl2-net) 2.0.0 Network API for emulated serial and IPX Optional yes yes common
slirp (libslirp) 4.6.1 Unprivileged virtual TCP/IP stack for Ethernet Optional yes yes less-common
SpeexDSP (speexdsp) n/a Audio resampling Mandatory yes yes common
Tracy Profiler (tracy) n/a Event profile (development) Optional yes yes rare
Zlib (zlib) 1.2.11 ZMBV video capture Optional yes yes very common

Linux, macOS

Install build dependencies appropriate for your OS:

# Fedora
sudo dnf install ccache gcc-c++ meson alsa-lib-devel libatomic libpng-devel \
                 SDL2-devel SDL2_image-devel SDL2_net-devel opusfile-devel \
                 fluidsynth-devel iir1-devel mt32emu-devel libslirp-devel \
                 speexdsp-devel libXi-devel
# Debian, Ubuntu
sudo apt install ccache build-essential libasound2-dev libatomic1 libpng-dev \
                 libsdl2-dev libsdl2-image-dev libsdl2-net-dev libopusfile-dev \
                 libfluidsynth-dev libslirp-dev libspeexdsp-dev libxi-dev

# Install Meson on Debian-10 "Buster" or Ubuntu-20.04 and older
sudo apt install python3-setuptools python3-pip
sudo pip3 install --upgrade meson ninja

# Install Meson on Debian-11 "Bullseye" or Ubuntu-21.04 and newer
sudo apt install meson
# Arch, Manjaro
sudo pacman -S ccache gcc meson alsa-lib libpng sdl2 sdl2_image sdl2_net \
               opusfile fluidsynth libslirp speexdsp libxi pkgconf
# openSUSE
sudo zypper install ccache gcc gcc-c++ meson alsa-devel libatomic1 libpng-devel \
                    libSDL2-devel libSDL2_image-devel libSDL2_net-devel \
                    opusfile-devel fluidsynth-devel libmt32emu-devel libslirp-devel \
                    speexdsp libXi-devel
# Void Linux
sudo xbps-install -S SDL2-devel SDL2_image-devel SDL2_net-devel alsa-lib-devel \
                     fluidsynth-devel libiir1-devel libmt32emu-devel \
                     libpng-devel libslirp-devel opusfile-devel \
                     speexdsp-devel libatomic-devel libXi-devel
# NixOS 
# With Home Manager on home.nix (Recommended Permanent Installation)
home.packages = [ pkg-config gcc_multi cmake ccache SDL2 SDL2_image SDL2_net \ 
                  fluidsynth glib gtest libGL libGLU libjack2 libmt32emu libogg \ 
                  libpng libpulseaudio libslirp libsndfile meson ninja opusfile \
                  libselinux speexdsp stdenv alsa-lib xorg.libXi irr1 ]

# Note: the same package list will work with environment.systemPackages 
# on configuration.nix
# macOS
xcode-select --install
brew install cmake ccache meson libpng sdl2 sdl2_image sdl2_net opusfile \
     fluid-synth libslirp pkg-config python3 speexdsp

Build and stay up-to-date with the latest sources

  • Checkout the main branch:

    # commit or stash any personal code changes
    git checkout main -f
  • Pull the latest updates. This is necessary every time you want a new build:

    git pull
  • Setup the build. This is a one-time step either after cloning the repo or cleaning your working directories:

    meson setup build

    The above enables all of DOSBox Staging's functional features. If you're interested in seeing all of Meson's setup options, run: meson configure.

  • Compile the sources. This is necessary every time you want a new build:

    meson compile -C build

    Your binary is: build/dosbox

    The binary depends on local resources relative to it, so we suggest symlinking to the binary from your PATH, such as into ~/.local/bin/ -- Have fun!

Windows - Visual Studio (2019 or newer)

First, you need to setup vcpkg to install build dependencies. Once vcpkg is bootstrapped, open PowerShell and run:

PS:\> .\vcpkg integrate install

This step will ensure that MSVC can use vcpkg to build, find and links all dependencies.

Start Visual Studio and open file: vs\dosbox.sln. Make sure you have x64 selected as the solution platform. Use Ctrl+Shift+B to build all projects.

Note, the first time you build a configuration, dependencies will be built automatically and stored in the vcpkg_installed directory. This can take a significant length of time.

Windows (MSYS2), macOS (MacPorts), Haiku, Nix0S, others

Instructions for other build systems and operating systems are documented in BUILD.md. Links to OS-specific instructions: MSYS2, MacPorts, Haiku, NixOS.

Imported branches, community patches, old forks

Upstream commits are imported to this repo in a timely manner, see branch svn/trunk.

  • svn/* - branches from SVN
  • forks/* - code for various abandoned DOSBox forks
  • vogons/* - community patches posted on the Vogons forum

Git tags matching pattern svn/* are pointing to the commits referenced by SVN "tag" paths at the time of creation.

Additionally, we attach some optional metadata to the commits in the form of Git notes. To fetch them, run:

git fetch origin "refs/notes/*:refs/notes/*"

Website & documentation

Please refer to the documentation guide before making changes to the website or the documentation.

dosbox's People

Contributors

ant-222 avatar arrowgent avatar brandonrobertz avatar burrito78 avatar cyan4973 avatar dependabot[bot] avatar draky50110 avatar dreamer avatar drfiemost avatar feignint avatar feralchild64 avatar granminigun avatar johnnovak avatar joncampbell123 avatar jookia avatar kappa971 avatar kcgen avatar keenanweaver avatar kklobe avatar lowlevelmahn avatar mackron avatar mearejeenius avatar nickninetheeagle avatar oturpe avatar rderooy avatar rsribeiro avatar rygorous avatar shermp avatar thomasericb avatar wengier avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mvukovic

dosbox's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.