[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Gtk2 egg on OS X
From: |
Tobia Conforto |
Subject: |
[Chicken-users] Gtk2 egg on OS X |
Date: |
Mon, 30 Jun 2008 18:41:50 +0200 |
Hi
I'm trying to compile the gtk2 egg (release/3/gtk2/trunk, svn head)
with Chicken 3.2.0 (will try 3.3.0 shortly!) on OS X 10.5, using the
latest MacPorts gtk2 libriaries, but I'm having all sorts of problems.
Some of them I managed to solve or work around, see the Makefile diff
below. Quick rundown: the "cleaner1" sed script was missing the first
token of its input; strip would complain for whatever reason so I
disabled it; MacPorts' pkg-config wanted the -only-I versions of its
switches; split doesn't have the -d option on Darwin, so I wrote a
quick hack in the Makefile; and gtk2-extract-all-types was trying to
open thousands of files, so I had to set ulimit -n 4096 by hand before
calling chicken-setup. These are all quick hacks, just to try and get
the egg to compile. As soon as it does, I mean to correct them
properly.
Now I'm stuck on a weird error:
csc -C -DXTHREADS -C -I/opt/local/include/gtk-2.0 -C -I/opt/local/lib/
gtk-2.0/include -C -I/opt/local/include/atk-1.0 -C -I/opt/local/
include/cairo -C -I/opt/local/include/pango-1.0 -C -I/opt/local/
include/glib-2.0 -C -I/opt/local/lib/glib-2.0/include -C -I/opt/local/
include -C -I/opt/local/include/freetype2 -C -I/opt/local/include/
libpng12 -C -I/usr/X11/include -L -R/usr/X11/lib -L -Wl,-
framework,CoreServices,-framework,ApplicationServices -L -L/opt/local/
lib -L -L/usr/X11/lib -L -lgtk-x11-2.0 -L -lgdk-x11-2.0 -L -latk-1.0 -
L -lgdk_pixbuf-2.0 -L -lpangocairo-1.0 -L -lcairo -L -lSM -L -lICE -L -
lpangoft2-1.0 -L -lpango-1.0 -L -lm -L -lgobject-2.0 -L -lgmodule-2.0 -
L -lglib-2.0 -L -lintl -L -liconv -L -lfreetype -L -lz -L -lfontconfig
-L -lexpat -L -lpng12 -L -lXrender -L -lX11 -run-time-macros -o wrap
wrap.scm
Error: unbound variable: |???|
Call history:
<syntax> (begin (require-for-syntax (quote gtk2-gobject)))
<syntax> (require-for-syntax (quote gtk2-gobject))
<syntax> (##core#require-for-syntax (quote gtk2-gobject))
<syntax> (quote gtk2-gobject) <--
*** Shell command terminated with exit status 1: /usr/local/bin/
chicken wrap.scm -output-file wrap.c -quiet -run-time-macros
I'm lost. Any idea?
-Tobia
===================================================================
--- Makefile (revision 11127)
+++ Makefile (working copy)
@@ -1,4 +1,4 @@
-cleaner1=tr '\n' ' ' | tr -s ' ' | sed -e 's/ $$//' -e 's/ / '
+cleaner1=tr '\n' ' ' | tr -s ' ' | sed -e 's/ $$//' -e 's/^\| / '
cleaner2=' /g'
gtkCFLAGS=$(shell pkg-config --cflags gtk+-2.0 | $(cleaner1)-C$
(cleaner2))
@@ -24,7 +24,7 @@
%.so: %.scm
$(CSCLD) -s -o $@ $<
- strip $@
+# strip $@
gtk2/wrap-%.scm: wrap.log
@echo target $@ # required to force the dependency to take hold?
@@ -67,14 +67,17 @@
gtk2-extract-all-types: gtk2-extract-all-types.scm
$(CSC) -o $@ $<
+# ulimit -n 4096
gdk-types: gtk2-extract-all-types
- ./gtk2-extract-all-types 'gdk_.*_get_type' `pkg-config --cflags gtk
+-2.0` > $@; \
- split -l 60 -d $@ address@hidden
+ ./gtk2-extract-all-types 'gdk_.*_get_type' `pkg-config --cflags-only-
I gtk+-2.0` > $@ ; \
+ split -l 60 $@ address@hidden ; \
+ i=0; for f in address@hidden; do mv $$f address@hidden %02d $$i`; let
++i; done
gtk-types: gtk2-extract-all-types
- ./gtk2-extract-all-types 'gtk_.*_get_type' `pkg-config --cflags gtk
+-2.0` > $@; \
- split -l 60 -d $@ address@hidden
+ ./gtk2-extract-all-types 'gtk_.*_get_type' `pkg-config --cflags-only-
I gtk+-2.0` > $@ ; \
+ split -l 60 $@ address@hidden ; \
+ i=0; for f in address@hidden; do mv $$f address@hidden %02d $$i`; let
++i; done
wrap: wrap.scm gdk-types gtk-types
$(CSCLD) -run-time-macros -o $@ wrap.scm
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-users] Gtk2 egg on OS X,
Tobia Conforto <=