Replies: 1 comment
-
I think that the issue here may be because you cannot run I suspect it would be more reliable if you need to actually execute an autotools based subproject to build within msys2 targeting the UCRT, because in that case the autotools configure script is much more likely to run correctly. However, one possible fix would be for mesonbuild/modules/external_project.py to run the configure command as /cc @xclaesse |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add a wrap to a project for libidn (not libidn2), which uses autotools as a build system. I've put together a small example doing so. On Linux, this works out just fine. On Windows (using x64 native command prompt), I've run into two issues:
/bin/sh
; if I let Meson run normally, it fails to findsh
, which is expected. I've tried to set a native machine file withsh
pointing tobash.exe
(or pointing to Git Bash, or using Windows slashes instead) but this always fails to find the interpreter:
It seems that the interpreter from the shebang cannot be overridden by the machine file. Consequently, the above project contains a patch that changes the shebang to
/bin/bash
instead.2. After applying the patch, the interpreter can be found on the
PATH
as usual. However, it fails to find the configure script:If I then cd to the build directory and run
configure
with a relative path, then it works:The full log and the internal log can be found on this gist.
Is there something wrong I'm doing here, or is Meson messing up?
Has anyone successfully built an autotools-based external project on Windows? Do I have to bite the bullet and write a Meson build (which I'd rather not do since there's so much configuration there)?
Beta Was this translation helpful? Give feedback.
All reactions