Eric, many thanks for your efforts and suggestions.
Actually, I just placed #define CGRectEqualToRect NSRectEquals in the file you also found (BTW, beforehand I had to manually change gnustep make path in every GNUstep.make file).. After that everything compiled well. Unfortunately, now I get a segfault error after I run the simple HelloWorld example. For milisecond a windows pops up the the following error shows up: 2011-08-17 21:57:58.719 HelloWorld[12528] File NSOpenGLPixelFormat.m: 58. In +[NSOpenGLPixelFormat _classPixelFormat] Backend doesn't have any glPixelFormatClass 2011-08-17 21:57:58.729 HelloWorld[12528] File NSOpenGLView.m: 89. In +[NSOpenGLView defaultPixelFormat] could not find a reasonable pixel format... 2011-08-17 21:57:58.730 HelloWorld[12528] File NSOpenGLContext.m: 40. In +[NSOpenGLContext _classContext] Backend doesn't have any gl context I suspect that this has to do with the GNUstep installation I compiled myself and the available (nouveau?) NVIDIA drivers. Again, compiling and running ProjectCenter and Gorm is ok. But this OpenGl stuff completely fails. Any suggestions how to prevent this error from happening on OpenSUSE .4? Best regards, Nicolaus --- On Wed, 10/8/11, [email protected] <[email protected]> wrote: From: [email protected] <[email protected]> Subject: Gnustep-dev Digest, Vol 105, Issue 9 To: [email protected] Received: Wednesday, 10 August, 2011, 5:00 PM Send Gnustep-dev mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.gnu.org/mailman/listinfo/gnustep-dev or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When 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 <[email protected]> To: [email protected] Subject: Help compiling 3rd party library: undefined reference error Message-ID: <[email protected]> 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 <[email protected]> To: Nicolaus Andratschke <[email protected]> Cc: [email protected] Subject: Re: Help compiling 3rd party library: undefined reference error Message-ID: <[email protected]> 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-GNUstep Looks 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 > [email protected] > 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 [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev End of Gnustep-dev Digest, Vol 105, Issue 9 *******************************************
_______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
