Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 028356c

Browse files
committed
updated build instructions for 'older' systems
1 parent 47e232b commit 028356c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The Linux build uses the meson build system, and builds against system libraries
3939

4040
Dependencies:
4141

42-
* `g++>=8.1` (needs to support c++17)
42+
* `g++>=8.1` (needs to support c++17 filesystem)
4343
* `allegro4`
4444
* `loadpng`
4545
* `flac`
@@ -48,35 +48,38 @@ Dependencies:
4848
* `lz4`
4949
* `libpng`
5050
* `libX11`
51-
* `meson>=0.49`
51+
* `meson>=0.43`
5252
* `boost>=1.55`
5353
* `xorg-misc-fonts`
5454

5555
Building:
5656

5757
1. Install Dependencies (see below for some distro-specific instructions)
5858

59-
2. Clone this Source Repository and the [Data Respository](https://github.com/cortex-command-community/Cortex-Command-Community-Project-Data), folder structure doesn't really matter here
59+
2. Clone this Source Repository and the [Data Respository](https://github.com/cortex-command-community/Cortex-Command-Community-Project-Data)
6060

6161
3. open a terminal in the Source Repository
6262

6363
4. `meson builddir`
6464

6565
5. `cd builddir`
6666

67-
6. `meson compile` or `meson [-j<num of threads>] compile CCCP` if you want a release build
68-
If the build fails because of memory shortage you may need to reduce the number of build threads (meson will use all available threads by default) using the `-j<number of threads>` option
67+
For `meson` versions `>=0.54` (check `meson --version`):
68+
69+
6. `meson compile` for debug build, or `meson compile CCCP` for a release build. If the build fails because of memory shortage you may need to reduce the number of build threads (meson will use all available threads by default) using the `-j<number of threads>` option
70+
71+
For `meson` versions `<0.54`
72+
73+
6. `ninja` for debug builds, or `ninja CCCP.x86_64` for release builds. Using the `-j<number of threads>` option will also work here.
6974

7075

7176
Running:
7277

73-
1. Copy (or link, preferable for quick debug builds) `builddir/CCCP_debug.x86_64` or `builddir/CCCP.x86_64` (depending on if you made a release build) into the **Data Repository**
78+
1. Copy (or link, might be preferable for testing builds) `builddir/CCCP_debug.x86_64` or `builddir/CCCP.x86_64` (depending on if you made a release build) into the **Data Repository**
7479

7580
2. Copy `Scenes.rte` and `Metagames.rte` from your purchased copy of Cortex Command into **Data Repository**
7681

77-
3. Copy (or link) `libfmod.so.11` from `<Source Repository Root>/external/lib/linux/x86_64` into the **Data Repository**
78-
79-
4. Run `env LD_LIBRARY_PATH=. ./CCCP.x86_64` or `./CCCP_debug.x86_64` in the **Data Repository**
82+
3. Run `./CCCP.x86_64` or `./CCCP_debug.x86_64` in the **Data Repository**
8083

8184
### Arch Linux ###
8285
`# pacman -S allegro4 flac luajit minizip lz4 libpng libx11 meson xorg-fonts-misc`

0 commit comments

Comments
 (0)