View previous topic :: View next topic |
Author |
Message |
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Thu Jan 31, 2008 2:50 pm Post subject: Some demo issues |
|
|
Hi,
I'am currently palying around with gtkD.
Thanks for all the work!
I stumbled over two minor problems:
./demos/gtk/DrawRect
crashes on my system (linux/tango/dmd.1.026):
Code: | Loaded lib = libgtk-x11-2.0.so
Loaded lib = libgobject-2.0.so
Loaded lib = libglib-2.0.so
Loaded lib = libgdk-x11-2.0.so
Loaded lib = libgdk_pixbuf-2.0.so
Loaded lib = libpango-1.0.so
Loaded lib = libgthread-2.0.so
Loaded lib = libatk-1.0.so
Loaded lib = libcairo.so.2
Segmentation fault |
Another issues is, running "rebuild Main.d -L-ldl" on the ./demos/gtk/HelloWorld.d works fine,
while "rebuild Main.d -L-ldl -odtmp" produces linker errors. I don't know where the problem is,
but maybe it has be fixed on the gtkD side.
Also, the close button for OtherTest doesn't work. |
|
Back to top |
|
|
kaarna
Joined: 03 Apr 2006 Posts: 92 Location: Finland
|
Posted: Thu Jan 31, 2008 3:46 pm Post subject: |
|
|
If you look at the DrawRect code, you'll see that the program does nothing. There's also a ticket made about the issue.
I think I remember that somebody said that DrawRect was some test code for the Exceptions, and it should be renamed to reflect that it's supposed to have an error coming out of it... But you're right, it's really confusing why it's there with the helloworld's and named drawrect, as drawing rectangles is quite a basic functionality that you'd expect to stumble upon when looking at the early examples. The Cairo clock example will tell you much more about the suggested way of drawing.
In fact the current DrawRect is a test and not a demo. It should be moved to some internal folder which could then have some sort of stress testing and other testing examples... |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jan 31, 2008 3:54 pm Post subject: Re: Some demo issues |
|
|
mandel wrote: | Also, the close button for OtherTest doesn't work. |
It should be working in svn r425 |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jan 31, 2008 4:13 pm Post subject: Re: Some demo issues |
|
|
mandel wrote: | Another issues is, running "rebuild Main.d -L-ldl" on the ./demos/gtk/HelloWorld.d works fine,
while "rebuild Main.d -L-ldl -odtmp" produces linker errors. I don't know where the problem is,
but maybe it has be fixed on the gtkD side. |
rebuild doesn't use the fully qualified names when using the -odtmp flag and this creates an conflict with tango.stdc.config.o and tango.stdc.posix.config.o one of witch overrides the other. try using -oqtmp so you'll have fully qualified names. |
|
Back to top |
|
|
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Thu Jan 31, 2008 7:59 pm Post subject: |
|
|
Quote: |
rebuild doesn't use the fully qualified names when using the -odtmp flag and this creates an conflict with tango.stdc.config.o and tango.stdc.posix.config.o one of witch overrides the other. try using -oqtmp so you'll have fully qualified names. |
-oq works; my bad
Quote: | It should be working in svn r425 |
quick!
Some other issue I ran into.
Context.showText("test") crahes the program.
I found out that it's a bug that does also have a workaound:
http://www.mail-archive.com/gtkmm-list@gnome.org/msg09032.html
Just in case others stumble over this bug.
So far a big thanks for the bindings,
everything works very nice so far! |
|
Back to top |
|
|
|