+1 vote

Hello everybody!

I did example project according to official tutorial


I was doing step by step and I got some troubles with Sconstruct file which was provide in this tutorial (he did not compile). So I took Sconstruct from this video tutorial:


And finally my project is completed. It works if I run him from Godot 3.1.2.
And it works if I run him on a local PC with Windows 10(64x) (launch .exe).

BUT... It does not work if I run it on other computers which too Windows 10(64x).
I get error 126. "Can't open dynamic library: bin/win64/libgdexample.dll. Error: Error 126:"

WHY? What am I doing wrong?

The main thing: What do I need to do to export the project to other PCs?

And... Why SConstruct from official tutorial gives an error message?

Thank you!

in Engine by (54 points)

2 Answers

+1 vote
Best answer

Finally I did it. I don't fully understand which steps helped me, but I did this:

1) Build my dll in "release"


2) Replace flags MD and MDd on MT and MTd accordingly

by (54 points)
0 votes

Error 126 means the library is missing a dependency. That dependency may have been present in some computers you tested it on, but other computers don't have it. Maybe you'll need to package that dependency with your game?

See https://stackoverflow.com/questions/14361992/dll-load-library-error-code-126

by (29,090 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.