View previous topic :: View next topic |
Author |
Message |
SuicidJky
Joined: 10 Dec 2007 Posts: 6
|
Posted: Tue Dec 11, 2007 1:23 pm Post subject: gtkDgl Compile problem |
|
|
When I go to compile gtkgl with dsss I get this error:
Code: | srcgl\gtkglc\gl.d(1192): found 'ref' when expecting ')'
srcgl\gtkglc\gl.d(1192): semicolon expected following function declaration
srcgl\gtkglc\gl.d(1626): found 'ref' when expecting ')'
srcgl\gtkglc\gl.d(1626): semicolon expected following function declaration |
and when I try with compd I get this one:
Code: | srcgl\glgdk\GLConfig.d(62): module glgdktypes cannot read file 'gtkglc\glgdktypes.d' |
I have tried using preview5 and the latest svn revision with the same results, is there something I am missing here? |
|
Back to top |
|
|
ShprotX
Joined: 28 Aug 2007 Posts: 24 Location: Ukraine
|
|
Back to top |
|
|
SuicidJky
Joined: 10 Dec 2007 Posts: 6
|
Posted: Tue Dec 11, 2007 6:48 pm Post subject: |
|
|
Thanks, git is kind of a pain on windows though, but i got it compiled and get symbol errors, I'm guessing this is a problem with my setup though. It's nice to see the dsss conf's in there etc. |
|
Back to top |
|
|
SuicidJky
Joined: 10 Dec 2007 Posts: 6
|
Posted: Wed Dec 12, 2007 10:36 am Post subject: |
|
|
I am getting these errors with SimpleGL.d does anyone know why?
Code: | SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glFlush
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glClear
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glLoadIdentity
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _gluLookAt
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glBegin
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glColor3f
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glVertex3f
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glEnd
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glViewport
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _glMatrixMode
SimpleGL.obj(SimpleGL)
Error 42: Symbol Undefined _gluPerspective |
|
|
Back to top |
|
|
Auria
Joined: 29 May 2006 Posts: 44
|
Posted: Wed Dec 12, 2007 12:02 pm Post subject: |
|
|
Seems like you need to link against OpenGL. |
|
Back to top |
|
|
SuicidJky
Joined: 10 Dec 2007 Posts: 6
|
Posted: Wed Dec 12, 2007 2:31 pm Post subject: |
|
|
Code: | C:\d\duitest>dmd SimpleGL.d -IC:\gtkD-pre6\gtkD\src -IC:\gtkD-pre6\gtkD\srcgl -L+C:\dmd\lib\+phobos+advapi32+gtkd+gtkdgl |
is the code I am using to link it, the libs are in the right spot because gdkd apps seem to compile fine. |
|
Back to top |
|
|
kaarna
Joined: 03 Apr 2006 Posts: 92 Location: Finland
|
|
Back to top |
|
|
kaarna
Joined: 03 Apr 2006 Posts: 92 Location: Finland
|
Posted: Thu Feb 05, 2009 6:22 pm Post subject: |
|
|
And now it's committed.
I couldn't find a place where this fix should go in the wrapper, so either such place should be found, or then we'll have to apply this everytime we wrap srcgl.
(By the way, gtkglext (the C version) still doesn't work with the native quartz OS X GTK+ framework, so you'll have to use X11 if you want OpenGL on Mac OS X. I'll test if X11 works on OS X, later, using Macports.) |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Fri Feb 06, 2009 1:42 pm Post subject: |
|
|
kaarna wrote: | And now it's committed.
I couldn't find a place where this fix should go in the wrapper, so either such place should be found, or then we'll have to apply this everytime we wrap srcgl. |
Those two files are not generated by the wrapper, maybe it's commented out but i wouldn't know where. |
|
Back to top |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Sat Feb 07, 2009 11:06 pm Post subject: |
|
|
when I used gtkD, opengl worked fine on Windows for me with Derelict. |
|
Back to top |
|
|
|