gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crosscompiling gnustep


From: Stefan Urbanek
Subject: Re: Crosscompiling gnustep
Date: Tue, 26 Apr 2005 21:11:55 +0200

Excuse me for replying to myself ... I moved a bit forward and i am
gettin different errors (see below) ...

On Tue, 2005-04-26 at 20:19 +0200, Stefan Urbanek wrote:
> Hi,
> 
> I am trying to crosscompile GNUstep on Linux to Windows.
> 
> I did:
> 
> $ export CC=/home/stevko/Developer/mingw/bin/i586-mingw32-gcc
> $ cd core/make
> $ ./configure --host=i586-mingw32
> --prefix=/home/stevko/Developer/Windows/GNUstep
> $ make install
> $ cd ../base
> $ ./configure --host=i586-mingw32
> --prefix=/home/stevko/Developer/Windows/GNUstep
> 
> And I got:
> 
> checking whether setpgrp takes no argument... configure: error: cannot
> check setpgrp when cross compiling
> 
> How can I fix that?
> 

I have removed some lines from configure.ac regardless of future
impacts:
-AC_CHECK_FUNCS(killpg setpgrp setpgid)
+AC_CHECK_FUNCS(killpg)
-AC_FUNC_SETPGRP
+# AC_FUNC_SETPGRP

then i run into ffcall/libffi problem. I have installed the ffcall:

$ ./configure --prefix=/home/stevko/Developer/Windows/
--host=i586-mingw32 --enable-shared
$ make
$ make install

Then I did:

address@hidden base]$ ./configure --host=i586-mingw32
--prefix=/home/stevko/Developer/Windows/GNUstep --enable-ffcall
--with-ffi-include=/home/stevko/Developer/Windows/include/
--with-ffi-library=/home/stevko/Developer/Windows/lib/

And I still get:

...
checking callback.h usability... yes
checking callback.h presence... yes
checking for callback.h... yes
checking "for forwarding callback in runtime"... yes
checking "FFI library usage"... none

You do not have either ffcall or libffi installed, or configure needs
--with-ffi-include and/or --with-ffi-library flags so GNUstep can find
them
GNUstep requires ffcall or libffi and proper libobjc hooks to do
invocations and DO.
(This does not apply on apple-apple-apple systems where DO is
not compatible with other GNUstep systems.)

You most likely do not want to build base without DO support. Many
things, including all applications, won't work at all without DO.
If you really want to build -base without DO support, add --disable-do
to the configure arguments.
For more information, read the GNUstep build guide, ffcall section:
http://documents.made-it.com/GNUstep/buildguide.html#FOREIGN.FUNCTION.INTERFACESconfigure:
 error: Incomplete support for ffi functionality.

Thanks for any hints,

Stefan Urbanek

p.s.: I have created the mingw cross-compilation environment as
described here:

http://www.mingw.org/MinGWiki/index.php/build%20a%20Win32%20x-compiler%
20for%20Linux
-- 
http://stefan.agentfarms.net

First they ignore you, then they laugh at you, then they fight you, then
you win.
- Mahatma Gandhi






reply via email to

[Prev in Thread] Current Thread [Next in Thread]