cocoahelper make problem

73 views
Skip to first unread message

Patrick Collin Eye

unread,
Dec 30, 2013, 12:05:39 AM12/30/13
to lispb...@googlegroups.com
Hey, I've been trying to install lispbuilder on OS X 10.8.4. I've installed SDL without any problems in my /Library/ folder. I unpacked lispbuilder there as well, but when I go to cocoahelper and run make I get this error. 

make -C glue
g++  -dynamiclib -g -Wall -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/Library/Frameworks/SDL.framework/Headers -c -o lispbuilder-sdl-glue.o lispbuilder-sdl-glue.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: argument unused during compilation: '-dynamiclib'
In file included from lispbuilder-sdl-glue.c:31:
./lispbuilder-sdl-glue.h:27:10: fatal error: 'SDL.h' file not found
#include <SDL.h>
         ^
1 error generated.
make[1]: *** [lispbuilder-sdl-glue.o] Error 1

Any suggestions what I can do? 

Elliott Slaughter

unread,
Dec 31, 2013, 1:15:07 PM12/31/13
to lispb...@googlegroups.com
Apparently Clang can't find SDL.h. Can you try this?

ls /Library/Frameworks/SDL.framework/Headers

This is the directory you're trying to add to your include path, according to the output from make.

That said, this is lispbuilder-sdl-glue, which is actually *not* required to run lispbuilder-sdl. The library you do need to build is cocoahelper. So you could also try this instead:

cd cocoahelper
make

Hope that helps.


--
You received this message because you are subscribed to the Google Groups "Lispbuilder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispbuilder...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



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

Patrick Collin Eye

unread,
Jan 16, 2014, 4:32:02 PM1/16/14
to lispb...@googlegroups.com
So it seems to have made now, I realized the issue I was having was the makefile was looking for sdl.framework, but I had sdl2.framework, so I changed that and running make seems to work, it says that "cocoahelper.dylib is up to date." 

When I run (ql:quickload "lispbuilder-sdl") though I get this: 

Unable to load any of the alternatives:
   ((:FRAMEWORK #1="cocoahelper") (:DEFAULT #1#))
   [Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]

There's a cocoahelper.framework folder in cocoahelper, and also in the bin folder, which I think came from the mac-binaries of lispbuilder. Whenever I click the icon "cocoahelper" in the /cocoahelper.framework it tells me cocoahelper "cannot execute binary file."

Patrick Collin Eye

unread,
Jan 16, 2014, 8:07:20 PM1/16/14
to lispb...@googlegroups.com
Nevermind, I restarted sbcl and it works now. Thanks. 
Reply all
Reply to author
Forward
0 new messages