Testing native extensions which require .dlls with editor 2? (SOLVED)

Anyone know of a way to make this work right now? The only way I can find to test a project right now which requires a dll due to a native extension is to bundle it for each test.

What about putting the dll in the root of the project?

1 Like

That works!! Putting the dlls next to the game.project file works. I should have known better.

Is there a way to get Defold to place the dlls next to the bundled exe other than putting them into a dummy native extension res folder?

Two alternative solutions:

  1. Put the .dll in foo/win32 and reference the foo folder in bundle_resources in game.project
  2. Create a your_native_extension/res/win32/ (or res/x86-win32 and res/x86_64-win32) and put the .dll there.
4 Likes

Supported platforms are ios, android, osx and web. Supported arc-platform pairs are armv7-ios, arm64-ios, armv7-android, x86_64-osx and js-web.

This part of docs needs an update? It does work.

w

1 Like

Oh, yes, it needs an update!

3 Likes