Unix Programming - Cross-compiling for Win32

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2007 > Cross-compiling for Win32





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Cross-compiling for Win32
Volker Grabsch

2007-06-21, 1:25 pm

Dear programmers,

in the last 7 days I created a nice script whose version 1.0
I'm releasing now to the public:

http://www.profv.de/mingw_cross_env/

This script compiles a MinGW cross compiler and cross compiles
many free libraries such as GD and SDL. Thus, it provides a nice
MinGW cross compiling environment. All necessary source packages
are downloaded automatically.

Difference to similar scripts and projects:

* kept very simple (not cryptic),
thus easy to adapt and to extend

* builds many free libraries in addition to the cross compiler

* directly uses official source packages,
thus ensuring the whole build mechanism is transparent

* downloads all needed packages

* is able to retrieve the new version numbers of all packages

* creates libraries to be statically linked,
no DLL hell

Have fun!


Greets,

Volker

--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR
user923005

2007-06-23, 1:37 am

On Jun 21, 8:52 am, Volker Grabsch
<volker_grab...@v.notjusthosting.com> wrote:
> Dear programmers,
>
> in the last 7 days I created a nice script whose version 1.0
> I'm releasing now to the public:
>
> http://www.profv.de/mingw_cross_env/
>
> This script compiles a MinGW cross compiler and cross compiles
> many free libraries such as GD and SDL. Thus, it provides a nice
> MinGW cross compiling environment. All necessary source packages
> are downloaded automatically.
>
> Difference to similar scripts and projects:
>
> * kept very simple (not cryptic),
> thus easy to adapt and to extend
>
> * builds many free libraries in addition to the cross compiler
>
> * directly uses official source packages,
> thus ensuring the whole build mechanism is transparent
>
> * downloads all needed packages
>
> * is able to retrieve the new version numbers of all packages
>
> * creates libraries to be statically linked,
> no DLL hell


dcorbit@DCORBIT64 /mingw
$ sh build_mingw_cross_env.sh
gcc.exe: no input files

dcorbit@DCORBIT64 /mingw
$

Volker Grabsch

2007-06-24, 1:27 pm

user923005 <dcorbit@connx.com> schrieb:
> dcorbit@DCORBIT64 /mingw
> $ sh build_mingw_cross_env.sh
> gcc.exe: no input files


Is this meant to be a bug report? It's a very bad one. You didn't even
tell me the operating system and tool chain where you were running
the script.

According to the message-part "gcc.exe", I assume that you are working
with either Cygwin or MSYS, where MSYS is more probable.

If that's the case: The script is meant to create a cross compiler,
i.e. to be run on a unix system to create a win32 cross compiler with
many libs. It is not designed to run on Windows in a MinGW/MSYS environment,
although that might work in the future. It's tested on Debian/Linux,
SuSE/Linux and Gentoo/Linux. I'm currently concentrating on some
strange Gentoo x64 problems and BSD portability.

To run it on MinGW, you should delete the "binutils", "gcc", "win32api"
and "mingw-runtime" parts from the script. Some libraries need Perl
and/or Python, those also cannot be built from MSYS unless you install
Perl and Python.

The next release 1.1 will work better for MSYS, as it will be more
portable. But that isn't the purpose of the script. However, if you somehow
get it working on MSYS, please send a patch to me. I'd be glade to
incorporate it.


Greets,

Volker

--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com