Giter VIP home page Giter VIP logo

Comments (17)

MikeWey avatar MikeWey commented on July 30, 2024

Is the gtk bin directory in your path? The gtk installer should normally add it.

Can you check if the dll is actually on your system. The default location is:
C:\Program Files (x86)\GTK+-Runtime-3.4.2\bin\

from gtkd.

zoujiaqing avatar zoujiaqing commented on July 30, 2024

yes, in my path..

from gtkd.

MikeWey avatar MikeWey commented on July 30, 2024

And can you locate the dll in the file system?

from gtkd.

zoujiaqing avatar zoujiaqing commented on July 30, 2024

yes, gtk3 runtime is installed.. but why?

from gtkd.

MikeWey avatar MikeWey commented on July 30, 2024

yes, gtk3 runtime is installed.. but why?

Yes you can find the dll, or yes gtk is installed? I want to check if the installer correctly installed the ddl's.

Also is ti the 32 bit's version of the gtk runtime ?

from gtkd.

zoujiaqing avatar zoujiaqing commented on July 30, 2024

dmd 2.060's arch is i386?

in windows cmd run "gtk3-demo.exe" is ok.. can you try?

my GtkD.lib size: 14,356 KB.

from gtkd.

MikeWey avatar MikeWey commented on July 30, 2024

dmd 2.060's arch is i386?

Yes currently dmd on windows can only compile 32 bits application, so you'll need the 32 bits version of Gtk.

in windows cmd run "gtk3-demo.exe" is ok.. can you try?

I can run a GtkD ap just fine on my windows install.

Can you give a clear answer to whether you can actually locate the dll in the file system?
If the gtk-runtime is install at the default location, you should be able to find it here:
C:\Program Files (x86)\GTK+-Runtime-3.4.2\bin\libgtk-3-0.dll

from gtkd.

zoujiaqing avatar zoujiaqing commented on July 30, 2024

Yes.. dmd compile 32 bits test application, libgtk-3-0.dll 32 bits !
gtk3 runtime only one installed.. I'm crazy!!

from gtkd.

MikeWey avatar MikeWey commented on July 30, 2024

I'll try to modify the Loader so that it gets the error message set by LoadLibrary, that will hopefully tell us whats going wrong.

from gtkd.

zoujiaqing avatar zoujiaqing commented on July 30, 2024

You get my application, Try to run.
http://download.itbbs.cn/gtkd/gtkdtest.exe
http://download.itbbs.cn/gtkd/GtkD_2.0.lib.zip

Can you run?

from gtkd.

MikeWey avatar MikeWey commented on July 30, 2024

I can run that application just fine on my machine.

Also modifying the Loader to retrieve the error message set by LoadLibrary from windows isn't working, when i remove one of the dll from my system the error code/message is set to ERROR_SUCCESS / "The operation completed successfully.". Which isn't exactly the error that occurred.

Could you post you path variable?

from gtkd.

MikeWey avatar MikeWey commented on July 30, 2024

Scratch that last comment about the error messages.

Can you replace src/gtkc/Loader.d with the one from this Gist: https://gist.github.com/3804415

It should generate a better error message.

from gtkd.

zoujiaqing avatar zoujiaqing commented on July 30, 2024

PATH INFO:
D:\Develop\ImageMagick;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files (x86)\GtkSharp\2.12\bin;D:\Develop\jre\bin;C:\Program Files\TortoiseSVN\bin;D:\Develop\GTK3-Runtime\bin;D:\Develop\DMD2\windows\bin

from gtkd.

zoujiaqing avatar zoujiaqing commented on July 30, 2024

object.Exception@..\gtkc\Loader.d(131): Cannot find the specified module.

Process returned 1 (0x1) execution time : 1.050 s
Press any key to continue.

from gtkd.

MikeWey avatar MikeWey commented on July 30, 2024

That would mean that it can't find the dll.

Do you have the GTK_BASEPATH environment variable set to anything from an older gtk instalation?
Also can you check the file size of D:\Develop\GTK3-Runtime\bin\libgtk-3-0.dll

from gtkd.

zoujiaqing avatar zoujiaqing commented on July 30, 2024

Oh my god !!! mast set GTK_BASEPATH value D:\Develop\GTK3-Runtime to Environment variable ..
Now I can run this application!
but, no GTK_BASEPATH other programs can run normally, I think you can't forced to GTK_BASEPATH.

Thanks very much.

from gtkd.

MikeWey avatar MikeWey commented on July 30, 2024

Normaly GtkD (or the LoadLibrary function) looks in the dirs from the PATH variable.

GTK_BASEPATH can be used to override this, and set it to one specific directory.

I'm glad it's working.

from gtkd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.