www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - gtkD problem

reply "SaltySugar" <Butkustomas777 gmail.com> writes:
I have one problem. I compiled gtkD ad my first program 
successfully but when I try to run my program it shows:

C:\apps>hello
object.Exception ..\src\gtkc\Loader.d(123): Library load failed: 
libgtk-3-0.dll

My Path variable:
C:\Program Files\PC Connectivity 
Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
Files\ATI 
Technologies\ATI.ACE;C:\D\dmd2\windows\bin;C:\D\dm\bin;C:\Documents 
and Settings\Tomas\Application 
Data\Dashlane\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\c
mponents;C:\Program 
Files\GTK3\bin

GTK_BASEPATH variable:

C:\Program Files\GTK3\bin

can someone help me?
Jan 28 2013
parent reply Jordi Sayol <g.sayol yahoo.es> writes:
Al 28/01/13 13:43, En/na SaltySugar ha escrit:
 I have one problem. I compiled gtkD ad my first program successfully but when
I try to run my program it shows:
 
 C:\apps>hello
 object.Exception ..\src\gtkc\Loader.d(123): Library load failed: libgtk-3-0.dll
 
 My Path variable:
 C:\Program Files\PC Connectivity
Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\ATI Technologies\ATI.ACE;C:\D\dmd2\windows\bin;C:\D\dm\bin;C:\Documents
and Settings\Tomas\Application
Data\Dashlane\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\c
mponents;C:\Program Files\GTK3\bin
 
 GTK_BASEPATH variable:
 
 C:\Program Files\GTK3\bin
 
 can someone help me?
 
Did you install Gtk+ 3 runtime libraries for Windows? Gtk+3: http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_32-bit.exe http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_64-bit.exe Gtk+2: http://gtkd-packages.googlecode.com/files/gtk2-runtime_2.24.10_32-bit.exe Regards, -- Jordi Sayol
Jan 28 2013
parent reply "SaltySugar" <Butkustomas777 gmail.com> writes:
On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote:
 Al 28/01/13 13:43, En/na SaltySugar ha escrit:
 I have one problem. I compiled gtkD ad my first program 
 successfully but when I try to run my program it shows:
 
 C:\apps>hello
 object.Exception ..\src\gtkc\Loader.d(123): Library load 
 failed: libgtk-3-0.dll
 
 My Path variable:
 C:\Program Files\PC Connectivity 
 Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
 Files\ATI 
 Technologies\ATI.ACE;C:\D\dmd2\windows\bin;C:\D\dm\bin;C:\Documents 
 and Settings\Tomas\Application 
 Data\Dashlane\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\c
mponents;C:\Program 
 Files\GTK3\bin
 
 GTK_BASEPATH variable:
 
 C:\Program Files\GTK3\bin
 
 can someone help me?
 
Did you install Gtk+ 3 runtime libraries for Windows? Gtk+3: http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_32-bit.exe http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_64-bit.exe Gtk+2: http://gtkd-packages.googlecode.com/files/gtk2-runtime_2.24.10_32-bit.exe Regards,
I installed all in one bundle.
Jan 28 2013
parent reply "SaltySugar" <saltysugar inbox.lt> writes:
On Monday, 28 January 2013 at 13:20:31 UTC, SaltySugar wrote:
 On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote:
 Al 28/01/13 13:43, En/na SaltySugar ha escrit:
 I have one problem. I compiled gtkD ad my first program 
 successfully but when I try to run my program it shows:
 
 C:\apps>hello
 object.Exception ..\src\gtkc\Loader.d(123): Library load 
 failed: libgtk-3-0.dll
 
 My Path variable:
 C:\Program Files\PC Connectivity 
 Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
 Files\ATI 
 Technologies\ATI.ACE;C:\D\dmd2\windows\bin;C:\D\dm\bin;C:\Documents 
 and Settings\Tomas\Application 
 Data\Dashlane\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\c
mponents;C:\Program 
 Files\GTK3\bin
 
 GTK_BASEPATH variable:
 
 C:\Program Files\GTK3\bin
 
 can someone help me?
 
