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

cross compiling for windows on ubuntu results in "ERROR: 'make windows' failed #75

Open
Egress-Source opened this issue Mar 14, 2021 · 12 comments

Comments

@Egress-Source
Copy link

Egress-Source commented Mar 14, 2021

trying to compile the windows executable for a friend of mine who uses windows. using the build-windows.rb file it stops and gives said error.
/usr/bin/x86_64-w64-mingw32-ld: cannot find -link
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1754: libuv.la] Error 1
make[1]: Leaving directory '/home/mdp9f/zyn-fusion-build/mruby-zest-build/deps/libuv'
make: *** [Makefile:65: deps/libuv-win.a] Error 2

@Egress-Source Egress-Source changed the title cross compiling for windows on ubuntu results in cross compiling for windows on ubuntu results in "ERROR: 'make windows' failed Mar 14, 2021
@mnstine
Copy link

mnstine commented Apr 11, 2021

Experiencing the same with Clean Ubuntu 20.04 install. Linux build completed fine.

@mnstine
Copy link

mnstine commented Apr 17, 2021

Line in Makefile
1753 libuv.la: $(libuv_la_OBJECTS) $(libuv_la_DEPENDENCIES) $(EXTRA_libuv_la_DEPENDENCIES)
1754 $(AM_V_CCLD)$(libuv_la_LINK) -rpath $(libdir) $(libuv_la_OBJECTS) $(libuv_la_LIBADD) $(LIBS)

@fundamental
Copy link
Member

I'm looking into the windows build now. Looks like there's a few odds and ends which need resolving.

@mnstine
Copy link

mnstine commented May 1, 2021

Thanks! Looking forward to it.

@fundamental
Copy link
Member

ok, replicated and I've made it past that one glitch to another issue that I've resolved in some secondary build/test mingw scripts. (I had totally repressed how dumb autotools can get when environmental variables are tweaked). I'll update when a full fix is in place.

@fundamental
Copy link
Member

I thought I had already done this a few months back, but I guess I have to backport https://github.com/mruby-zest/mruby-zest-build/compare/ghaction patches to finish restoring the windows build.

@mnstine
Copy link

mnstine commented May 10, 2021

Thanks for your contributions. I'm not much of a programmer but if you need any assistance let me know. Looking forward to testing it when you get done.

@fundamental
Copy link
Member

It looks like it's working? At least on my system it appears to reach completion. Note that I haven't actually run the resulting binaries on my system though, so there might be some remaining issue in terms of code that was disabled to fix issues with the windows build. If it runs and exits with a ruby error let me know and I think I know which change I get to undo.

@mnstine
Copy link

mnstine commented May 15, 2021

I am still learning the software but I am hopefully trying to run it thru its paces. I was able to get 16 channels to play in the demo version. I may not know the correct way to change the build to the full version. I found one flag in the build-windows file but it still built the demo version after changing it to false. It worked until the demo timed out. Let me know how to build the full version and I will try it out more.

@mnstine
Copy link

mnstine commented May 16, 2021

I could make it work by using the arguments in order. The full version is working well so far. I have a 37 voice "tubular bells" Midi mapped to 3 instances in Cakewalk and it appears to be working but have a lot of voice mapping to do. Now I just need to figure out how to self sign it.

@fundamental
Copy link
Member

Interesting. There has been no effort to sign binaries on windows previously. I know it may be starting to cause issues on MacOS, but I had thought it was limited to that platform.

@mnstine
Copy link

mnstine commented May 24, 2021 via email

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

3 participants