Open brechtsanders opened 6 months ago
thanks for reporting.
to be honest I haven't even tested shedskin with MinGW since the switch to cmake, so there may be other problems by now as well (from improving MSVC support). I did try to add MinGW to CI at some point, but couldn't get it to work at all (we now automatically test with MSVC, linux, OSX and the latest 3 python versions). any help from actual MinGW users welcome of course!
I will see if I can create a similar setup as you describe and test some other things as well. and create an issue for 0.9.9 to try again to include MinGW in CI.
I release my own build of MinGW-w64 for native Windows at https://winlibs.com/ and have some work in progress on building my own package manager and build system.
FYI: The way I currently build shedskin under MSYS2 shell is described here: https://github.com/brechtsanders/winlibs_recipes/blob/main/recipes/shedskin.winlib
As for including MinGW-w64 in CI using Github Actions I made a minimal example here: https://github.com/brechtsanders/ci-test/blob/master/.github/workflows/ci-test.yml The example installs dependencies for each of platform (MinGW-w64, MacOS, Linux) and then builds using CMake+Ninja. Maybe it can help you setting up a MinGW-w64 build CI.
Getting mingw to work will probably help getting cross compilation to work too. (Important to target embedded use.)
I'm on Windows using MinGW-w64 GCC from the MSYS2 shell, and my Python is not in my
PATH
.When I run:
I get:
So first of all it looks like
-DPython_EXECUTABLE=<path_to_python>" is missing from the
cmakecommand. Secondly, calling
shedskinfrom the generated
build.ninjafile won't work as the shebang (
!#) won't work on Windows. Instead
pythonshould be called with
shedskin` as the first argument followed by any other arguments.