Did you install Gtk+ 3 runtime libraries for Windows? Gtk+3: http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_32-bit.exe http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_64-bit.exe Gtk+2: http://gtkd-packages.googlecode.com/files/gtk2-runtime_2.24.10_32-bit.exe Regards,
I installed all in one bundle.
I installed GTK+ 3 developer tools and GTK+3 runtime.
Jan 28 2013
next sibling parent Jordi Sayol <g.sayol yahoo.es> writes:
Al 28/01/13 15:08, En/na SaltySugar ha escrit:
 On Monday, 28 January 2013 at 13:20:31 UTC, SaltySugar wrote:
 On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote:
 Al 28/01/13 13:43, En/na SaltySugar ha escrit:
 I have one problem. I compiled gtkD ad my first program successfully but when
I try to run my program it shows:

 C:\apps>hello
 object.Exception ..\src\gtkc\Loader.d(123): Library load failed: libgtk-3-0.dll

 My Path variable:
 C:\Program Files\PC Connectivity
Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\ATI Technologies\ATI.ACE;C:\D\dmd2\windows\bin;C:\D\dm\bin;C:\Documents
and Settings\Tomas\Application
Data\Dashlane\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\c
mponents;C:\Program Files\GTK3\bin

 GTK_BASEPATH variable:

 C:\Program Files\GTK3\bin

 can someone help me?
Did you install Gtk+ 3 runtime libraries for Windows? Gtk+3: http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_32-bit.exe http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_64-bit.exe Gtk+2: http://gtkd-packages.googlecode.com/files/gtk2-runtime_2.24.10_32-bit.exe Regards,
I installed all in one bundle.
I installed GTK+ 3 developer tools and GTK+3 runtime.
did you compiled yout "hello" program to 32-bit or 64-bit? did you install Gtk+ 3 32-bit or 64-bit? can you find "libgtk-3-0.dll" in your system? -- Jordi Sayol
Jan 28 2013
prev sibling parent reply Mike Wey <mike-wey example.com> writes:
On 01/28/2013 03:08 PM, SaltySugar wrote:
 On Monday, 28 January 2013 at 13:20:31 UTC, SaltySugar wrote:
 On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote:
 Al 28/01/13 13:43, En/na SaltySugar ha escrit:
 I have one problem. I compiled gtkD ad my first program successfully
 but when I try to run my program it shows:

 C:\apps>hello
 object.Exception ..\src\gtkc\Loader.d(123): Library load failed:
 libgtk-3-0.dll

 My Path variable:
 C:\Program Files\PC Connectivity
 Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\ATI
 Technologies\ATI.ACE;C:\D\dmd2\windows\bin;C:\D\dm\bin;C:\Documents
 and Settings\Tomas\Application
 Data\Dashlane\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\components;C:\Program
 Files\GTK3\bin

 GTK_BASEPATH variable:

 C:\Program Files\GTK3\bin

 can someone help me?
Did you install Gtk+ 3 runtime libraries for Windows? Gtk+3: http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_32-bit.exe http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_64-bit.exe Gtk+2: http://gtkd-packages.googlecode.com/files/gtk2-runtime_2.24.10_32-bit.exe Regards,
I installed all in one bundle.
I installed GTK+ 3 developer tools and GTK+3 runtime.
There seems to be a small bug in the code so that it fails is the GTK_BASEPATH doesn't end with a backslash, you can either add it to the GTK_BASEPATH, or remove the GTK_BASEPATH environment variable completely. If that doesn't work could you tell us exactly which installer you used? -- Mike Wey
Jan 28 2013
parent reply "SaltySugar" <saltysugar inbox.lt> writes:
On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote:
 On 01/28/2013 03:08 PM, SaltySugar wrote:
 On Monday, 28 January 2013 at 13:20:31 UTC, SaltySugar wrote:
 On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote:
 Al 28/01/13 13:43, En/na SaltySugar ha escrit:
 I have one problem. I compiled gtkD ad my first program 
 successfully
 but when I try to run my program it shows:

 C:\apps>hello
 object.Exception ..\src\gtkc\Loader.d(123): Library load 
 failed:
 libgtk-3-0.dll

 My Path variable:
 C:\Program Files\PC Connectivity
 Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\ATI
 Technologies\ATI.ACE;C:\D\dmd2\windows\bin;C:\D\dm\bin;C:\Documents
 and Settings\Tomas\Application
 Data\Dashlane\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\components;C:\Program
 Files\GTK3\bin

 GTK_BASEPATH variable:

 C:\Program Files\GTK3\bin

 can someone help me?
