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

Commit 56510df

Browse files
authored
Merge pull request #413 from cortex-command-community/meson-fixes
[Linux] add explicit lua5.2 dependency for luajit2.1/moonjit compatibility
2 parents 8d71e0b + 4131f6c commit 56510df

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/build-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Dependencies
2626
run: |
2727
sudo apt-get update -yq
28-
sudo apt-get install --no-install-recommends liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev
28+
sudo apt-get install --no-install-recommends liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev
2929
3030
- name: Install Clang
3131
# You may pin to the exact commit or the version.

.github/workflows/meson.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Dependencies
2626
run: |
2727
sudo apt-get update -yq
28-
sudo apt-get install --no-install-recommends wget liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev
28+
sudo apt-get install --no-install-recommends wget liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev
2929
3030
- name: Install Clang
3131
# You may pin to the exact commit or the version.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ The Linux build uses the meson build system, and builds against system libraries
5454
* `loadpng`
5555
* `flac`
5656
* `luajit`
57+
* `lua5.2`
5758
* `minizip`
5859
* `lz4>=1.9.0`
5960
* `libpng`
@@ -96,10 +97,10 @@ If you want to change the buildtype afterwards, you can use `meson configure --b
9697
## Installing Dependencies
9798

9899
**Arch Linux:**
99-
`# pacman -S allegro4 boost flac luajit minizip lz4 libpng libx11 xorg-xmessage meson ninja base-devel`
100+
`# pacman -S allegro4 boost flac luajit lua52 minizip lz4 libpng libx11 xorg-xmessage meson ninja base-devel`
100101

101102
**Ubuntu >=20.04:**
102-
`# apt-get install build-essential libboost-dev liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev ninja-build meson`
103+
`# apt-get install build-essential libboost-dev liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev ninja-build meson`
103104
## Troubleshooting
104105

105106
* On some distros some keyboards and mice are recognized as controllers, to fix this follow these instructions: [https://github.com/denilsonsa/udev-joystick-blacklist](https://github.com/denilsonsa/udev-joystick-blacklist)

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ if host_machine.system() in ['linux','osx']
88
dependency('allegro'),
99
dependency('loadpng'),
1010
dependency('flac'),
11-
dependency('luajit'),
1211
dependency('minizip'),
12+
dependency('luajit'),
13+
dependency('lua52'),
1314
dependency('threads'),
1415
dependency('liblz4'),
1516
dependency('libpng'),

0 commit comments

Comments
 (0)