Re: [Gtk-osx-users] [GtkGLExt] Building latest source for Quartz?





Yes... I have been running into the same problem with the GtkGLExt I think I have the latest patch too. I am very close to moving to the next phase of this project and I desperately would like to use GtkGLExt, but I have not been able to figure it out.

Actually I was just doing a fresh build using the below method and ran into this:

gcc -std=gnu99  -I.   -I/Users/shawn/gtk/inst/include -I/Developer/SDKs/MacOSX10.5.sdk/usr/include  -arch i386 -I/Developer/SDKs/MacOSX10.5.sdk/usr/include -arch x86_64 -mmacosx-version-min=10.6 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[3]: *** [gl_avltree_oset.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2




As for the GtkGLExt so far here is what I have tried, other than the examples which all exhibit the same incorrect behavior:


     /* Try double-buffered visual */
     glconfig = gdk_gl_config_new_by_mode (GDK_GL_MODE_RGB    |
                                           GDK_GL_MODE_DEPTH  |
                                           GDK_GL_MODE_DOUBLE);
     if (glconfig == NULL)
     {
         g_print ("*** Cannot find the double-buffered visual.\n");
         g_print ("*** Trying single-buffered visual.\n");
         
         /* Try single-buffered visual */
         glconfig = gdk_gl_config_new_by_mode (GDK_GL_MODE_RGB   |
                                               GDK_GL_MODE_DEPTH);
         if (glconfig == NULL)
         {

             /* The Logo */
             g_object_get((GObject*)self->display,"main_logo",&file_name,NULL);
             GtkWidget*  logo = gtk_image_new_from_file (file_name);
             gtk_box_pack_start(main_hbox,logo,FALSE,FALSE,0);
             gtk_widget_show (logo);
         }

     } 

     
     
     
     if(glconfig != NULL){

         GtkWidget * drawing_area = gtk_drawing_area_new ();
         gtk_widget_set_size_request (drawing_area,100, 100);
         
         

         /* Set OpenGL-capability to the widget. */
         gtk_widget_set_gl_capability (drawing_area,
                                       glconfig,
                                       NULL,
                                       TRUE,
                                       GDK_GL_RGBA_TYPE);
         
  ....
      
         gtk_box_pack_end (GTK_BOX (main_hbox), drawing_area, TRUE, TRUE, 0);
         
         gtk_widget_show (drawing_area);
     
     }
     



In the above example the drawing_area covers the ENTIRE window and ALL other widgets. Basically the window is a black square. The strange thing is that the proportions of of the graphic are correct. In other words the graphic was translated,scaled, and rotated correctly, it is that its window was the ENTIRE window.



i'm EMAILING FOR THE GREATER GOOD
Join me


> Date: Thu, 18 Mar 2010 22:12:20 +0100
> From: dacobi juvul com
> To: shashaness hotmail com
> CC: gtkglext-list gnome org
> Subject: Re: [GtkGLExt] Building latest source for Quartz?
>
> Shawn Bakhtiar wrote:
>
> I was thinking about only GtkGlExt, but I have it all up and running
> GTK+ (setup_sdk("10.6","10.6",["i386"])) and GtkGlExt (fixed
> configure.ac to use automake 1.10.1), but still the same artifact when
> using an OpenGL view (widget fills entire window...)
>
> Best Regards
> Jacob
> > Try using:
> >
> > setup_sdk(target="10.5", sdk_version="10.5", architectures=["i386"])
> >
> > My System version
> > System Version: Mac OS X 10.6.2 (10C540)
> > Kernel Version: Darwin 10.2.0
> > GTK version: 2.18.2
> >
> > It works for me, and to some extend works well with 10.5, except for
> > printing. The print drivers tend to be very slow (and crash on 10.5)
> > when loading the printer info.
> >
> > But before that you may want to run ./configure without any arguments
> > other than perhaps --prefix=/where/you/installed, which is usually
> > /Users/youruser/gtk/inst.
> >
> > All you should have to do is run "jhbuild build ige-mac-integration"
> > and the integration package should be loaded.
> >
> > Hope this helps.
> >
> >
> >
> > i'm EMAILING FOR THE GREATER GOOD
> > Join me
> > <http://im.live.com/Messenger/IM/Home/?source=EML_WLHM_GreaterGood>
> >
> >
> >
> > > Date: Thu, 18 Mar 2010 02:49:30 +0100
> > > From: dacobi juvul com
> > > To: gtkglext-list gnome org
> > > Subject: [GtkGLExt] Building latest source for Quartz?
> > >
> > > Hello
> > >
> > > I've just downloaded the latests source from git and applied the
> > patches.
> > > I'm trying to build under a fresh i386 gtk jhbuild on OS X SL.
> > >
> > > simply running sh bootstrap && ./configure --with-gdktarget=quartz
> > > fails with this:
> > >
> > > checking for a BSD-compatible install... /usr/bin/install -c
> > > checking whether build environment is sane... yes
> > > checking for a thread-safe mkdir -p... ./install-sh -c -d
> > > checking for gawk... no
> > > checking for mawk... no
> > > checking for nawk... no
> > > checking for awk... awk
> > > checking whether make sets $(MAKE)... yes
> > > configure: error: cannot run /bin/sh ./config.sub
> > >
> > > What do I need to do to compile for Snow Leopard?
> > > _______________________________________________
> > > gtkglext-list mailing list
> > > gtkglext-list gnome org
> > > http://mail.gnome.org/mailman/listinfo/gtkglext-list
>
> _______________________________________________
> gtkglext-list mailing list
> gtkglext-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkglext-list






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