Did you install Gtk+ 3 runtime libraries for Windows? Gtk+3: http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_32-bit.exe http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_64-bit.exe Gtk+2: http://gtkd-packages.googlecode.com/files/gtk2-runtime_2.24.10_32-bit.exe Regards,
I installed all in one bundle.
I installed GTK+ 3 developer tools and GTK+3 runtime.
There seems to be a small bug in the code so that it fails is the GTK_BASEPATH doesn't end with a backslash, you can either add it to the GTK_BASEPATH, or remove the GTK_BASEPATH environment variable completely. If that doesn't work could you tell us exactly which installer you used?
Libgtk-3-0.dll exists. I can find it on my system. Also I can run gtk3-demo.exe on C:/Program Files/GTK3/bin.I downloaded unofficial installer from there: www.tarnyko.net/en/?q=node/20 Also, I tried run my program with this runtime: http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_32-bit.exe
Jan 28 2013
parent reply Mike Wey <mike-wey example.com> writes:
On 01/28/2013 08:43 PM, SaltySugar wrote:
 On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote:
 On 01/28/2013 03:08 PM, SaltySugar wrote:
 On Monday, 28 January 2013 at 13:20:31 UTC, SaltySugar wrote:
 On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote:
 Al 28/01/13 13:43, En/na SaltySugar ha escrit:
 I have one problem. I compiled gtkD ad my first program successfully
 but when I try to run my program it shows:

 C:\apps>hello
 object.Exception ..\src\gtkc\Loader.d(123): Library load failed:
 libgtk-3-0.dll

 GTK_BASEPATH variable:

 C:\Program Files\GTK3\bin

 can someone help me?
There seems to be a small bug in the code so that it fails is the GTK_BASEPATH doesn't end with a backslash, you can either add it to the GTK_BASEPATH, or remove the GTK_BASEPATH environment variable completely. If that doesn't work could you tell us exactly which installer you used?
Libgtk-3-0.dll exists. I can find it on my system. Also I can run gtk3-demo.exe on C:/Program Files/GTK3/bin.I downloaded unofficial installer from there: www.tarnyko.net/en/?q=node/20 Also, I tried run my program with this runtime: http://gtkd-packages.googlecode.com/files/gtk3-runtime_3.6.1_32-bit.exe
Did you read the comment about the GTK_BASEPATH because of a bug it currently needs to end with an backslash if it's set. -- Mike Wey
Jan 28 2013
parent reply Mike Wey <mike-wey example.com> writes:
On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote:
 There seems to be a small bug in the code so that it fails is the
 GTK_BASEPATH doesn't end with a backslash, you can either add it to
 the GTK_BASEPATH, or remove the GTK_BASEPATH environment variable
 completely.
Fixed in git: https://github.com/gtkd-developers/GtkD/commit/7e54919287cc7810aed7af27b5371551a3abd9cd -- Mike Wey
Jan 28 2013
parent reply "SaltySugar" <Saltysugar inbox.lt> writes:
On Monday, 28 January 2013 at 21:50:24 UTC, Mike Wey wrote:
 On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote:
 There seems to be a small bug in the code so that it fails is 
 the
 GTK_BASEPATH doesn't end with a backslash, you can either add 
 it to
 the GTK_BASEPATH, or remove the GTK_BASEPATH environment 
 variable
 completely.
