Gentoo Archives: gentoo-embedded

From: Marc Joliet <marcec@×××.de>
To: Gentoo-Embedded ML <gentoo-embedded@l.g.o>
Subject: [gentoo-embedded] cross-compiling for Windows
Date: Sun, 24 Nov 2013 16:43:37
Message-Id: 20131124174337.7444b809@marcec
1 Hi all
2
3 I have the following scenario: I have a hobby project (msndfile.sf.net), which
4 is a MATLAB MEX file. To create Windows binaries I currently have a Windows
5 VM, which used to be a requirement in order to test compiling the project with
6 the Visual Compiler, but I semi-recently ported the project to C99 (because why
7 not, its my project), so I compile it with MingW now.
8
9 Therefore I've become interested in ditching my Windows VM (which has become
10 somewhat painful to maintain) in favour of cross-compiling for Windows and
11 running MATLAB under Wine (assuming it works, which I'll have to find out
12 myself).
13
14 The only real questions I have is if the MinGW page on the Gentoo Wiki [0] is in
15 conflict with the following recommendation from the cross-compiler handbook
16 [1]:
17
18 "However, there are some scenarios, albeit fewer as time goes on, which
19 causes portage to require or to inflict changes to real root. To keep your
20 Gentoo installation clean, we highly recommend that crossdev installation
21 and all cross-compiling activities occur inside a Gentoo stage3 chroot.
22 (This is the same chroot you used to install Gentoo.)"
23
24 Keep in mind that I don't want to cross-emerge (the libraries I use exist as
25 Windows binaries), I just want to use the cross-compiler in my own build
26 system(s). Does the recommendation still hold then?
27
28 As a final note, I originally thought winegcc would be a suitable alternative
29 to MinGW, but it seems that it's only intended for compiling Windows
30 applications for direct use with Wine. Is this correct, or can it also act as a
31 drop-in replacement for MinGW?
32
33 [0] http://wiki.gentoo.org/wiki/Mingw
34 [1] http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1&chap=2
35
36 Greetings,
37 --
38 Marc Joliet
39 --
40 "People who think they know everything really annoy those of us who know we
41 don't" - Bjarne Stroustrup

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-embedded] cross-compiling for Windows Alon Bar-Lev <alon.barlev@×××××.com>
Re: [gentoo-embedded] cross-compiling for Windows Mike Frysinger <vapier@g.o>