From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2C3C2138247 for ; Sun, 24 Nov 2013 16:43:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1ABAE095A; Sun, 24 Nov 2013 16:43:36 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4BF7E0957 for ; Sun, 24 Nov 2013 16:43:35 +0000 (UTC) Received: from marcec ([178.25.242.3]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M3ARX-1VU3V52yj1-00srRx for ; Sun, 24 Nov 2013 17:43:34 +0100 Date: Sun, 24 Nov 2013 17:43:37 +0100 From: Marc Joliet To: Gentoo-Embedded ML Subject: [gentoo-embedded] cross-compiling for Windows Message-ID: <20131124174337.7444b809@marcec> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/XzV9UtWCIHlS4r40LV_0Avo"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:3ivvZFspjlPgs6bdN1iep1MEDChlMOcrwgW6ACuebyrNsZdMMNV GLAtA7dGzc0oNseXPqZ8pzTIOh9/xXCFd9m7drdNCXoBJyfiv8WCq7QQtkPZBjV1MdMUurD PjDW4AzMpRzPF5xAZGTjrFwiwbuw6WnjBeBbKv3acij8Q/IMlBzAJss8EkMJ4WBUMChXqkC anaeFMdMD/g/EwieR7PJw== X-Archives-Salt: 7a5da50a-b485-4fd4-a429-d9e24958b678 X-Archives-Hash: a82725080c4ed2f7d48f84e69531cb5e --Sig_/XzV9UtWCIHlS4r40LV_0Avo Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all I have the following scenario: I have a hobby project (msndfile.sf.net), wh= ich 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 w= ith 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 y= our Gentoo installation clean, we highly recommend that crossdev installati= on 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 alternati= ve 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=3D1= &chap=3D2 Greetings, --=20 Marc Joliet -- "People who think they know everything really annoy those of us who know we don't" - Bjarne Stroustrup --Sig_/XzV9UtWCIHlS4r40LV_0Avo Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJSkizOAAoJEL/Q5oYsiHj0HvIQAK1pCNwqqkajVq2HTmioQ+F+ Kv/mWhotscmZDHTw+sv8tDX6zOftSIJHHSWQPXOZ87DWoXE1xEWk/DmFXnt0OcTL eeobL4mnxNxbkBy+Nz90kA9gz56N0MhEw/t+mx3UXXGvu+Zl0JLedaCamdV2jVHb Y9bXQ3b8t7feoCij++DbU8hTNMuc5ydQy8cR888d6bAuIb9NjUK+RS/SMaESIGXB rtQIlM8BjmShD0KF4iLJMwCTjumng8Mu9X3qkWjOiIiAxRYLxkT3YDkPD77tvNOM WVyKF0MqsCrOgsZyTlf3feKcRk8KP7KWGHqyU4BU4aECbE1YQMcsMIRTtHVwtN27 typ08P/aya63J+Jwk5gvNX/811b7oEck/59tYI4pynwNc++co54+LJpWdnWsnN1h okfktrLQprI5hcBMa61R5bgjmbrguhPM26saYSdzpdjQ5/QvJi6SRcV17tHtjoGI DUyp++7QdDRq3GOP3QEOdEmgkEUUZeD0QKNF0bAi63CysxL36uGsGEV6Ry2cBOYT iGdIn4AcnQnFsgJjNWu8cyqT1rOa39aNONkmRQViKMSunX4AWEA4siXZjIUHvNSr qSop9lDvGn8NXTuPYFYpI27Wel5yye7S96KOnHfjXRRNJxhgEtfmJl3f6rsP7qv9 +IyrcRTOPQHblPFU/NiM =xDAO -----END PGP SIGNATURE----- --Sig_/XzV9UtWCIHlS4r40LV_0Avo--