Fixed in git: https://github.com/gtkd-developers/GtkD/commit/7e54919287cc7810aed7af27b5371551a3abd9cd
Ok, I'll try It. So, I must to replace old gtkD with this one?
Jan 28 2013
next sibling parent "SaltySugar" <Butkustomas777 gmail.com> writes:
On Tuesday, 29 January 2013 at 05:49:37 UTC, SaltySugar wrote:
 On Monday, 28 January 2013 at 21:50:24 UTC, Mike Wey wrote:
 On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote:
 There seems to be a small bug in the code so that it fails is 
 the
 GTK_BASEPATH doesn't end with a backslash, you can either add 
 it to
 the GTK_BASEPATH, or remove the GTK_BASEPATH environment 
 variable
 completely.
Fixed in git: https://github.com/gtkd-developers/GtkD/commit/7e54919287cc7810aed7af27b5371551a3abd9cd
Ok, I'll try It. So, I must to replace old gtkD with this one?
Finally, It works!!! Thank you very much, Mike :)
Jan 29 2013
prev sibling parent reply "Steve" <steve domain.org> writes:
A similar problem. I've installed the latest GtkD package, and 
downloaded and run the Gtk+3 installer.  I've modified the sc.ini 
file to reference the include area and the newly built GtkD.lib 
file.  I'm using dmd 2.062 under Windows XP.  The Gtk bin area is 
in my path, and the dlls can be found.  I'm compiling for 32-bit. 
I built the GtkD.lib file using the supplied GtkD.brf file and 
bud.  When I run any of the example files (which all successfully 
build), I get:

"The procedure entry point g_mutex_lock could not be located in 
the dynamic link librarylibglib-2.0.0-dll."

I'm only having difficulties on Windows.  It works just fine on 
Linux.
Apr 04 2013
next sibling parent Jordi Sayol <g.sayol yahoo.es> writes:
On 04/04/13 15:57, Steve wrote:
 A similar problem. I've installed the latest GtkD package, and downloaded and
run the Gtk+3 installer.  I've modified the sc.ini file to reference the
include area and the newly built GtkD.lib file.  I'm using dmd 2.062 under
Windows XP.  The Gtk bin area is in my path, and the dlls can be found.  I'm
compiling for 32-bit. I built the GtkD.lib file using the supplied GtkD.brf
file and bud.  When I run any of the example files (which all successfully
build), I get:
 
 "The procedure entry point g_mutex_lock could not be located in the dynamic
link librarylibglib-2.0.0-dll."
 
 I'm only having difficulties on Windows.  It works just fine on Linux.
 
No problem on wine (windows api for Linux), installed dmd 2.062, Gtk+3 runtime 32-bit https://code.google.com/p/gtkd-packages/downloads/list , compiled gtkd using the wiki procedure: https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows C:\testdir> dmd test.d -IC:\path\to\gtkd\source\dir -L C:\path\to\GtkD.lib -L/SUBSYSTEM:WINDOWS It worked fine. Regards, -- Jordi Sayol
Apr 04 2013
prev sibling parent Mike Wey <mike-wey example.com> writes:
On 04/04/2013 03:57 PM, Steve wrote:
 A similar problem. I've installed the latest GtkD package, and
 downloaded and run the Gtk+3 installer.  I've modified the sc.ini file
 to reference the include area and the newly built GtkD.lib file.  I'm
 using dmd 2.062 under Windows XP.  The Gtk bin area is in my path, and
 the dlls can be found.  I'm compiling for 32-bit. I built the GtkD.lib
 file using the supplied GtkD.brf file and bud.  When I run any of the
 example files (which all successfully build), I get:

 "The procedure entry point g_mutex_lock could not be located in the
 dynamic link librarylibglib-2.0.0-dll."

 I'm only having difficulties on Windows.  It works just fine on Linux.
It looks like you have more than one version of the Gtk runtime on your system, and this is causing some problems. because it's finding the older version. -- Mike Wey
Apr 04 2013