* [gentoo-embedded] cross-compiling for Windows
@ 2013-11-24 16:43 Marc Joliet
2013-11-24 16:53 ` Alon Bar-Lev
2013-12-09 4:51 ` Mike Frysinger
0 siblings, 2 replies; 4+ messages in thread
From: Marc Joliet @ 2013-11-24 16:43 UTC (permalink / raw
To: Gentoo-Embedded ML
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-embedded] cross-compiling for Windows
2013-11-24 16:43 [gentoo-embedded] cross-compiling for Windows Marc Joliet
@ 2013-11-24 16:53 ` Alon Bar-Lev
2013-11-24 17:28 ` Marc Joliet
2013-12-09 4:51 ` Mike Frysinger
1 sibling, 1 reply; 4+ messages in thread
From: Alon Bar-Lev @ 2013-11-24 16:53 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 2203 bytes --]
Hi,
Use mingw-w64 project and not old mingw, this wiki is wrong.
Don't be worried about these comments.
crossdev -t i686-w64-mingw32
crossdev -t x86_64-w64-mingw32
Alon
On Sun, Nov 24, 2013 at 6:43 PM, Marc Joliet <marcec@gmx.de> wrote:
> 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: Type: text/html, Size: 3008 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-embedded] cross-compiling for Windows
2013-11-24 16:43 [gentoo-embedded] cross-compiling for Windows Marc Joliet
2013-11-24 16:53 ` Alon Bar-Lev
@ 2013-12-09 4:51 ` Mike Frysinger
1 sibling, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2013-12-09 4:51 UTC (permalink / raw
To: gentoo-embedded; +Cc: Marc Joliet
[-- Attachment #1: Type: Text/Plain, Size: 667 bytes --]
On Sunday 24 November 2013 11:43:37 Marc Joliet wrote:
> 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.)"
hrm, i don't know why that got added. i'll remove it.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-09 4:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-24 16:43 [gentoo-embedded] cross-compiling for Windows Marc Joliet
2013-11-24 16:53 ` Alon Bar-Lev
2013-11-24 17:28 ` Marc Joliet
2013-12-09 4:51 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox