ares-openbsd/README.md

154 行
6.9 KiB
Markdown
Raw 通常表示 履歴

2022-09-06 18:04:40 +09:00
![ares logo](https://github.com/ares-emulator/ares/blob/master/ares/ares/resource/logo.png)
2021-09-27 22:36:37 +09:00
[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://github.com/higan-emu/ares/blob/master/LICENSE)
2021-09-27 20:39:33 +09:00
2021-07-06 17:37:46 +09:00
**ares** is a multi-system emulator that began development on October 14th, 2004.
It is a descendant of [higan](https://github.com/higan-emu/higan) and [bsnes](https://github.com/bsnes-emu/bsnes/), and focuses on accuracy and preservation.
2021-07-06 17:37:46 +09:00
Official Releases
-----------------
Official releases are available from
2022-03-04 18:02:47 +09:00
[the ares website](https://ares-emu.net).
2021-07-06 17:37:46 +09:00
Nightly Builds
--------------
2021-07-06 17:57:24 +09:00
Automated, untested builds of ares are available for Windows and macOS as a [pre-release](https://github.com/higan-emu/ares/releases/tag/nightly).
2021-07-06 17:37:46 +09:00
Only the latest nightly build is kept.
2022-08-15 00:38:49 +09:00
Prerequisites
-------------
2023-03-05 00:49:27 +09:00
### *nix building
2022-08-15 00:38:49 +09:00
2023-03-05 00:49:27 +09:00
###### Minimum required packages:
```
g++ make pkg-config libgtk-3-dev libcanberra-gtk-module libgl-dev libasound2-dev
2023-03-05 02:58:40 +09:00
```
###### Additional Audio Drivers
ares supports additional audio drivers besides the ALSA drivers included above. Installing these additional packages will allow them to be selected in Settings > Drivers:
`libao-dev libopenal-dev'
2022-08-15 00:38:49 +09:00
2023-03-05 00:49:27 +09:00
###### GTK2 & GTK3
By default, GTK3 is used, but support for GTK2 is available. You will need to install the additional package `libgtk2.0-dev` as well as specifying the command line option `hiro=gtk2` at compile time.
2022-08-15 00:38:49 +09:00
2023-03-05 00:49:27 +09:00
###### SDL2 for input
If you would like to use SDL for input (e.g. for using a controller), you will need to install the `libsdl2-dev` and `libsdl2-2.0-0` packages and perform a clean build of ares.
You should then be able to select SDL for input in the Settings > Drivers menu.
2023-03-05 00:49:27 +09:00
##### Building with clang
clang++ is now the preferred compiler for ares. If clang is detected on Windows/macOS/BSD, it will be selected by default. On Linux and other platforms, g++ remains the default if present. To build with clang, it is necessary to install both the `clang` and `lld` packages. If you would like to manually specify a compiler, you can use the following option: `compiler=[g++|clang++]`
2023-03-05 02:58:40 +09:00
--------------
2023-03-05 00:49:27 +09:00
### Windows building
2022-08-15 00:38:49 +09:00
To build on Windows, using MSYS2 is recommended which can be download [here](https://www.msys2.org/). Follow the instructions
2023-03-05 00:49:27 +09:00
on this page to install and setup an appropriate MINGW64 environment. Running the command:
```
pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL2
2023-03-05 00:49:27 +09:00
```
from the MSYS2 MSYS terminal should setup everything you need to compile ares. Note that in order to compile, you will want to be in a MINGW64 terminal window after install and setup is complete.
##### Building with clang
clang is available through Visual Studio (or Build Tools for Visual Studio) through its installer and can be used to build ares. You will still need to supply GNU make in this instance. MSYS2 also offers a clang environment. You will want to make sure you select the clangw64 option during installation of MSYS2 which should provide and additional CLANG64 pre-configured environment. Install the clang toolchain package from the MSYS2 terminal:
```
pacman -S mingw-w64-clang-x86_64-toolchain mingw-w64-clang-x86_64-SDL2
2023-03-05 00:49:27 +09:00
```
Once complete, open a CLANG64 terminal window and proceed with building ares.
###### Debug Symbols
When building with clang, by default symbols will be generated for debug builds using an MSVC compatible format (CodeView) for use with Windows debugging tools. In order to generate GDB compatible symbols, specify the following option: `symformat=gdb`
2023-03-05 00:49:27 +09:00
2022-08-15 00:38:49 +09:00
Compilation
-----------
Check out the source code by running this command:
```
git clone https://github.com/ares-emulator/ares.git
```
2022-08-15 00:38:49 +09:00
From the root of the project directory run:
```
2023-03-05 02:58:40 +09:00
make -j4
```
2023-03-05 02:58:40 +09:00
`-j#` indicates number of parallel build processes, and shouldn't be set higher than N-1 cores on your processor. Specifying this option can significantly decrease the time to build this project. There are multiple build types available and it defaults to an 'optimized' build. Build types can be specified using: `build=[debug|stable|release|minified|optimized]`
2023-03-05 02:58:40 +09:00
Build options can be found in the following two make files: nall/GNUmakefile desktop-ui/GNUmakefile
2022-08-15 00:38:49 +09:00
To start compilation from the beginning, run the following prior to compiling:
```
make clean
```
2022-08-15 00:38:49 +09:00
2023-03-05 00:57:20 +09:00
#### Building specific cores
If you would like to build a subset of cores, you can specify the `cores="core1 core2"` option. Currently available cores:
```
2023-08-24 04:50:22 +09:00
a26 fc sfc n64 sg ms md ps1 pce ng msx cv myvision gb gba ws ngp spec
2023-03-05 00:57:20 +09:00
```
2022-08-15 00:38:49 +09:00
Build Output
------------
There is a single binary produced at the end of compilation which can be found in `desktop-ui/out`. On OS's besides Linux, the `Database` & `Shader` directories are copied over here as well. On Linux, running `make install` after compilation will copy these directories and binary into suitable locations (see desktop-ui/GNUmakefile for details). Alternatively, these directories can be copied from `ares/Shaders/*` and `mia/Database/*`.
Command-line options
--------------------
When started from the command-line, ares accepts a few options.
```
Usage: ./ares [options] game(s)
--help Displays available options and exit
--fullscreen Start in full screen mode
--system system Specify the system name
--shader shader Specify GLSL shader name to load (requires OpenGL driver)
--setting name=value Specify a value for a setting
--dump-all-settings Show a list of all existing settings and exit
--no-file-prompt Do not prompt to load (optional) additional roms (eg: 64DD)
```
The --system option is useful when the system type cannot be auto-detected.
--fullscreen will only have an effect if a game is also passed in argument.
Example:
`ares --system MSX examples.rom --fullscreen`
Specifying multiple games allows for multi-cart support. For example, to load
the Super GameBoy BIOS and a game in one command (to avoid a file prompt), you
can do:
`ares "Super GameBoy.sfc" "Super Mario Land.gb"`
The --no-file-prompt option is useful if you wish to launch a game from CLI
without being prompted to load additional roms. For example, some Nintendo 64
games optionally support 64DD expansion disks, so this option can be used to
suppress the "64DD Disk" file dialog, and assume any secondary content is
disconnected.
2022-08-15 00:38:49 +09:00
High-level Components
---------------------
* __ares__: emulator cores and component implementations
* __desktop-ui__: main GUI implementation for this project
* __hiro__: cross-platform GUI toolkit that utilizes native APIs on supported platforms
* __nall__: Near's alternative to the C++ standard library
* __ruby__: interface between a hiro application and platform-specific APIs for emulator video, audio, and input
* __mia__: internal ROM database and ROM/image loader
* __libco__: cooperative multithreading library
2023-03-21 15:15:07 +09:00
Contributing
------------
2023-08-24 04:30:22 +09:00
Please join our discord to chat with other ares developers: https://discord.com/invite/gz2quhk2kv