Giter VIP home page Giter VIP logo

swan's Introduction

Swan

ZX Spectrum emulator

For Windows and Linux. Might compile and run on Mac, but not tested.

The latest released version can be downloaded here: https://github.com/zoran-vucenovic/swan/releases/latest

To have sound in Swan you need free portaudio library (http://www.portaudio.com/). Without portaudio library Swan will work, but will not produce any sound.

  • In Windows, you can put the portaudio dll in the same folder where Swan.exe is. You can find prebuild dll for example here: https://github.com/spatialaudio/portaudio-binaries Important: You have to choose the correct bitness (32-bit or 64-bit -- must be the same bitness as swan.exe)!
  • In Linux, install libportaudio from your Linux distro's repository.

How to compile (Windows and Linux):

  1. Install Lazarus IDE (https://www.lazarus-ide.org/)
  2. Download BGRABitmap graphic library and open the package bgrabitmappack.lpk in Lazarus:
    • Download BGRABitmap (https://github.com/bgrabitmap/bgrabitmap/)
    • Start Lazarus and in main menu choose Package->Open Package File (.lpk) ..., then go to folder where you downloaded BGRABitmap and choose bgrabitmap/bgrabitmappack.lpk and open it. After once opened, you can close the bgrabitmappack package, as now Lazarus knows where to find the files from this package.
  3. Open swan project in Lazarus and build the project:
    • In main menu choose Project->Open Project ..., then open Swan.lpi.
    • Choose the build mode:
      • in main menu go to Project->Project Options..., then in the left side of the dialog choose Compiler Options. Then, on the right side of the dialog you can choose the Build mode (see more about predefined build modes below, normally just choose Release)
    • In main menu go to Run->Build

The executable file swan (swan.exe on Windows) will appear in folder output/platform-bitness-buildmode/ (eg. output/x86_64-win64-Release/swan.exe)

Predefined build modes in swan project:

  • Release - compile for your current platform (Windows or Linux)
  • ReleaseWin64 - choose this on Windows if you have 32-bit Lazarus and want to compile for 64-bit Windows
  • ReleaseQt - choose this if you want to compile Swan as Qt5 application on Linux in Gtk2 build of Lazarus. Keep in mind that Qt5 build needs libqt5pas library installed (see https://wiki.lazarus.freepascal.org/Qt5_Interface#libqt5pas).
  • Debug - this mode is not for building releases, it is used during development only, for debugging.

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.