Astrabit-ST / ModShot-Core

A fork of mkxp, forked for OneShot, forked for OneShot mods, (not to be confused with the ModShot server)
https://nowaffles.com
GNU General Public License v2.0
19 stars 9 forks source link

meson.build:16:11: ERROR: lexer #87

Closed creativegamer03 closed 1 year ago

creativegamer03 commented 1 year ago

build process went fine until I proceed to the meson build step: meson build --prefix="$PWD/build.out" --bindir=.

Here is the error log of it: (meson-log.txt)

Build started at 2022-11-22T22:48:22.035901
Main binary: /usr/bin/python3
Python system: Linux
The Meson build system
Version: 0.45.1
Source dir: /home/cg03-dev/Downloads/ModShot-Core-master
Build dir: /home/cg03-dev/Downloads/ModShot-Core-master/build
Build type: native build

meson.build:16:11: ERROR: lexer
compilers = {
           ^
thehatkid commented 1 year ago

Please, update your Meson build system, you are using 0.45.1, but meson.build requires Meson 0.60.0 and higher.

creativegamer03 commented 1 year ago

i did but apt install says its the latest

thehatkid commented 1 year ago

You can download Meson and then use meson.py build --prefix="$PWD/build.out" --bindir=., or you also can use Python with PIP and install meson package (pip3 install --upgrade meson).

eli-schwartz commented 1 year ago

How was this error encountered by the way? meson_version: '>=0.60.0' (updated from 0.56.0 in June) means that Meson should always error out and tell you that you need a newer version of Meson.

Speak2Erase commented 1 year ago

Maybe their meson version couldn't parse the meson build files?

eli-schwartz commented 1 year ago

Did some tests and answered my own question... if Meson cannot syntactically parse the file it cannot evaluate the first line and detect the minimum required meson version. For example this fails with Meson 0.64.1:

project(
    'test',
    meson_version: '>=2.3.0',
)

foo ======= bar
t/meson.build:6:6: ERROR: Expecting eof got equal.
foo ======= bar
      ^

That's Meson's fault then. Maybe we can do something about this.