Send Gnustep-dev mailing list submissions to
address@hiddenTo subscribe or unsubscribe via the World Wide Web, visit
https://lists.gnu.org/mailman/listinfo/gnustep-devor, via email, send a message with subject or body 'help' to
address@hiddenYou can reach the person managing the list at
address@hiddenWhen replying, please edit your Subject line so it is more specific
than "Re: Contents of Gnustep-dev digest..."
Today's Topics:
1. Help compiling 3rd party library: undefined reference error
(Nicolaus Andratschke)
2. Re: Help compiling 3rd party library: undefined reference
error (Eric Wasylishen)
----------------------------------------------------------------------
Message: 1
Date: Tue, 9 Aug 2011 12:43:58 -0700 (PDT)
From: Nicolaus Andratschke <
address@hidden>
To:
address@hiddenSubject: Help compiling 3rd party library: undefined reference error
Message-ID:
<
address@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hi
there,
I try to compile Cocos2d-gnustep on openSUSE 11.4 with the newest stable gnustep environment I compiled and installed with the gnustep-startup script myself and get the following error I can't resolve myself:
This is gnustep-make 2.6.0. Type 'make print-gnustep-make-help' for help.
Making all for app HelloWorld...
gcc? -rdynamic????? -shared-libgcc -fexceptions -fgnu-runtime -o HelloWorld.app/./HelloWorld \
./obj/HelloWorld.obj/HelloWorld.m.o?? -L ../../cocostep//./obj??? -L/home/nicolaus/GNUstep/Library/Libraries -L/usr/local/bin/Local/Library/Libraries -L/usr/local/bin/System/Library/Libraries???? -lgnustep-gui? -lCoCoStep? -lGL -lGLU -lm -lgnustep-base -lgnustep-gui? -lgnustep-base?? -lpthread -lobjc?? -lm
../../cocostep//./obj/libCoCoStep.so: undefined reference to `CGRectEqualToRect'
collect2: ld returned 1 exit status
make[3]: *** [HelloWorld.app/./HelloWorld] Fehler 1
make[2]: ***
[internal-app-run-compile-submake] Fehler 2
make[1]: *** [HelloWorld.all.app.variables] Fehler 2
make: *** [internal-all] Fehler 2
I realize that some library to be linked is missing, but cannot figure out which it is.
BTW, I compiled and installed ProjectCenter and Gorm from sources succesfully.
Any help is very mcu appreciated.
Regards,
NIC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </archive/html/gnustep-dev/attachments/20110809/cd8c0973/attachment.html>
------------------------------
Message: 2
Date: Tue, 9 Aug 2011 14:54:15 -0600
From: Eric Wasylishen <
address@hidden>
To: Nicolaus Andratschke <
address@hidden>
Cc:
address@hiddenSubject: Re: Help compiling 3rd party library: undefined reference
error
Message-ID: <
address@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hi Nicolaus,
This looks like a bug in cocos2d-GNUstep, because GNUstep doesn't currently provide CGRect functions like CGRectEqualToRect. In general you can't use CoreGraphics functions in GNUstep. (We do use the CGFloat type since it's the main float type in AppKit, but that's about it.)
I had a look at cocos2d-GNUstep and it looks like there are various compatibility macros in ./src/cocostep/UIKit/CGGeometry.h which map CG types to NS types, so they probably forgot to add
CGRectEqualToRect there. Maybe you could file a bug report on their githubpage?
FYI, for those who didn't know what cocos2d-GNUstep was, it looks like a gnustep port of an iPhone game development library:
https://github.com/ANindie/cocos2d-GNUstepLooks really cool!
Hope this helps,
-Eric
P.S. We have a partial implementation of CoreGraphics in our subversion repository at svn://svn.gna.org/svn/gnustep/libs/opal/trunk, but it can't be used in conjunction with AppKit so it's not much use at the moment.
On 2011-08-09, at 1:43 PM, Nicolaus Andratschke wrote:
> Hi there,
>
> I try to compile Cocos2d-gnustep on openSUSE 11.4 with the newest stable gnustep environment I compiled and installed with the gnustep-startup script myself and get the following error I can't resolve myself:
>
> This is
gnustep-make 2.6.0. Type 'make print-gnustep-make-help' for help.
> Making all for app HelloWorld...
> gcc -rdynamic -shared-libgcc -fexceptions -fgnu-runtime -o HelloWorld.app/./HelloWorld \
> ./obj/HelloWorld.obj/HelloWorld.m.o -L ../../cocostep//./obj -L/home/nicolaus/GNUstep/Library/Libraries -L/usr/local/bin/Local/Library/Libraries -L/usr/local/bin/System/Library/Libraries -lgnustep-gui -lCoCoStep -lGL -lGLU -lm -lgnustep-base -lgnustep-gui -lgnustep-base -lpthread -lobjc -lm
> ../../cocostep//./obj/libCoCoStep.so: undefined reference to `CGRectEqualToRect'
> collect2: ld returned 1 exit status
> make[3]: *** [HelloWorld.app/./HelloWorld] Fehler 1
> make[2]: *** [internal-app-run-compile-submake] Fehler 2
> make[1]: *** [HelloWorld.all.app.variables] Fehler 2
>
make: *** [internal-all] Fehler 2
>
> I realize that some library to be linked is missing, but cannot figure out which it is.
> BTW, I compiled and installed ProjectCenter and Gorm from sources succesfully.
>
> Any help is very mcu appreciated.
>
> Regards,
>
> NIC
>
>
> _______________________________________________
> Gnustep-dev mailing list
>
address@hidden>
https://lists.gnu.org/mailman/listinfo/gnustep-dev-------------- next part --------------
An HTML attachment was scrubbed...
URL: </archive/html/gnustep-dev/attachments/20110809/649d1a2d/attachment.html>
------------------------------
_______________________________________________
Gnustep-dev
mailing list
address@hiddenhttps://lists.gnu.org/mailman/listinfo/gnustep-devEnd of Gnustep-dev Digest, Vol 105, Issue 9
*******************************************