Re: [gtk-osx-users] Latest issues with gtk-osx




On Apr 1, 2013, at 9:27 AM, Miroslav Rajcic <mrajcic hotmail com> wrote:

Just tried to rebuild latest GTK for OS X (tested with GTK2, 32-bit), I am using OSX 10.7.5, building 
modulesets-stable.
Note that I've downloaded latest gtk-osx-build-setup.sh from GitHub.

Few issues:

1. jhbuild fails at trying to build cups (read in git commits that it should skip building cups if not on 
Tiger?)

Compiling pap.c...

[SNIP]
That was a git oops, fixed yesterday afternoon. Rerun gtk-osx-build-install.sh to update and correct 
.jhbuildrc.

2. building gtksourceview library fails (this used to work long time ago):

 GEN    stamp-gtksourceview-typebuiltins.c
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:131: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_TAB     | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:132: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_NEWLINE | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:133: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_NBSP | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:134: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_LEADING | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:135: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_TEXT | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:136: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_TRAILING) '
  GEN    stamp-gtksourceview-typebuiltins.h
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:131: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_TAB     | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:132: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_NEWLINE | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:133: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_NBSP | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:134: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_LEADING | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:135: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_TEXT | \ '
/Users/helix/gtk/inst/bin/glib-mkenums: gtksourceview.h:136: Failed to parse `                              
       GTK_SOURCE_DRAW_SPACES_TRAILING) '
...
 CC     gtksourceview-i18n.lo
gtksourceview-i18n.c: In function 'get_locale_dir':
gtksourceview-i18n.c:48: warning: implicit declaration of function 'quartz_application_get_bundle_id'
gtksourceview-i18n.c:48: warning: nested extern declaration of 'quartz_application_get_bundle_id'
gtksourceview-i18n.c:48: warning: comparison between pointer and integer
gtksourceview-i18n.c:50: warning: implicit declaration of function 'quartz_application_get_resource_path'
gtksourceview-i18n.c:50: warning: nested extern declaration of 'quartz_application_get_resource_path'
gtksourceview-i18n.c:50: warning: passing argument 1 of 'g_build_filename' makes pointer from integer 
without a cast
...
  CCLD   libgtksourceview-2.0.la
Undefined symbols for architecture i386:
  "_quartz_application_get_bundle_id", referenced from:
      _get_locale_dir in gtksourceview-i18n.o
  "_quartz_application_get_resource_path", referenced from:
      _get_locale_dir in gtksourceview-i18n.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make[4]: *** [libgtksourceview-2.0.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Looks like gtksourceview is using an obsolete version of gtkmacintegration. File a bug with them. The current 
names of those functions are
  gtkosx_application_get_bundle_id
  gtkosx_application_get_resource_path

Phil Chimento changed it the last time; I've CC'd him.

3. Issue previously reported in the forum, seen when bundling the application:
"Warning, found X11 library dependency, you most likely don't want that: /usr/X11/lib/libfreetype.6.dylib
Warning, library not available in any prefix: /usr/X11/lib/libfreetype.6.dylib"

This issue is due to cairo using freetype backend, and it was solved by adding the following line to 
.jhbuild-custom file:
module_autogenargs['cairo'] = '--enable-ft=no'

Interesting. I'd think that --without-x would do the trick, but I'll experiment with that a bit. IIRC 
everything that demands ft does so through Pango rather than cairo, but since there's also pangocairo to 
worry about I'm not completely sure.


4. Another previously reported issue in forum about fonts working badly (drawing square boxes instead 
letters) was resolved per suggestion of another user to add
following lines in the launcher.sh:
export PANGO_LIBDIR="$bundle_lib"
export PANGO_SYSCONFDIR="$bundle_etc" 

Perhaps you can update your launcher example to add those lines:
https://github.com/jralls/gtk-mac-bundler/blob/master/examples/launcher.sh 

Just committed that yesterday. ;-)


Any chance to fix gtksourceview ?

See above. You can do the edit locally in the meantime.

Regards,
John Ralls



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