Hi,
okay, I've got a couple of issues here:
first of the SConstruct file does not work for 3 reasons:
The flags for the c compilation don't exist. I changed them to the once recommended from my console.
after fixing this scons uses g++ instead of mingw even though I did all steps to ensure the usage of mingw as written in the documentation.
this is the line I use for compilation:
scons platform=windows generate_bindings=yes use_mingw=yes bits=64
after fixing this editing the SConstruct so it is forced to use mingw by adding:
it uses mingw and has no problems anymore with the flags.
but now lets move on to the next reason.
scons successfully builds using mingw and uses all the right flags and all and puts a .so file in demo/bin/win64.
Yeaj an .so file.... with the platform chosen for windows and compilation with
Why? probably because the SConstruct is wrong again.
Console output:
which clearly states -o demo/bin/win64/libgdexample.so
so after renaming the file ending to .dll and checking it with a dll checker, everything seems fine:
so lets move to the next problem
After creating the gdnativelibrary.gdnlib and the nativescript.gdns as described in the documentation I get the following error upon execution:
so... at this point and after so many errors in the files and building process I'm at a point at which I wonder if I'm doing something totally wrong or If it had ever been tested by someone before posting it...
I hope someone can help me because gdnative libraries is a part of my bachelor thesis, or to put it in another way I want to use it to demonstrate my bachelor thesis as well as in a game I'm building.
Hi, okay, I've got a couple of issues here: first of the SConstruct file does not work for 3 reasons:
scons platform=windows generate_bindings=yes use_mingw=yes bits=64
after fixing this editing the SConstruct so it is forced to use mingw by adding:
it uses mingw and has no problems anymore with the flags. but now lets move on to the next reason.
which clearly states
-o demo/bin/win64/libgdexample.so
so after renaming the file ending to .dll and checking it with a dll checker, everything seems fine:so lets move to the next problem
so... at this point and after so many errors in the files and building process I'm at a point at which I wonder if I'm doing something totally wrong or If it had ever been tested by someone before posting it...
I even wanted to try the complete example which is referenced here https://docs.godotengine.org/en/3.2/tutorials/plugins/gdnative/gdnative-cpp-example.html at the end of the introduction just to check whether or not it worked if someone else built the dynamic libraries just to find out that there are not libraries pre-build to test it.
I hope someone can help me because gdnative libraries is a part of my bachelor thesis, or to put it in another way I want to use it to demonstrate my bachelor thesis as well as in a game I'm building.