www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - [GtkD] linux shared library names

reply Druzhinin Alexandr <news digitalmars.com> writes:
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.
Aug 07 2013
next sibling parent reply Mike Wey <mike-wey example.com> writes:
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
Aug 07 2013
parent Druzhinin Alexandr <news digitalmars.com> writes:
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
Aug 07 2013
prev sibling parent reply Jordi Sayol <g.sayol yahoo.es> writes:
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
Aug 07 2013
parent Mike Wey <mike-wey example.com> writes:
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
Aug 10 2013