View previous topic :: View next topic |
Author |
Message |
div0
Joined: 10 Sep 2007 Posts: 19 Location: tedium city, uk
|
Posted: Fri Sep 14, 2007 11:34 am Post subject: |
|
|
okibi wrote: | Which problem are you having, exactly?
GtkD doesn't require the dlls to be installed to compile, nor do they need to be installed to compile an application.
However, this is the case on Windows. From a Linux perspective, the modules need to be referenced to compile. Take a look at the code.
Is anyone in this thread still having problems? Please post them again for further assistance. |
Ok I'm glad you said that about the dlls, I thought I had entered some strange parallel universe for a moment.
I'm using the gtkD-pre5.zip off the project page, with dmd v1.021.
The link errors are definitely for gtk symbols (ie _gtk_main).
I'm compiling gtkD with the compdGtkD.bat which all goes ok (and no other bat file).
Then I do compdGtkDTests.bat.
I've modified compdGtkDTests.bat so is only compiles demos/gtk
and I've removed all but HellowWorld.d from that folder to keep things simple.
It compiles fine but then spewes hundreds of link errors to atk / gdk symbols.
If I remove gtkD from the libs, then obviously I get lots of link errors about gtkD symbols and none about gtk symbols.
The only reasonable conclusion is that in the source I've got there's something wrong with the definition of the functions that gtkD calls internally that are making the linker look for the actual gtk symbols.
I'll try the svn version and see if I have anymore luck.
oh, btw, pre5 won't compile against tango. or at least the Tango 0.99.1 RC4 which I got off of the tango project page. |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Fri Sep 14, 2007 11:39 am Post subject: |
|
|
As far as I know, gtkD isn't Tango-ready yet.
Does the standard GtkDTests work prior to your modification?
Lastly, what GTK+ installer did you use? What version are you running? |
|
Back to top |
|
|
div0
Joined: 10 Sep 2007 Posts: 19 Location: tedium city, uk
|
Posted: Fri Sep 14, 2007 12:03 pm Post subject: |
|
|
okibi wrote: | As far as I know, gtkD isn't Tango-ready yet.
Does the standard GtkDTests work prior to your modification? |
no, doesn't even make it past compiling the first file:
C:\Development\D\gtkD>compd demos/gtkD -o GtkDTests -I src -I demos -c -L .+\dmd\lib\+phobos+gtkd+advapi32
dmd demos\gtkD\TEditableCells.d demos\gtkD\TestAspectFrame.d demos\gtkD\TestDrawingArea.d demos\gtkD\TestEntries.d demos\gtkD\TestIdle.d demos\gtkD\TestImage.d demos\gtkD\TestScales.d demos\gtkD\TestStock.d demos\gtkD\TestText.d demos\gtkD\TestThemes.d demos\gtkD\TestTreeView.d demos\gtkD\TestTreeView1.d demos\gtkD\TestWindow.d demos\gtkD\TTextView.d -odobj -op -Isrc;demos -c -I\dmd\src\phobos
demos\gtkD\TestDrawingArea.d(351): function gdk.Pixbuf.Pixbuf.renderToDrawable (Drawable,GdkGC *,int,int,int,int,int,int,GdkRgbDither,int,int) does not match parameter types (GdkDrawable *,GdkGC *,int,int,int,int,int,int,GdkRgbDither,int,int)
demos\gtkD\TestDrawingArea.d(351): Error: cannot implicitly convert expression ((d.getDrawableStruct)()) of type GdkDrawable * to gdk.Drawable.Drawable
[/quot]
Quote: | Lastly, what GTK+ installer did you use? What version are you running? |
Well I was using an older one from the gimp windows page.
But I've just downloaded gtk+-2.10.13-setup.exe off of
http://gimp-win.sourceforge.net/stable.html.
A complete clean rebuild and exactly the same.
Right I'm gonna quickly try the svn version, then I'm opening a beer. it's friday after all. |
|
Back to top |
|
|
div0
Joined: 10 Sep 2007 Posts: 19 Location: tedium city, uk
|
Posted: Fri Sep 14, 2007 1:03 pm Post subject: |
|
|
div0 wrote: |
...
Right I'm gonna quickly try the svn version, then I'm opening a beer. it's friday after all. |
Exactly the same link errors. |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Fri Sep 14, 2007 1:17 pm Post subject: |
|
|
That's interesting...
The gtkD-pre5.zip package compiles fine on both my Windows XP SP2 and Slackware Linux 12.0 boxes.
I'll look into this tonight and get back with you. |
|
Back to top |
|
|
div0
Joined: 10 Sep 2007 Posts: 19 Location: tedium city, uk
|
Posted: Sat Sep 15, 2007 11:06 am Post subject: |
|
|
okibi wrote: | That's interesting...
The gtkD-pre5.zip package compiles fine on both my Windows XP SP2 and Slackware Linux 12.0 boxes.
I'll look into this tonight and get back with you. |
Found it. Just need to add src/gtkc to compdGtkD.bat
Now it doesn't load the libraries at runtime
Might be a good idea to update gtkD-pre5.zip on the DUI project page. |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Tue Sep 18, 2007 3:57 am Post subject: |
|
|
This error has been corrected in the gtkD-pre5.zip archive available on the homepage.
Thanks! |
|
Back to top |
|
|
div0
Joined: 10 Sep 2007 Posts: 19 Location: tedium city, uk
|
Posted: Tue Sep 18, 2007 4:41 pm Post subject: |
|
|
okibi wrote: | This error has been corrected in the gtkD-pre5.zip archive available on the homepage.
Thanks! |
Cool.
Forgot to say thanks for all your hard work.
I got HelloWorld.d compiled and running in the end, so I'm well chuffed.
I've always been a fan of gtk...
I played with it before it got seperated out from the gimp many moons ago.
Ok so all the other libraries are a bit dodgy, but a standard(ish) lib and a gui are enough for most apps.
Hell look at windows... |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Thu Sep 20, 2007 5:24 am Post subject: |
|
|
Yeah, I've always been a fan of GTK, been using it for years. GTK with D make a perfect combination, so I love working on GtkD and helping out however I can. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|