Still have these warnings, but it appears to have compiled:
cocoahelper.m: In function ‘-[SDLMain setupWorkingDirectory:]’:
cocoahelper.m:90: warning: pointer targets in passing argument 3 of
‘CFURLGetFileSystemRepresentation’ differ in signedness
cocoahelper.m: In function ‘setApplicationMenu’:
cocoahelper.m:163: warning: no ‘-setAppleMenu:’ method found
cocoahelper.m:163: warning: (Messages without a matching method signature
cocoahelper.m:163: warning: will be assumed to return ‘id’ and accept
cocoahelper.m:163: warning: ‘...’ as arguments.)


On Tue, Apr 6, 2010 at 9:40 PM, Elliott Slaughter <
elliottslaugh...@gmail.com> wrote:

> Note: this patch is for lispbuilder-sdl/cocoahelper/Makefile, not
> lispbuilder-sdl/Makefile.
>
>
> On Tue, Apr 6, 2010 at 6:39 PM, Elliott Slaughter <
> elliottslaugh...@gmail.com> wrote:
>
>> How did you install SDL? You don't seem to have sdl-config installed, so I
>> assume you are using SDL.framework? If so, the following patch might work
>> for you:
>>
>> Index: Makefile
>> ===================================================================
>> --- Makefile (revision 1464)
>> +++ Makefile (working copy)
>> @@ -1,6 +1,6 @@
>>  cocoahelper.dylib : cocoahelper.m
>> - gcc -c cocoahelper.m -o cocoahelper.o -fPIC `sdl-config --cflags`
>> - gcc -dynamiclib -o cocoahelper.dylib cocoahelper.o -framework Cocoa
>> `sdl-config --libs`
>> + gcc -c cocoahelper.m -o cocoahelper.o -fPIC -I
>> /Library/Frameworks/SDL.framework/Headers/
>> + gcc -dynamiclib -o cocoahelper.dylib cocoahelper.o -framework Cocoa
>> -framework SDL
>>
>>  cocoahelper.framework: cocoahelper.dylib
>>   rm -rf cocoahelper.framework
>>
>> Let us know if that helps.
>>
>> On Tue, Apr 6, 2010 at 6:30 PM, Adam Higuera <ahig...@gmail.com> wrote:
>>
>>> I downloaded lispbuilder-sdl from the google code page, and attempted to
>>> build cocoahelper.  The result is the following set of error messages:
>>>
>>> adam-higueras-macbook-pro:cocoahelper adamvh$ make
>>> gcc -c cocoahelper.m -o cocoahelper.o -fPIC `sdl-config --cflags`
>>> /bin/sh: sdl-config: command not found
>>> cocoahelper.m:8:16: error: SDL.h: No such file or directory
>>> cocoahelper.m: In function ‘-[SDLApplication terminate:]’:
>>> cocoahelper.m:73: error: ‘SDL_Event’ undeclared (first use in this
>>> function)
>>> cocoahelper.m:73: error: (Each undeclared identifier is reported only
>>> once
>>> cocoahelper.m:73: error: for each function it appears in.)
>>> cocoahelper.m:73: error: syntax error before ‘event’
>>> cocoahelper.m:74: error: ‘event’ undeclared (first use in this function)
>>> cocoahelper.m:74: error: ‘SDL_QUIT’ undeclared (first use in this
>>> function)
>>> cocoahelper.m: In function ‘-[SDLMain setupWorkingDirectory:]’:
>>> cocoahelper.m:90: warning: pointer targets in passing argument 3 of
>>> ‘CFURLGetFileSystemRepresentation’ differ in signedness
>>> cocoahelper.m: In function ‘setApplicationMenu’:
>>> cocoahelper.m:163: warning: no ‘-setAppleMenu:’ method found
>>> cocoahelper.m:163: warning: (Messages without a matching method signature
>>> cocoahelper.m:163: warning: will be assumed to return ‘id’ and accept
>>> cocoahelper.m:163: warning: ‘...’ as arguments.)
>>> make: *** [cocoahelper.dylib] Error 1
>>>
>>> However, if I replace the line
>>>
>>> #import "SDL.h"
>>>
>>> with
>>>
>>> #import <SDL/SDL.h>
>>>
>>> I instead get the error messages
>>>
>>> adam-higueras-macbook-pro:cocoahelper adamvh$ make
>>> gcc -c cocoahelper.m -o cocoahelper.o -fPIC `sdl-config --cflags`
>>> /bin/sh: sdl-config: command not found
>>> cocoahelper.m: In function ‘-[SDLMain setupWorkingDirectory:]’:
>>> cocoahelper.m:90: warning: pointer targets in passing argument 3 of
>>> ‘CFURLGetFileSystemRepresentation’ differ in signedness
>>> cocoahelper.m: In function ‘setApplicationMenu’:
>>> cocoahelper.m:163: warning: no ‘-setAppleMenu:’ method found
>>> cocoahelper.m:163: warning: (Messages without a matching method signature
>>> cocoahelper.m:163: warning: will be assumed to return ‘id’ and accept
>>> cocoahelper.m:163: warning: ‘...’ as arguments.)
>>> gcc -dynamiclib -o cocoahelper.dylib cocoahelper.o -framework Cocoa
>>> `sdl-config --libs`
>>> /bin/sh: sdl-config: command not found
>>> Undefined symbols:
>>>   "_SDL_PushEvent", referenced from:
>>>       -[SDLApplication terminate:] in cocoahelper.o
>>> ld: symbol(s) not found
>>> collect2: ld returned 1 exit status
>>> make: *** [cocoahelper.dylib] Error 1
>>>
>>>
>>> I am now at a loss.
>>>
>>> Thanks,
>>> Adam
>>>
>>> _______________________________________________
>>> application-builder mailing list
>>> application-builder@lispniks.com
>>> http://www.lispniks.com/mailman/listinfo/application-builder
>>>
>>>
>>
>>
>> --
>> Elliott Slaughter
>>
>> "Don't worry about what anybody else is going to do. The best way to
>> predict the future is to invent it." - Alan Kay
>>
>
>
>
> --
> Elliott Slaughter
>
> "Don't worry about what anybody else is going to do. The best way to
> predict the future is to invent it." - Alan Kay
>
> _______________________________________________
> application-builder mailing list
> application-builder@lispniks.com
> http://www.lispniks.com/mailman/listinfo/application-builder
>
>
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to