problem compiling gtk2 on a mac.




Hello, I am having a bit of a problem compiling gtk2 on a mac powerbook g4 running osx v 10.3.9

First of all, I got errors when trying to use darwinport. So I downloaded the source code, did a ./configure --without-libjpeg (I have a separate jpeg problem here as well) which went ok but then the make failed.

Both seem to be failing on gtkprintbackendcups.

Can anyone help me?



<------ darwinports ---------->

pomade:~/Documents/temporary alan$ sudo port install gqview
--->  Building gtk2 with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_x11_gtk2/work/gtk+-2.10.11" && make all CFLAGS+="-I/usr/X11R6/include"" returned error 2 Command output: gtkprintbackendcups.c:2322: error: request for member `num_groups' in something not a structure or union gtkprintbackendcups.c:2323: error: request for member `groups' in something not a structure or union
gtkprintbackendcups.c: At top level:
gtkprintbackendcups.c:2333: error: parse error before "ppd_file_t"
gtkprintbackendcups.c:2333: warning: no semicolon at end of struct or union
gtkprintbackendcups.c: In function `foreach_option_get_settings':
gtkprintbackendcups.c:2576: error: dereferencing pointer to incomplete type
gtkprintbackendcups.c: In function `cups_printer_get_settings_from_options':
gtkprintbackendcups.c:2628: error: storage size of `data' isn't known
gtkprintbackendcups.c: In function `cups_printer_list_papers':
gtkprintbackendcups.c:2724: error: `ppd_file_t' undeclared (first use in this function) gtkprintbackendcups.c:2725: error: `ppd_size_t' undeclared (first use in this function) gtkprintbackendcups.c:2725: error: `size' undeclared (first use in this function) gtkprintbackendcups.c:2729: error: `ppd_option_t' undeclared (first use in this function) gtkprintbackendcups.c:2729: error: `option' undeclared (first use in this function) gtkprintbackendcups.c:2730: error: `ppd_choice_t' undeclared (first use in this function) gtkprintbackendcups.c:2730: error: `choice' undeclared (first use in this function) gtkprintbackendcups.c:2740: error: request for member `num_sizes' in something not a structure or union gtkprintbackendcups.c:2742: error: request for member `sizes' in something not a structure or union
gtkprintbackendcups.c: In function `cups_printer_get_hard_margins':
gtkprintbackendcups.c:2783: error: `ppd_file_t' undeclared (first use in this function) gtkprintbackendcups.c:2789: error: request for member `custom_margins' in something not a structure or union gtkprintbackendcups.c:2790: error: request for member `custom_margins' in something not a structure or union gtkprintbackendcups.c:2791: error: request for member `custom_margins' in something not a structure or union gtkprintbackendcups.c:2792: error: request for member `custom_margins' in something not a structure or union
make[4]: *** [gtkprintbackendcups.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: gtk2
Error: Status 1 encountered during processing.
pomade:~/Documents/temporary alan$

<------ darwinports ---------->


<---- using make -------->

creating libprintbackend-lpr.la
(cd .libs && rm -f libprintbackend-lpr.la && ln -s ../libprintbackend-lpr.la libprintbackend-lpr.la)
Making all in cups
/bin/sh ../../../libtool --mode=link gcc -DG_DISABLE_DEPRECATED -g -O2 -Wall -o libprintbackend-cups.la -rpath /usr/local/lib/gtk-2.0/2.10.0/printbackends -avoid-version -module gtkprintbackendcups.lo gtkprintercups.lo gtkcupsutils.lo -L/usr/X11R6/lib -lXrender -lX11 -L/usr/local/lib -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lcairo -lm ../../../gtk/libgtk-x11-2.0.la -lcups -lssl -lcrypto
libtool: link: `gtkprintbackendcups.lo' is not a valid libtool object
make[4]: *** [libprintbackend-cups.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
pomade:~/Documents/temporary/gtk+-2.10.11 alan$

<---- using make -------->


--
Alan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]