[Openmcl-devel] ffi-gen problem with va_list

taube at uiuc.edu taube at uiuc.edu
Mon Aug 16 07:47:55 PDT 2004


>This can be a complicated question, and there are utility programs
>whose primary job is to answer that sort of question, e.g.:
>shell> pkg-config --cflags glib-2.0

Yes, use pkg-config. Here is the contents of the gtk/C/populate.sh I made to do
the gtk2 ffi (its included in the tarball I posted). As I recall it parsed the
whole gtk tree without a hiccup:

--------------------populate.sh
#!/bin/sh
h-to-ffi.sh `pkg-config --cflags gtk+-2.0` /sw/include/gtk-2.0/gtk/gtk.h
--------------------


I used Fink to install pkg-config. Of course you also need to install all the
GTK developer packages aa well. I think this is the complete list:

 i   system-xfree86 2:4.3-2  [placeholder for user installed x11]
 i   system-xfree86-dev 2:4.3-2  [placeholder for user installed x11 development
tools]
 i   system-xfree86-shlibs 2:4.3-2  [placeholder for user installed x11 shared l
ibraries]
 i   gtk+2         2.2.4-3 GTK+ - multi-platform toolkit libraries
 i   gtk+2-dev     2.2.4-3 GTK+ - multi-platform toolkit development headers and
libraries
 i   gtk+2-shlibs  2.2.4-3 GTK+ - multi-platform toolkit shared libraries
 i   atk1          1.4.1-2 GTK+ - a11y development libraries and headers
 i   atk1-shlibs   1.4.1-2 GTK+ - a11y shared libraries
 i   glib2         2.2.3-2 GTK+ - low-level core shared libraries
 i   glib2-dev     2.2.3-2 GTK+ - low-level core development libraries and heade
rs
 i   glib2-shlibs  2.2.3-2 GTK+ - low-level core libraries
 i   pango1-xft2   1.2.5-2  GTK+ - i18n text libraries: for XFree86 (>= 4.3)
 i   pango1-xft2-dev  1.2.5-2  GTK+ - i18n text development headers and
libraries: for XFree86 (>= 4.3)
 i   pango1-xft2-shlibs  1.2.5-2 GTK+ - i18n text shared lib
raries: for XFree86 (>= 4.3)




More information about the Openmcl-devel mailing list