Thread overview | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
April 01, 2013 does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
I built GtkD following instructions from https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows. Then I tried to build demo from demos/gl/simple/simplegl.d and failed with undefined symbols http://dpaste.dzfl.pl/ba0c3277 Script (dgen.d) builds the whole library and there is no separate lib to provide opengl (sort of gtkdgl.lib) so where can I find these undefined symbols to satisfy compiler? |
April 01, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexandr Druzhinin | On Monday, 1 April 2013 at 14:58:36 UTC, Alexandr Druzhinin wrote:
> I built GtkD following instructions from https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows. Then I tried to build demo from demos/gl/simple/simplegl.d and failed with undefined symbols http://dpaste.dzfl.pl/ba0c3277
> Script (dgen.d) builds the whole library and there is no separate lib to provide opengl (sort of gtkdgl.lib) so where can I find these undefined symbols to satisfy compiler?
Please provide your compile command, it looks like you didn't tell the linker where to find GtkD.
|
April 02, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | 02.04.2013 1:32, Jesse Phillips пишет:
> Please provide your compile command, it looks like you didn't tell the
> linker where to find GtkD.
cd path/to/GtkD/demos/gl/simple
dmd SimpleGL.d -I../../../src -I../../../srcgl ../../../src/GtkD.lib
without GtkD.lib there are much more undefined symbols
|
April 02, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexandr Druzhinin | On Tuesday, 2 April 2013 at 06:19:23 UTC, Alexandr Druzhinin wrote:
> 02.04.2013 1:32, Jesse Phillips пишет:
>> Please provide your compile command, it looks like you didn't tell the
>> linker where to find GtkD.
>
> cd path/to/GtkD/demos/gl/simple
> dmd SimpleGL.d -I../../../src -I../../../srcgl ../../../src/GtkD.lib
>
> without GtkD.lib there are much more undefined symbols
Ops I was thinking Derelict, I don't think GtkD is dynamically linked, so you'll also need to say where gtk is.
|
April 02, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | 02.04.2013 21:38, Jesse Phillips пишет:
> On Tuesday, 2 April 2013 at 06:19:23 UTC, Alexandr Druzhinin wrote:
>> 02.04.2013 1:32, Jesse Phillips пишет:
>>> Please provide your compile command, it looks like you didn't tell the
>>> linker where to find GtkD.
>>
>> cd path/to/GtkD/demos/gl/simple
>> dmd SimpleGL.d -I../../../src -I../../../srcgl ../../../src/GtkD.lib
>>
>> without GtkD.lib there are much more undefined symbols
>
> Ops I was thinking Derelict, I don't think GtkD is dynamically linked,
> so you'll also need to say where gtk is.
but this is compilation error, not runtime or you mean there is another lib I should link against?
|
April 02, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexandr Druzhinin | On Tuesday, 2 April 2013 at 16:35:07 UTC, Alexandr Druzhinin wrote: > 02.04.2013 21:38, Jesse Phillips пишет: >> On Tuesday, 2 April 2013 at 06:19:23 UTC, Alexandr Druzhinin wrote: >>> 02.04.2013 1:32, Jesse Phillips пишет: >>>> Please provide your compile command, it looks like you didn't tell the >>>> linker where to find GtkD. >>> >>> cd path/to/GtkD/demos/gl/simple >>> dmd SimpleGL.d -I../../../src -I../../../srcgl ../../../src/GtkD.lib >>> >>> without GtkD.lib there are much more undefined symbols >> >> Ops I was thinking Derelict, I don't think GtkD is dynamically linked, >> so you'll also need to say where gtk is. > > but this is compilation error, not runtime or you mean there is another lib I should link against? GtkD is only bindings for the actual GTK library, that library must be installed to use GtkD. GtkD being using static linking (at compile time) you need to tell the linker you want the GTK library too. The best way to do this I don't know. The website suggest dgen to build programs after install: https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows If you were in Linux you likely would only add -L-lgtk to the compiler command. |
April 02, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexandr Druzhinin | On 04/01/2013 04:58 PM, Alexandr Druzhinin wrote: > I built GtkD following instructions from > https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows. Then > I tried to build demo from demos/gl/simple/simplegl.d and failed with > undefined symbols http://dpaste.dzfl.pl/ba0c3277 > Script (dgen.d) builds the whole library and there is no separate lib to > provide opengl (sort of gtkdgl.lib) so where can I find these undefined > symbols to satisfy compiler? GtkD relies on gtkglext-3 for it's openGL support it can be found here: https://github.com/tdz/gtkglext It currently isn't included in the Gtk-runtime installer, and as far as i know there aren't any binaries readily available for windows. And i haven't yet found the time to try and build it myself. -- Mike Wey |
April 03, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | 03.04.2013 1:08, Jesse Phillips пишет:
>
> GtkD is only bindings for the actual GTK library, that library must be
> installed to use GtkD. GtkD being using static linking (at compile time)
> you need to tell the linker you want the GTK library too.
>
> The best way to do this I don't know. The website suggest dgen to build
> programs after install:
> https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows
>
> If you were in Linux you likely would only add -L-lgtk to the compiler
> command.
I'm totally agree that I need Gtk runtime - I install it before and set path to it properly. I build GtkD using dgen.d and link against it. But nevertheless I have undefined symbols and I don't know where to find them. Gtk application without opengl support builds very well, but opengl demo building fails.
|
April 03, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wey | 03.04.2013 4:13, Mike Wey пишет:
>
> GtkD relies on gtkglext-3 for it's openGL support it can be found here:
> https://github.com/tdz/gtkglext
>
> It currently isn't included in the Gtk-runtime installer, and as far as
> i know there aren't any binaries readily available for windows.
>
> And i haven't yet found the time to try and build it myself.
>
So undefined symbols may be just unported to windows part of gtkd library?
|
April 03, 2013 Re: does GtkD (win7) support opengl? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexandr Druzhinin | On 04/03/2013 03:23 AM, Alexandr Druzhinin wrote: > 03.04.2013 4:13, Mike Wey пишет: >> >> GtkD relies on gtkglext-3 for it's openGL support it can be found here: >> https://github.com/tdz/gtkglext >> >> It currently isn't included in the Gtk-runtime installer, and as far as >> i know there aren't any binaries readily available for windows. >> >> And i haven't yet found the time to try and build it myself. >> > So undefined symbols may be just unported to windows part of gtkd library? I didn't even check those. There seem to be missing symbols from OpenGl, for these you could link directly with the openGL library, or use Derelict for these. The others are form the GtkD binding of gtkdgl, these are not compiled by default when building GtkD using the dgen tool from the wiki. -- Mike Wey |
Copyright © 1999-2021 by the D Language Foundation