openvr icon indicating copy to clipboard operation
openvr copied to clipboard

The difference between openvr_api.dll

Open hanjiang08 opened this issue 8 years ago • 4 comments

Why the file-"openvr_api.dll" I construct by myself is different from what the package provides? Is it related to the compiler?

hanjiang08 avatar Jun 07 '17 16:06 hanjiang08

There are some private interfaces in the published openvr_api.dll that are not in the published source code. Despite the minor binary differences your build openvr_api.dll should be finally identical to the published binary for all public interfaces.

Is there something that isn't working in your build DLL?

JoeLudwig avatar Jun 07 '17 18:06 JoeLudwig

@JoeLudwig Thank you for your answer. I donnot think there is only the minor binary differences. At first, the size of my openvr_api.dll is 549K in win32-debug mode, in contrast, the published is 252K. Secondly, when I use my openvr_api.dll to compile the sample hellovr_opengl, the compiled program is OK. But the program executes unnormally and cannot find the HMD. Finally, the published openvr_api.dll is debug or release? I'm a newbie and looking forward to your reply. Thanks again.

hanjiang08 avatar Jun 08 '17 01:06 hanjiang08

Can you let me know how you build your openvr_api.dll? using cmake for windows or another way? the published openvr_api.dll is a release build, so your larger hand-built debug version seems normal size-wise anyway.

natbro avatar Jun 11 '17 16:06 natbro

I don't know if the author of this issue managed to fix their issue or not but I similarly want to know how was the open_api.dll was built as well.

OvercodedStack avatar Jul 14 '23 18:07 OvercodedStack