mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Update compiling.md with current version of tools to use
This commit is contained in:
parent
387ccd5cc3
commit
d834f08cad
1 changed files with 6 additions and 6 deletions
|
@ -3,23 +3,23 @@
|
||||||
OpenMoHAA supports any architecture, thanks to the CMake build system and cross-platform code/libraries. While the most common little-Endian architectures (arm, aarch64, x86, x86_64) have been tested and confirmed to work, big-Endian architectures should be supported as well; however, they remain untested.
|
OpenMoHAA supports any architecture, thanks to the CMake build system and cross-platform code/libraries. While the most common little-Endian architectures (arm, aarch64, x86, x86_64) have been tested and confirmed to work, big-Endian architectures should be supported as well; however, they remain untested.
|
||||||
|
|
||||||
The following tools are required for all platforms:
|
The following tools are required for all platforms:
|
||||||
- CMake >= 3.5
|
- CMake >= 3.12
|
||||||
- Flex (>= 2.6.4) and Bison (>= 3.5.1)
|
- Flex (>= 2.6.4) and Bison (>= 3.5.1)
|
||||||
- A C++11 compiler
|
- A C++11 compiler
|
||||||
- OpenAL SDK (can be found [here](https://github.com/kcat/openal-soft))
|
- OpenAL SDK (can be found [here](https://github.com/kcat/openal-soft))
|
||||||
|
|
||||||
The installation directory can be set to the MOHAA directory with `-DCMAKE_INSTALL_PREFIX=/path/to/mohaa`.
|
The installation directory can be set to the MOHAA directory with `-DCMAKE_INSTALL_PREFIX=/path/to/mohaa`.
|
||||||
|
|
||||||
|
Compiling debug binaries will result in a `-dbg` suffix appended to the name of the binaries to avoid mixing debug/release code.
|
||||||
|
|
||||||
## Compiling for Linux
|
## Compiling for Linux
|
||||||
|
|
||||||
These are the tools required on Linux :
|
These are the tools required on Linux :
|
||||||
- Clang >= 3.3 or GCC >= 4.8.5
|
- Clang >= 7.0.1 or GCC >= 9.4.0
|
||||||
- libsdl2-dev
|
- libsdl2-dev
|
||||||
- libopenal-dev
|
- libopenal-dev
|
||||||
|
|
||||||
**clang-3.5** and **gcc-4.8.5** should work (tested on Ubuntu 16.04), but the latest version should be used.
|
**clang-7** and **gcc-9** has been tested to work on Ubuntu 20.04. Although it's best to use the latest versions.
|
||||||
|
|
||||||
Ubuntu 20.04 is the minimum version required to fully compile the project successfully.
|
|
||||||
|
|
||||||
1 line install command with clang:
|
1 line install command with clang:
|
||||||
```sh
|
```sh
|
||||||
|
@ -39,7 +39,7 @@ Other compilers can be specified by appending `-DCMAKE_C_COMPILER=/path/to/compi
|
||||||
Visual Studio (2019 or 2022) is generally preferred.
|
Visual Studio (2019 or 2022) is generally preferred.
|
||||||
|
|
||||||
Flex and Bison can be downloaded from here: https://github.com/lexxmark/winflexbison/releases/tag/v2.5.25
|
Flex and Bison can be downloaded from here: https://github.com/lexxmark/winflexbison/releases/tag/v2.5.25
|
||||||
OpenAL can be downloaded from here: https://github.com/kcat/openal-soft/releases/tag/1.23.1 rename `soft_oal.dll` to `OpenAL64.dll` on 64-bit and `OpenAL32.dll` on 32-bit
|
OpenAL can be downloaded from here: https://github.com/kcat/openal-soft/releases/tag/1.24.1 rename `soft_oal.dll` to `OpenAL64.dll` on 64-bit and `OpenAL32.dll` on 32-bit
|
||||||
|
|
||||||
Append `-DFLEX_EXECUTABLE=...\win_flex.exe -DBISON_EXECUTABLE=...\win_bison.exe -DOPENAL_INCLUDE_DIR="path/to/oal/include" -DOPENAL_LIBRARY="path/to/oal"` to the CMake command-line to use the package from the link above.
|
Append `-DFLEX_EXECUTABLE=...\win_flex.exe -DBISON_EXECUTABLE=...\win_bison.exe -DOPENAL_INCLUDE_DIR="path/to/oal/include" -DOPENAL_LIBRARY="path/to/oal"` to the CMake command-line to use the package from the link above.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue