Thread: [Gtk-osx-users] ige-mac-integration - keyboard shortcut modifiers
Status: Beta
Brought to you by:
jralls
From: MaSch <ma...@go...> - 2010-12-17 22:27:35
|
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 ? Regards Marco |
From: John R. <jr...@ce...> - 2010-12-18 03:23:50
|
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. Regards, John Ralls |
From: Shawn B. <sha...@ho...> - 2011-03-18 16:30:56
|
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: jr...@ce... > Date: Fri, 17 Dec 2010 19:23:36 -0800 > To: gtk...@li... > 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. > > Regards, > John Ralls > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gtk-osx-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users |
From: John R. <jr...@ce...> - 2011-03-18 19:09:03
|
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: jr...@ce... > > Date: Fri, 17 Dec 2010 19:23:36 -0800 > > To: gtk...@li... > > 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 |
From: Shawn B. <sha...@ho...> - 2011-03-18 19:58:16
|
Sorry.... :*S This is interesting: setup_sdk(target="10.6", sdk_version="10.6", architectures=["x86_64"]) after having rm -rf all the dirs/files and I still get: 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 which results in (from what your saying) this: lipo: can't open input file: /var/folders/iJ/iJpCvobqGXG77Vueh0f7rE+++TI/-Tmp-//cc9lPNly.out (No such file or directory) make[1]: *** [Expat.o] Error 2 make: *** [subdirs] Error 2 I'm going to try it again, just in case I did not clean out or clear out something correctly, but the previous stuff seems to have compiled correctly IE: /bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -arch x86_64 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/Users/shawn/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c /bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -arch x86_64 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/Users/shawn/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -DHAVE_EXPAT_CONFIG_H -o lib/xmltok.lo -c lib/xmltok.c /bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -arch x86_64 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/Users/shawn/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -DHAVE_EXPAT_CONFIG_H -o lib/xmlrole.lo -c lib/xmlrole.c How can I explicitly define the architecture using the Makefile.PL? as always, thanks for the help :) In the .jhbuild-custom file, > From: jr...@ce... > Date: Fri, 18 Mar 2011 12:08:53 -0700 > To: gtk...@li... > Subject: 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? > > > > > > > > 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...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users |
From: Shawn B. <sha...@ho...> - 2011-03-18 20:25:09
|
ON: lipo: can't open input file: /var/folders/iJ/iJpCvobqGXG77Vueh0f7rE+++TI/-Tmp-//ccyWQQaA.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" choice: 2 <-- Go to shell At the shell edit both the Makefile and Expat/Makefile, and delete all the '-arch i386 -arch ppc' parameters. I used ':%s/-arch i386 -arch ppc//g' > make > make install > exit select option [3] Give up on module, I'm now building the core modules. Thanks for getting me on the right track John :) From: sha...@ho... To: gtk...@li... Date: Fri, 18 Mar 2011 15:58:08 -0400 Subject: Re: [Gtk-osx-users] can't rebuild invironment using jhbuild Sorry.... :*S This is interesting: setup_sdk(target="10.6", sdk_version="10.6", architectures=["x86_64"]) after having rm -rf all the dirs/files and I still get: 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 which results in (from what your saying) this: lipo: can't open input file: /var/folders/iJ/iJpCvobqGXG77Vueh0f7rE+++TI/-Tmp-//cc9lPNly.out (No such file or directory) make[1]: *** [Expat.o] Error 2 make: *** [subdirs] Error 2 I'm going to try it again, just in case I did not clean out or clear out something correctly, but the previous stuff seems to have compiled correctly IE: /bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -arch x86_64 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/Users/shawn/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c /bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -arch x86_64 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/Users/shawn/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -DHAVE_EXPAT_CONFIG_H -o lib/xmltok.lo -c lib/xmltok.c /bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -arch x86_64 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/Users/shawn/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -DHAVE_EXPAT_CONFIG_H -o lib/xmlrole.lo -c lib/xmlrole.c How can I explicitly define the architecture using the Makefile.PL? as always, thanks for the help :) In the .jhbuild-custom file, > From: jr...@ce... > Date: Fri, 18 Mar 2011 12:08:53 -0700 > To: gtk...@li... > Subject: 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? > > > > > > > > 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...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users ------------------------------------------------------------------------------ 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...@li... https://lists.sourceforge.net/lists/listinfo/gtk-osx-users |