Re: [Gtk-osx-users] can't rebuild invironment using jhbuild



On Mar 18, 2011, at 9:30 AM, Shawn Bakhtiar wrote:

> 
> Help!
> 
> I was using GTK on OS X fine until I upgraded to XCode 4. After having upgraded, my program would not compile complaining about some missing headers. 
> 
> dbf.c:11:23: error: sys/types.h: No such file or directory
> dbf.c:12:19: error: stdio.h: No such file or directory
> dbf.c:13:20: error: stdlib.h: No such file or directory
> dbf.c:14:20: error: string.h: No such file or directory
> dbf.c:15:19: error: fcntl.h: No such file or directory
> dbf.c:16:19: error: ctype.h: No such file or directory
> dbf.c:17:18: error: time.h: No such file or directory
> 
> So I figured might as well get the latest sources and rebuild the GTK environment to see if I run into the same problems. I figured the upgrade may have bashed some toolsets.
> 
> However, I am not able to re-build GTK, Here is what I did:
> 
>   551  rm -rf .cache
>   552  rm -rf gtk
>   553  rm -rf Source
>   554  rm -rf .jhbuildrc-custom 
>   555  rm -rf .jhbuildrc*
> 
> Downloaded and ran the latest: gtk-osx-build-setup.sh 
> 
> Then, 
> 
> jhbuild bootstrap
> 
> Then,
> 
> jhbuild  build meta-gtk-osx-bootstrap
> 
> 
> /usr/bin/perl /System/Library/Perl/5.10.0/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.10.0/ExtUtils/typemap -typemap typemap  Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
> gcc-4.2 -c  -I/Users/shawn/gtk/inst/include -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os   -DVERSION=\"2.36\" -DXS_VERSION=\"2.36\"  "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"   Expat.c
> Expat.xs: In function ‘append_error’:
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘XML_Size’
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘XML_Size’
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘XML_Index’
> Expat.xs: In function ‘parse_stream’:
> Expat.xs:358: warning: format not a string literal and no format arguments
> Expat.xs:388: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘startElement’:
> Expat.xs:501: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘externalEntityRef’:
> Expat.xs:1030: warning: format not a string literal and no format arguments
> Expat.xs:1032: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘unknownEncoding’:
> Expat.xs:1167: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_ParserCreate’:
> Expat.xs:1284: warning: format not a string literal and no format arguments
> Expat.xs:1286: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_GenerateNSName’:
> Expat.xs:1898: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_LoadEncoding’:
> Expat.xs:2032: warning: format not a string literal and no format arguments
> Expat.xs:2043: warning: format not a string literal and no format arguments
> Expat.xs:2044: warning: format not a string literal and no format arguments
> Expat.xs:2052: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘append_error’:
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘XML_Size’
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘XML_Size’
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘XML_Index’
> Expat.xs: In function ‘parse_stream’:
> Expat.xs:358: warning: format not a string literal and no format arguments
> Expat.xs:388: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘startElement’:
> Expat.xs:501: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘externalEntityRef’:
> Expat.xs:1030: warning: format not a string literal and no format arguments
> Expat.xs:1032: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘unknownEncoding’:
> Expat.xs:1167: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_ParserCreate’:
> Expat.xs:1284: warning: format not a string literal and no format arguments
> Expat.xs:1286: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_GenerateNSName’:
> Expat.xs:1898: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_LoadEncoding’:
> Expat.xs:2032: warning: format not a string literal and no format arguments
> Expat.xs:2043: warning: format not a string literal and no format arguments
> Expat.xs:2044: warning: format not a string literal and no format arguments
> Expat.xs:2052: warning: format not a string literal and no format arguments
> /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
> Installed assemblers are:
> /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
> /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
> Expat.xs: In function ‘append_error’:
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘XML_Size’
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘XML_Size’
> Expat.xs:220: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘XML_Index’
> Expat.xs: In function ‘parse_stream’:
> Expat.xs:358: warning: format not a string literal and no format arguments
> Expat.xs:388: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘startElement’:
> Expat.xs:501: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘externalEntityRef’:
> Expat.xs:1030: warning: format not a string literal and no format arguments
> Expat.xs:1032: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘unknownEncoding’:
> Expat.xs:1167: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_ParserCreate’:
> Expat.xs:1284: warning: format not a string literal and no format arguments
> Expat.xs:1286: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_GenerateNSName’:
> Expat.xs:1898: warning: format not a string literal and no format arguments
> Expat.xs: In function ‘XS_XML__Parser__Expat_LoadEncoding’:
> Expat.xs:2032: warning: format not a string literal and no format arguments
> Expat.xs:2043: warning: format not a string literal and no format arguments
> Expat.xs:2044: warning: format not a string literal and no format arguments
> Expat.xs:2052: warning: format not a string literal and no format arguments
> lipo: can't open input file: /var/folders/iJ/iJpCvobqGXG77Vueh0f7rE+++TI/-Tmp-//ccx0WPI0.out (No such file or directory)
> make[1]: *** [Expat.o] Error 2
> make: *** [subdirs] Error 2
> *** Error during phase build of perl-xml-parser: ########## Error running make LD_RUN_PATH= *** [8/13]
> 
>   [1] Rerun phase build
>   [2] Ignore error and continue to install
>   [3] Give up on module
>   [4] Start shell
>   [5] Reload configuration
>   [6] Go to phase "wipe directory and start over"
> 
> 
> 
> 
> Why is lipo unable to find the intermediary file it needs? I am going to re-do it with 
> 
> setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"])
> 
> Sorry I have not followed the list, is ige-mac-integration working with 64bit? And do I have to now Use the GTKApplication now?
> 
> 
> 
> > From: jralls ceridwen us
> > Date: Fri, 17 Dec 2010 19:23:36 -0800
> > To: gtk-osx-users lists sourceforge net
> > Subject: Re: [Gtk-osx-users] ige-mac-integration - keyboard shortcut	modifiers
> > 
> > 
> > On Dec 17, 2010, at 2:27 PM, MaSch wrote:
> > 
> > > Hello folks,
> > > 
> > > firstly I want to thank everyone involved for providing
> > > ige-mac-integration. It boosts usability a lot for the users.
> > > 
> > > I'm currently integrating ige-mac-integration to an gtk+ osx port (C).
> > > I'm using gtkosxapplication instead of the old stuff ... I get the
> > > menubar and my notifications set-up - all fine,
> > > but I noticed that IF I use the old "ige_mac_menu_set_menu_bar"
> > > function, all my shortcuts get automatically mapped from Ctrl+a to Cmd+a
> > > and so on.
> > > Now like mentioned before I don't want to use the old API, so I try to
> > > use gtk_osxapplication_set_menu_bar which does not map the key modifiers
> > > automatically, but otherwise works fine too.
> > > 
> > > Can I achieve the old maping behaviour with the new API somehow ? Or do
> > > I have to set the shortcuts manually, if so how do I do that ?
> > 
> > As I wrote in the documentation, "shortcuts" are handled the Gtk way: Accelerator maps for menus and Bindings for everything else.
> > 
> > Since you meet the mental prerequisites of being an experienced Gtk developer, I don't need to tell you any more. Right?
> > 
> > If that's not the case, don't worry: Both are well covered in the Gtk documentation.
> > 
> > 

Please don't reply to messages when you start a new thread. Mail.app will fill in the address for you with just a few keystrokes.

I've installed XCode4 but haven't tried it out yet. Since Apple replaced a bunch of system tools and libraries I copied /usr off to a safe place before I upgraded just in case something like this might happen. Looks like there's some new typedefs somewhere that aren't getting through.

Lipo couldn't do its thing because the compile failed, duh.

Yes, ige-mac-integration works with x86_64, but you have to use GtkOSXApplication, not ige-mac-menu and friends. GtkApplication is optional, but I haven't tested it with GtkOSXApplication yet so I don't know whether they will work together.

Regards,
John Ralls


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Gtk-osx-users mailing list
Gtk-osx-users lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtk-osx-users



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