Can't open dynamic library from GDMP even when libraries dependencies are met
That's strange, maybe we should focus on error 126 first, which indicates that certain dependencies are missing. I found a way to list a DLL's dependency list with
objdump -p GDMP.windows.dll | grep "DLL Name:"from linux command line, here is the list of DLL names for v0.5 release:DLL Name: opencv_world3410.dll DLL Name: dbghelp.dll DLL Name: MSVCP140.dll DLL Name: KERNEL32.dll DLL Name: VCRUNTIME140.dll DLL Name: VCRUNTIME140_1.dll DLL Name: api-ms-win-crt-runtime-l1-1-0.dll DLL Name: api-ms-win-crt-heap-l1-1-0.dll DLL Name: api-ms-win-crt-math-l1-1-0.dll DLL Name: api-ms-win-crt-utility-l1-1-0.dll DLL Name: api-ms-win-crt-convert-l1-1-0.dll DLL Name: api-ms-win-crt-stdio-l1-1-0.dll DLL Name: api-ms-win-crt-string-l1-1-0.dll DLL Name: api-ms-win-crt-filesystem-l1-1-0.dll DLL Name: api-ms-win-crt-time-l1-1-0.dll DLL Name: api-ms-win-crt-environment-l1-1-0.dll DLL Name: api-ms-win-crt-locale-l1-1-0.dllThere should be some tools available on Windows for doing the same.
should i create link this into a new issue: Can't open dynamic library from GDMP?
Please open the issue if the error persists even when libraries dependencies are met.
objdump -p GDMP.windows.dll | findstr "DLL Name:" DLL vma: Hint Time Forward DLL First DLL Name: opencv_world341.dll DLL Name: dbghelp.dll DLL Name: MSVCP140.dll DLL Name: KERNEL32.dll DLL Name: VCRUNTIME140.dll DLL Name: VCRUNTIME140_1.dll DLL Name: api-ms-win-crt-runtime-l1-1-0.dll DLL Name: api-ms-win-crt-heap-l1-1-0.dll DLL Name: api-ms-win-crt-math-l1-1-0.dll DLL Name: api-ms-win-crt-utility-l1-1-0.dll DLL Name: api-ms-win-crt-convert-l1-1-0.dll DLL Name: api-ms-win-crt-stdio-l1-1-0.dll DLL Name: api-ms-win-crt-string-l1-1-0.dll DLL Name: api-ms-win-crt-filesystem-l1-1-0.dll DLL Name: api-ms-win-crt-time-l1-1-0.dll DLL Name: api-ms-win-crt-environment-l1-1-0.dll DLL Name: api-ms-win-crt-locale-l1-1-0.dll
a3c5b7ea8bdd5ee109d019ef8b7b25789bd2cb67 now builds OpenCV from source on Windows, which should eliminate errors caused by setup differences. Please try building GDMP with this commit again, and make sure libraries output to the location expected by GDExtension:
python build.py desktop --output <GDMP demo project>/addons/GDMP/libs/x86_64
a3c5b7e now builds OpenCV from source on Windows, which should eliminate errors caused by setup differences. Please try building GDMP with this commit again, and make sure libraries output to the location expected by GDExtension:
python build.py desktop --output <GDMP demo project>/addons/GDMP/libs/x86_64
Since there are report on running GDMP on Windows successfully with recent commit, I suppose this issue can be considered fixed. Please reopen the issue if the problems of dependencies not being met still persist for you.