Re: Using mingw with cpptasks

"Barker, Alexander" <[email protected]> Tue, 20 Jul 2010 15:31:28 -0700
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
If your goal is cross platform building with ant write a Makefile for the native sections and call the exec task for make.  It will save you a lot of time trying to figure all the quirky platform dependent bugs in the cpptasks.  If your only going to be building on a specific system and need to cross compile with mingw then the symlinks are the only method that I know of unless you want to extend/patch the compiler tasks to add mingw support.

I hope that helps,

Alexander Barker
Senior Programmer
California Lutheran University
Information Systems and Services
60 West Olsen Road
Thousand Oaks, CA 91360
805.493.3912


On 07/20/2010 08:41 AM, Bailey, Darragh wrote:
>
>
> Wondering if it is possible to use mingw with cpptasks? 
>
> Since mingw is really just a modified version of gcc I would expect that it can as cpptasks handles gcc already, however since in some cases Linux distributions use different names for the mingw gcc, i.e. x86_64-pc-mingw32-gcc, how can I get cpptasks to use the mingw one instead of the system default gcc?
>
> Right now all I can do is create symlinks under a local directory (i.e. gcc -> /usr/bin/x86_64-pc-mingw32-gcc) and use PATH to make sure the mingw gcc is called before the standard gcc. Which is not particularly ideal.
>
> Any better solutions available?
>
> --
> Regards,
> Darragh Bailey
>
> Systems Software Engineer
> Hewlett Packard Galway Ltd.
>
> Postal Address:    Hewlett Packard Galway Limited, Ballybrit Business Park, Galway
> Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson's Quay Dublin 2
> Registered Number: 361933 
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Ant-contrib-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ant-contrib-developers

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first