Re: [Gtk-osx-users] Does GTKGLExt Work on iMAC? WAS: (no subject)




It compiles, the examples all compile and run, quite well with the exception of one issue (big one for me!). For some reason, no matter where (in a container, or at whatever level) the widget is, when the gl capabilities are added, it completely cover the entire top level window of the application.

The strangest thing is that the drawn objects are all proportioned (scaled, translated, and rotated) to the correct size (where the widget should be bound), but I believe there must be something wrong with the size of the gdkwindow being used. It seems to loose, or get re-sized to the windows width. 

I don't know if I have incorrectly enabled the mouse, but I seem to not be receiving any signals on that widget either.

I have tried replacing the NSView with NSOpenGLView, but it still exhibits the same issue. Once I get my build up and running again. I will certainly start taking a look at it again. I would love for the inplant version of our program to be 3D.

If any body has an idea of where and what part of the code may be causing this, I'll see if I can muster enough brain cells to understand it and see if I can't hack it.






i'm EMAILING FOR THE GREATER GOOD
Join me


> Date: Fri, 19 Mar 2010 11:30:12 +1100
> From: john curioussymbols com
> To: gtk-osx-users lists sourceforge net
> Subject: Re: [Gtk-osx-users] (no subject)
>
> Hi Shawn
>
> Does this mean you built GTKGLExt using jhbuild on Mac? Do you have some
> instructions?
>
> I would like to be able to build Digital Soda on Mac, but up to now I
> didn't think it was possible:
>
> http://linux.fjfi.cvut.cz/~taxman/projects/dsoda/
>
> Cheers
> JP
>
>
> Shawn Bakhtiar wrote:
> >
> >
> >
> > OK.... Got the latest 2.18.2 code downloaded and installed
> >
> > Patched... GTKGLext and installed
> >
> > Downloaded the latest source from MySQL compiled and installed
> >
> > Compiled my app everything is fine, but I get, when I try to run:
> >
> > is this the same as this:
> > http://trac.macports.org/ticket/19115
> >
> >
> >
> > bash-3.2$ orderdesk
> > User Name: shawn
> > User Cache Dir: /Users/shawn/.cache
> > User Data Dir: /Users/shawn/.local/share
> > User Config Dir: /Users/shawn/.config
> > System Data Dir[0]: /Users/shawn/gtk/inst/share
> > System Config Dir[0]: /Users/shawn/gtk/inst/etc/xdg
> > zoom: 0.000000
> > mult: 0.000000 0.000000
> > posi: 20 20
> > vdim: 1650 1275
> > odim: 0 0
> > cdim: 0 0
> > pdim: 0.000000 0.000000
> > pzom: 0.000000
> > ptlf: 0.000000 0.000000
> > pbrt: 0.000000 0.000000
> > pcnt: 0
> > curp: 0
> > pbrd: 0
> > Current Open Windows:
> > Main File: /Users/shawn/gtk/inst/share/isiod/macodie.ui
> > Base: /Users/shawn/gtk/inst/share/
> > Object: orderdesk
> > Page Logo: /Users/shawn/gtk/inst/share/isiod/pixmaps/ISI40.png
> > Page Bkgd: /Users/shawn/gtk/inst/share/isiod/pixmaps/ISI16-1.png
> > Main Logo: /Users/shawn/gtk/inst/share/isiod/pixmaps/ISILOGO-TRANS.png
> > Img Width: 0.000000 0.000000
> >
> >
> > dyld: lazy symbol binding failed: Symbol not found:
> > _cairo_quartz_font_face_create_for_atsu_font_id
> > Referenced from: /Users/shawn/gtk/inst/lib/libpangocairo-1.0.0.dylib
> > Expected in: flat namespace
> >
> > dyld: Symbol not found: _cairo_quartz_font_face_create_for_atsu_font_id
> > Referenced from: /Users/shawn/gtk/inst/lib/libpangocairo-1.0.0.dylib
> > Expected in: flat namespace
> >
> > Trace/BPT trap
> > bash-3.2$ gdb src/.libs/orderdesk
> > GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51
> > UTC 2009)
> > Copyright 2004 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and
> > you are
> > welcome to change it and/or distribute copies of it under certain
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB. Type "show warranty" for
> > details.
> > This GDB was configured as "x86_64-apple-darwin"...Reading symbols for
> > shared libraries .............................. done
> >
> > (gdb) run
> > Starting program: /Users/shawn/Projects/isiod/src/.libs/orderdesk
> > Reading symbols for shared libraries
> > .++++++++++++++++++++++.++++++...........................................................................................
> > done
> > Reading symbols for shared libraries . done
> > User Name: shawn
> > User Cache Dir: /Users/shawn/.cache
> > User Data Dir: /Users/shawn/.local/share
> > User Config Dir: /Users/shawn/.config
> > System Data Dir[0]: /Users/shawn/gtk/inst/share
> > System Config Dir[0]: /Users/shawn/gtk/inst/etc/xdg
> > zoom: 0.000000
> > mult: 0.000000 0.000000
> > posi: 20 20
> > vdim: 1650 1275
> > odim: 0 0
> > cdim: 0 0
> > pdim: 0.000000 0.000000
> > pzom: 0.000000
> > ptlf: 0.000000 0.000000
> > pbrt: 0.000000 0.000000
> > pcnt: 0
> > curp: 0
> > pbrd: 0
> > Current Open Windows:
> > Main File: /Users/shawn/gtk/inst/share/isiod/macodie.ui
> > Base: /Users/shawn/gtk/inst/share/
> > Object: orderdesk
> > Page Logo: /Users/shawn/gtk/inst/share/isiod/pixmaps/ISI40.png
> > Page Bkgd: /Users/shawn/gtk/inst/share/isiod/pixmaps/ISI16-1.png
> > Main Logo: /Users/shawn/gtk/inst/share/isiod/pixmaps/ISILOGO-TRANS.png
> > Img Width: 0.000000 0.000000
> >
> >
> > Reading symbols for shared libraries . done
> > Reading symbols for shared libraries . done
> > Reading symbols for shared libraries . done
> > Reading symbols for shared libraries . done
> > dyld: lazy symbol binding failed: Symbol not found:
> > _cairo_quartz_font_face_create_for_atsu_font_id
> > Referenced from: /Users/shawn/gtk/inst/lib/libpangocairo-1.0.0.dylib
> > Expected in: flat namespace
> >
> > dyld: Symbol not found: _cairo_quartz_font_face_create_for_atsu_font_id
> > Referenced from: /Users/shawn/gtk/inst/lib/libpangocairo-1.0.0.dylib
> > Expected in: flat namespace
> >
> >
> > Program received signal SIGTRAP, Trace/breakpoint trap.
> > 0x00007fff5fc01065 in __dyld_dyld_fatal_error ()
> > (gdb) bt
> > #0 0x00007fff5fc01065 in __dyld_dyld_fatal_error ()
> > #1 0x00007fff5fc04721 in __dyld__ZN4dyld4haltEPKc ()
> > #2 0x00007fff5fc047b1 in
> > __dyld__ZN4dyld18fastBindLazySymbolEPP11ImageLoaderm ()
> > #3 0x00007fff84bd8522 in dyld_stub_binder ()
> > #4 0x0000000100983008 in identity.100473 ()
> > #5 0x0000000100976383 in _pango_cairo_font_private_get_scaled_font ()
> > #6 0x0000000100977809 in
> > _pango_cairo_font_private_glyph_extents_cache_init ()
> > #7 0x0000000100977a6e in _pango_cairo_font_private_get_glyph_extents ()
> > #8 0x000000010097d933 in pango_cairo_atsui_font_get_glyph_extents ()
> > #9 0x00000001009def32 in pango_font_get_glyph_extents ()
> > #10 0x000000010097e4c8 in set_glyph ()
> > #11 0x000000010097e720 in basic_engine_shape ()
> > #12 0x00000001009e936b in _pango_engine_shape_shape ()
> > #13 0x0000000100a01435 in pango_shape ()
> > #14 0x00000001009f2057 in shape_run ()
> > #15 0x00000001009f22f3 in process_item ()
> > #16 0x00000001009f2c13 in process_line ()
> > #17 0x00000001009f36dc in pango_layout_check_lines ()
> > #18 0x00000001009ef373 in pango_layout_get_unknown_glyphs_count ()
> > #19 0x00000001002b6a08 in find_invisible_char ()
> > #20 0x00000001002b6a9f in gtk_entry_init ()
> > #21 0x0000000100d81328 in g_type_create_instance ()
> > #22 0x0000000100d66470 in g_object_constructor ()
> > #23 0x0000000100d65929 in g_object_newv ()
> > #24 0x000000010026de36 in _gtk_builder_construct ()
> > #25 0x0000000100270aa0 in builder_construct ()
> > #26 0x0000000100272725 in end_element ()
> > #27 0x0000000100df374e in g_markup_parse_context_parse ()
> > #28 0x0000000100272e0f in _gtk_builder_parser_parse_buffer ()
> > #29 0x000000010026e6ec in gtk_builder_add_from_file ()
> > #30 0x00000001000df063 in isi_display_init (self=0x101866400) at
> > isidisplay.c:1240
> > #31 0x0000000100031c82 in isi_app_initialize_default_interface
> > (self=0x102019000) at isiapp.c:9430
> > #32 0x000000010000ae31 in main (argc=1, argv=0x7fff5fbfe290) at
> > isimain.c:56
> > (gdb) up
> > #1 0x00007fff5fc04721 in __dyld__ZN4dyld4haltEPKc ()
> >
> > [...]
> >
> >
> > #27 0x0000000100df374e in g_markup_parse_context_parse ()
> > (gdb)
> > #28 0x0000000100272e0f in _gtk_builder_parser_parse_buffer ()
> > (gdb)
> > #29 0x000000010026e6ec in gtk_builder_add_from_file ()
> > (gdb)
> > #30 0x00000001000df063 in isi_display_init (self=0x101866400) at
> > isidisplay.c:1240
> > 1240 gtk_builder_add_from_file (self->priv->xml,
> > self->priv->xml_filename, NULL);
> > (gdb)
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > i'm EMAILING FOR THE GREATER GOOD
> > Join me
> > <http://im.live.com/Messenger/IM/Home/?source=EML_WLHM_GreaterGood>
> >
> > ------------------------------------------------------------------------
> >
> > ------------------------------------------------------------------------------
> > Download Intel&#174; Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Gtk-osx-users mailing list
> > Gtk-osx-users lists sourceforge net
> > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users
> >
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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]