Re: [GtkD] linux shared library names

2013-08-10 Thread Mike Wey

On 08/07/2013 09:08 PM, Jordi Sayol wrote:

On 07/08/13 20:44, Druzhinin Alexandr wrote:

I built a linux app using GtkD, but when I run it it complains about it cannot 
find libgtkglext-3.0.so.0 and libgdkglext-3.0.so.0. My box (ubuntu 12.04 TLS) 
has gtkglext libs installed already but the libs has different names - 
libgtkglext-x11-1.0.so.0 and libgdkglext-x11-1.0.so.0.
I did soft links to these libs then application started running and just 
crushed anyway.
Are names of libs used by GtkD correct? I google these names and find them in 
GtkD repository only. Nowhere else.



Edit GtkD sources file:
src/gtkc/paths.d:127,128

Compile GtkD libraries and recompile your project.

Regards,



The older version of gtkglext won't work with Gtk+ 3.x and GtkD 2.x so 
changing the required version in the source won't do you any good.


--
Mike Wey


[GtkD] linux shared library names

2013-08-07 Thread Druzhinin Alexandr
I built a linux app using GtkD, but when I run it it complains about it 
cannot find libgtkglext-3.0.so.0 and libgdkglext-3.0.so.0. My box 
(ubuntu 12.04 TLS) has gtkglext libs installed already but the libs has 
different names - libgtkglext-x11-1.0.so.0 and libgdkglext-x11-1.0.so.0.
I did soft links to these libs then application started running and just 
crushed anyway.
Are names of libs used by GtkD correct? I google these names and find 
them in GtkD repository only. Nowhere else.


Re: [GtkD] linux shared library names

2013-08-07 Thread Jordi Sayol
On 07/08/13 20:44, Druzhinin Alexandr wrote:
 I built a linux app using GtkD, but when I run it it complains about it 
 cannot find libgtkglext-3.0.so.0 and libgdkglext-3.0.so.0. My box (ubuntu 
 12.04 TLS) has gtkglext libs installed already but the libs has different 
 names - libgtkglext-x11-1.0.so.0 and libgdkglext-x11-1.0.so.0.
 I did soft links to these libs then application started running and just 
 crushed anyway.
 Are names of libs used by GtkD correct? I google these names and find them in 
 GtkD repository only. Nowhere else.
 

Edit GtkD sources file:
src/gtkc/paths.d:127,128

Compile GtkD libraries and recompile your project.

Regards,
-- 
Jordi Sayol


Re: [GtkD] linux shared library names

2013-08-07 Thread Mike Wey

On 08/07/2013 08:44 PM, Druzhinin Alexandr wrote:

I built a linux app using GtkD, but when I run it it complains about it
cannot find libgtkglext-3.0.so.0 and libgdkglext-3.0.so.0. My box
(ubuntu 12.04 TLS) has gtkglext libs installed already but the libs has
different names - libgtkglext-x11-1.0.so.0 and libgdkglext-x11-1.0.so.0.
I did soft links to these libs then application started running and just
crushed anyway.
Are names of libs used by GtkD correct? I google these names and find
them in GtkD repository only. Nowhere else.


To use OpenGL with Gtk3 / GtkD 2.x you will need the Gtk3 port of 
gtkglext, which can be found here: https://github.com/tdz/gtkglext


I don't know if there are any prebuild binaries available for Ubuntu, so 
you may need to build it yourself.


--
Mike Wey


Re: [GtkD] linux shared library names

2013-08-07 Thread Druzhinin Alexandr

On 08.08.2013 03:45, Mike Wey wrote:

On 08/07/2013 08:44 PM, Druzhinin Alexandr wrote:

I built a linux app using GtkD, but when I run it it complains about it
cannot find libgtkglext-3.0.so.0 and libgdkglext-3.0.so.0. My box
(ubuntu 12.04 TLS) has gtkglext libs installed already but the libs has
different names - libgtkglext-x11-1.0.so.0 and libgdkglext-x11-1.0.so.0.
I did soft links to these libs then application started running and just
crushed anyway.
Are names of libs used by GtkD correct? I google these names and find
them in GtkD repository only. Nowhere else.


To use OpenGL with Gtk3 / GtkD 2.x you will need the Gtk3 port of
gtkglext, which can be found here: https://github.com/tdz/gtkglext

I don't know if there are any prebuild binaries available for Ubuntu, so
you may need to build it yourself.

I've built them from the sources too, but the names are different as I 
said and if I just rename them my app fails as I described above. The 
log is like:
(workstation-x86_64:8863): GLib-GObject-WARNING **: cannot register 
existing type `GdkDisplay'


(workstation-x86_64:8863): GLib-CRITICAL **: g_once_init_leave: 
assertion `result != 0' failed


(workstation-x86_64:8863): Gdk-CRITICAL **: 
IA__gdk_x11_display_get_xdisplay: assertion `GDK_IS_DISPLAY (display)' 
failed


(workstation-x86_64:8863): GdkGLExt-WARNING **: Window system doesn't 
support OpenGL.


But of course my box support OpenGL