usdassimp icon indicating copy to clipboard operation
usdassimp copied to clipboard

The plugin doesn't work on windows

Open myartings opened this issue 2 years ago • 6 comments

Just follow the tutorial , build and install the plugin , it says "Failed to open "tests/example1.ply" - Cannot determine file format for @tests/example1.ply@". I Don't have any idea about this issue. My USD version is 23.02, built in release. I Need help.

myartings avatar Jun 25 '23 11:06 myartings

Hi @myartings , it can happen if the PXR_PLUGINPATH_NAME environment variable is not pointing the the correct folder. It should be PXR_PLUGINPATH_NAME=<where_you_installed_the_plugin>/plugin/usd: adding /plugin/usd to the location where the plugin was installed. Is that environment variable set correctly ?

cpichard avatar Jun 25 '23 15:06 cpichard

@cpichard yes, I'm sure that I have set environment variable correctly. The setting is below.

image image image image image

myartings avatar Jun 25 '23 16:06 myartings

Ok ! thanks for checking. I just compiled it on windows as well and I have the same issue as you.

cpichard avatar Jun 25 '23 19:06 cpichard

I set TF_DEBUG environment variable to "*" prior to launching usdcat. Here is the log. assimp_log.txt

myartings avatar Jun 26 '23 06:06 myartings

Thanks for the log @myartings. This is puzzling ... , it looks like the plugin is correctly registered and loaded but usd doesn't open the ply file for some reason. I have the same issue on my machine, but will be able to debug only next week-end. I'll keep you posted

cpichard avatar Jun 27 '23 07:06 cpichard

Hi @myartings , It looks like the code creating the plugin factory wasn't compiled. Visual Studio removed it as it didn't have internal linkage. I pushed a fix, let me know if that works for you.

cpichard avatar Jun 30 '23 12:06 cpichard