Failed to load "hdStorm"

Hi !
I’m trying my hand at c++ and hydra, mostly following that awesome repo GitHub - raph080/ImGuiHydraEditor: ImGui Hydra Editor is a USD editor written in c++ with the ImGui and OpenUSD frameworks.. And so far no luck into being able to load Storm. I moved back to a new project and same, as soon as Storm get loaded it fails.

Right now I’m having this:

Coding Error: in _Load at line 244 of C:\g\111609598\USD\pxr\base\plug\plugin.cpp – Failed to load plugin ‘hdStorm’: The specified module could not be found.
in ‘D:/********/Release/usd/hdStorm.dll’

I’m extremely new to c++ so for now I copied myself the plugins, dll etc. I’m able to read a stage and do basic things, but yeah no matter what I try with storm I’m getting an error. And this one baffles me because the TF_DEBUG=PLUG* does show it grabs the plugin, read it at the right place, the dll is there, it’s from the nvidia binaries so I have no idea what’s not working.

Thanks a lot for your help ! :pray:

Hi Alexandre,

I am guessing you are on Windows since you mentioned a .dll.
Did you add the “bin” and “lib” path of the OpenUSD folder to your windows PATH env var ? As this is required to be able to load the Storm dll.

In case this is not enough, you can enable gflags to tell you what is happening with dll dependencies.

Here is an example of command line to run as a Windows batch file for example :
REM Please note this is for the maya.exe executable, change this to your exe name.
“C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe” -i maya.exe +sls
PAUSE

And run your exe if a dependency of a dll cannot be found, it will output it in your dev output.
And to remove it use :
“C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe” -i maya.exe -sls

Regards,
David

Ooooh alright I didn’t know about the path needed, they are indeed not present, I’ll try that asap.
Thank you very much for your input and the detailed tips, greatly appreciated as a total beginner !