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

Tips for building on Windows? #35

Open
livvy94 opened this issue Nov 2, 2020 · 7 comments
Open

Tips for building on Windows? #35

livvy94 opened this issue Nov 2, 2020 · 7 comments

Comments

@livvy94
Copy link

livvy94 commented Nov 2, 2020

Hello, what kind of environment do you need to build this into a Windows executable? I have the Windows Linux Subsystem, but I assume that if I use that, it will only be launchable from within a WSL command line, and I'm looking for something (that isn't an old WinAmp plugin) that I can associate with the .gbs file format, akin to NSFPlay.

@mmitch
Copy link
Owner

mmitch commented Nov 2, 2020

It should compile both under Cygwin and MSYS2, although I don't know what the differences between those two are.

@ranma
Copy link
Collaborator

ranma commented Nov 2, 2020

There seems to be a bug with -fstack-clash-protection (msys2/MINGW-packages#5348), to work around that use
./configure --disable-hardening

@mmitch
Copy link
Owner

mmitch commented Nov 3, 2020

Also your request has triggered some fixes to the MSYS2 build, so be sure to git pull before your next build ;-)

@mmitch
Copy link
Owner

mmitch commented Nov 5, 2020

After some additional fixes to configure we now have an automated build environment under Windows that tells us that MSYS, MINGW64 and MINGW32 should work "out of the box".

Please try it and tell us the results.

@mmitch
Copy link
Owner

mmitch commented Dec 21, 2020

@vince94 Does one of the MSYS or MINGW builds work for you?

@livvy94
Copy link
Author

livvy94 commented Apr 7, 2021

Hey there, I just saw the notification for this thread. I think I ended up using a different player for the arrangement I was working on. I've never used MSYS or MINGW before (I'm more of a musician than a programmer) and I have tried MINGW32 before several years ago (couldn't figure out how to get past the installer where you have to know which components you want and what they do) but I'll see if I can figure it out again.
EDIT: I tried following the setup tutorial on msys2.org, but I keep getting error: failed to prepare transaction (could not find database) when I try to run pacman -S --needed base-devel mingw-w64-x86_64-toolchain (step 7). Are there builds available for download somewhere? The first place I normally check is Releases but it seems to only have a copy of the repo/the same files you get when you run git clone.

@ranma
Copy link
Collaborator

ranma commented Apr 8, 2021

We don't provide any prebuilt binaries (so far).
If you want to try it I can offer you http://uguu.de/~ranma/gbsplay.exe (untested, just built it on Linux using the mingw toolchain).

$ sha1sum gbsplay.exe
ec022e92de95261d6e0c82dbcfe61bba255ebc4f  gbsplay.exe
$ file gbsplay.exe
gbsplay.exe: PE32 executable (console) Intel 80386, for MS Windows

(Note this also needs libwinpthread-1.dll and zlib1.dll mingw libraries to run)

$ wine gbsplay.exe
Usage: Z:\[...]\gbsplay.exe [option(s)] <gbs-file> [start_at_subsong [stop_at_subsong] ]
[...]
$ wine gbsplay.exe  examples/nightmode.gbs
GBSVersion:       1
Title:            "Nightmode"
Author:           "Laxity"
[...]

@mmitch mmitch added the windows label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants