From: Marc Joliet <marcec@gmx.de>
To: Gentoo-Embedded ML <gentoo-embedded@lists.gentoo.org>
Subject: [gentoo-embedded] cross-compiling for Windows
Date: Sun, 24 Nov 2013 17:43:37 +0100 [thread overview]
Message-ID: <20131124174337.7444b809@marcec> (raw)
[-- Attachment #1: Type: text/plain, Size: 1902 bytes --]
Hi all
I have the following scenario: I have a hobby project (msndfile.sf.net), which
is a MATLAB MEX file. To create Windows binaries I currently have a Windows
VM, which used to be a requirement in order to test compiling the project with
the Visual Compiler, but I semi-recently ported the project to C99 (because why
not, its my project), so I compile it with MingW now.
Therefore I've become interested in ditching my Windows VM (which has become
somewhat painful to maintain) in favour of cross-compiling for Windows and
running MATLAB under Wine (assuming it works, which I'll have to find out
myself).
The only real questions I have is if the MinGW page on the Gentoo Wiki [0] is in
conflict with the following recommendation from the cross-compiler handbook
[1]:
"However, there are some scenarios, albeit fewer as time goes on, which
causes portage to require or to inflict changes to real root. To keep your
Gentoo installation clean, we highly recommend that crossdev installation
and all cross-compiling activities occur inside a Gentoo stage3 chroot.
(This is the same chroot you used to install Gentoo.)"
Keep in mind that I don't want to cross-emerge (the libraries I use exist as
Windows binaries), I just want to use the cross-compiler in my own build
system(s). Does the recommendation still hold then?
As a final note, I originally thought winegcc would be a suitable alternative
to MinGW, but it seems that it's only intended for compiling Windows
applications for direct use with Wine. Is this correct, or can it also act as a
drop-in replacement for MinGW?
[0] http://wiki.gentoo.org/wiki/Mingw
[1] http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1&chap=2
Greetings,
--
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next reply other threads:[~2013-11-24 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-24 16:43 Marc Joliet [this message]
2013-11-24 16:53 ` [gentoo-embedded] cross-compiling for Windows Alon Bar-Lev
2013-11-24 17:28 ` Marc Joliet
2013-12-09 4:51 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131124174337.7444b809@marcec \
--to=marcec@gmx.de \
--cc=gentoo-embedded@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox