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 Mono for Windows is Out of Date #131

Open
Yoshi325 opened this issue Jul 14, 2015 · 10 comments
Open

Cross Compiling Mono for Windows is Out of Date #131

Yoshi325 opened this issue Jul 14, 2015 · 10 comments

Comments

@Yoshi325
Copy link

The "Cross Compiling Mono for Windows" page is horribly out of date.
I would like to update it. Either with a new valid way of accomplishing that goal. Or with a notice that warns readers about it no longer being viable.
Does anyone have any thoughts or input on this?

Page
File

@tritao
Copy link
Contributor

tritao commented Jul 14, 2015

I think updating the page with some up-to-date commands for recent distros would be best. I'll review any changes you do related to this and get them merged.

@Yoshi325
Copy link
Author

Okay. As far as I can discern, there is no longer a way to do this. Even the script mentioned has been removed from the repository. With that in mind, does this page even need to exist any longer?

@akoeplinger
Copy link
Member

Looks like the build-mingw32.sh file was removed by @alexrp in mono/mono@44f87d7. Maybe he can shed some light whether cross compiling for Windows should still work?

@vargaz
Copy link
Contributor

vargaz commented Jul 25, 2015

Its still possible to cross compile using mxe, like this:
http://blog.worldofcoding.com/2014/05/cross-compiling-c11-without-going-madder.html
The docs just haven't been updated yet.

@HinTak
Copy link

HinTak commented Aug 29, 2016

I filed to try to get it back...
https://bugzilla.xamarin.com/show_bug.cgi?id=38748

@HinTak
Copy link

HinTak commented Aug 29, 2016

I was still using it to build my custom 4.0.5.1, so it was still working as for 4.0.

@HinTak
Copy link

HinTak commented Aug 29, 2016

FWIW, the old script still seems to be working for
4.4.2.11 Cycle 7 Service Release 1 .

I am using mingw 6.2.0 as shipped by fedora.

$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 6.2.0 20160822 (Fedora MinGW 6.2.0-1.fc24)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@HinTak
Copy link

HinTak commented Aug 29, 2016

I don't like mxe - the distro already ships the mingw cross compiler, seems to be a waste of time to build one.

@HinTak
Copy link

HinTak commented Aug 29, 2016

Finished cross-compiling the C part of 4.4.2.11. The resulting binary seems to work fine under wine.

@HinTak
Copy link

HinTak commented Aug 30, 2016

It is not too difficult to revive the script - you just do

git show 44f87d758e5ca13609b70134f532d2382b3680e7^:build-mingw32.sh > build-mingw32.sh
chmod a+rx build-mingw32.sh

if you are sitting on top of a local mono git clone.

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

5 participants