Hi guys,

Once again, installing a package via ASDF-install went awry, but
because the Makefile didn't work on my system. It seems to be
configured for a linux-style library setup, rather than the frameworks
system Apple uses.

Changing the Makefile like so:

--- Makefile.darwin-old 2008-10-13 19:12:57.000000000 +0100
+++ Makefile.darwin     2008-10-13 18:50:35.000000000 +0100
@@ -10,5 +10,5 @@
 SDL_LDFLAGS=$(LDFLAGS) `sdl-config --libs`

 SDL_TTF_CFLAGS=$(SDL_CFLAGS)
-SDL_TTF_LDFLAGS=$(LDFLAGS) -lSDL_ttf
+SDL_TTF_LDFLAGS=$(LDFLAGS) -framework SDL_ttf

Allowed make to build the correct library. SBCL still complained that
it couldn't find the library, though - the problem lying in these
lines (I think) in cffi/library.lisp:

(cffi:define-foreign-library sdl-ttf-glue
  (:darwin (:or "liblispbuilder-sdl-ttf-glue.dylib"
                "lispbuilder-sdl-ttf-glue.dylib"))
  (:windows (:or "liblispbuilder-sdl-ttf-glue.dll"
                 "lispbuilder-sdl-ttf-glue.dll"))
  (:unix "liblispbuilder-sdl-ttf-glue.so"))

Luckily I was offered a restart which allowed me to specify the
absolute path to the dylib:
;;
Enter a new value (unevaluated):
("/Users/oisin/.sbcl/site/lispbuilder-sdl-ttf/build/liblispbuilder-sdl-ttf-glue.dylib")
;;

And this allowed the build to complete. I'm not sure why it didn't see
the library itself. It works, but again... not out of the box.

Any thoughts/advice? Also, is there a specific support
email/tracker/sublist/forum for these system-specific issues? I feel a
bit embarrassed sending email to the main list 4 times in one day :D

thanks,
Oisín
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to