Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build is failing: meson.build:1:0: ERROR: Meson version is 1.0.0 but project requires >= 1.2.0 #15

Closed
Fredyy90 opened this issue May 2, 2024 · 4 comments

Comments

@Fredyy90
Copy link

Fredyy90 commented May 2, 2024

Hey,

I just cloned the repo and tried to build it, but during building the docker container i run into an error:

38.40 patching file gobject/gtypemodule.c
38.40 patching file gobject/gtypemodule.h
38.69 The Meson build system
38.69 Version: 1.0.0
38.69 Source dir: /src/deps/glib
38.69 Build dir: /src/deps/glib/_build
38.69 Build type: cross build
38.69
38.69 meson.build:1:0: ERROR: Meson version is 1.0.0 but project requires >= 1.2.0
38.69
38.69 A full log can be found at /src/deps/glib/_build/meson-logs/meson-log.txt
------
Dockerfile.base:34
--------------------
  32 |         python3-pip \
  33 |        && pip3 install git+https://github.com/kleisauke/meson@wasm-vips
  34 | >>> RUN chmod +x build.sh; ./build.sh
  35 |
  36 |
--------------------
ERROR: failed to solve: process "/bin/sh -c chmod +x build.sh; ./build.sh" did not complete successfully: exit code: 1
make: *** [Makefile:46: .base-image.make] Error 1```

Is there any simple way to fix this?
@DSchroer
Copy link
Collaborator

DSchroer commented May 3, 2024

One thing you could try is in Dockerfile.base replace pip3 install git+https://github.com/kleisauke/meson@wasm-vips with pip3 install git+https://github.com/mesonbuild/meson. It could be that it will work out of the box now.

@MathieuLescure
Copy link

Thanks, I experienced the same issue and your suggestion allowed me to go one step further. A new error occurred and I had to also install "packaging" to fix it : pip3 install packaging git+https://github.com/mesonbuild/meson.

Unfortunately, I'm still not able to build on a Mac with an M2 CPU:
The first problem is due to an architecture mismatch, and so Docker tries to pull openscad-base from the remote even if the image exists locally (but for AMD64) stackoverflow

It can be solved by adding --platform linux/amd64 to the docker run and docker build commands in the Makefile. But then new errors show. I've tried many things but without success.

@GhostDog98
Copy link

GhostDog98 commented Nov 11, 2024

Unfortunately, I'm still not able to build on a Mac with an M2 CPU

I've experienced this on a linux desktop, mac, and windows host (WSL2, with intel cpu)...
Is there an eta on a fix for this?

@t-paul
Copy link
Member

t-paul commented Jan 6, 2025

Build process is updated via #20, so this should be solved now.

@t-paul t-paul closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants