gnustep-dev
[Top][All Lists]
Advanced

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

Re: Crosscompiling gnustep


From: Sheldon Gill
Subject: Re: Crosscompiling gnustep
Date: Wed, 27 Apr 2005 09:47:13 +0800
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Stefan Urbanek wrote:
On Tue, 2005-04-26 at 14:40 -0600, Adam Fedor wrote:

On Apr 26, 2005, at 2:28 PM, Stefan Urbanek wrote:


On Tue, 2005-04-26 at 14:24 -0600, Adam Fedor wrote:

On Apr 26, 2005, at 1:11 PM, Stefan Urbanek wrote:

...
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


Well, the config.log file would help here.  It's just trying to see if
the ffcall libraries link correctly, which should work when
cross-compiling.


http://stefan.agentfarms.net/Download/GNUstep/Trash/config.log



Well here's the error message. Did ffcall really get installed correctly?

/home/stevko/Developer/Windows/lib//libcallback.a: could not read symbols: Archive has no index; run ranlib to add one



I run ranlib manually. From ffcall installation output I see:
...
/usr/bin/install -c -m
644 .libs/libcallback.a /home/stevko/Developer/Windows//lib/libcallback.a
ranlib /home/stevko/Developer/Windows//lib/libcallback.a
chmod 644 /home/stevko/Developer/Windows//lib/libcallback.a
...

the ranlib line should read:
i586-mingw32-ranlib /home/stevko/Developer/Windows//lib/libcallback.a

Looks like misconfiguration of ffcall or a bug there.

Then I used this configure command with --includedir and --libdir added:

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/
--includedir=/home/stevko/Developer/mingw/include/
--libdir=/home/stevko/Developer/mingw/lib

I ended with:
 Compiling file NSPathUtilities.m ...
NSPathUtilities.m: In function `NSHomeDirectoryForUser':
NSPathUtilities.m:789: warning: implicit declaration of function
`getpwnam'
NSPathUtilities.m:789: warning: assignment makes pointer from integer
without a cast
NSPathUtilities.m:790: error: dereferencing pointer to incomplete type
NSPathUtilities.m:792: error: dereferencing pointer to incomplete type
make[2]: *** [shared_obj/NSPathUtilities.o] Error 1
make[1]: *** [libgnustep-base.all.library.variables] Error 2
make[1]: Leaving directory
`/home/stevko/Developer/Sources/gnustep/core/base/Source'
make: *** [internal-all] Error 2

It is too late now, i have to go to sleep. If anyone has any hints what
should be done and what should do as next steps, let me know. I am also
interested in the GNUstep.sh problem mentioned before.

For GNUstep.sh see other post.

Problem here is __MINGW__ doesn't seem to be defined. It should be in
Headers/Additions/GNUstepBase/preface.h

If you're cross-compiling for windows getting that definition happening is pretty vital!


Regards,
Sheldon




reply via email to

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