ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.12k stars 1.28k forks source link

The difference between openvr_api.dll #542

Open hanjiang08 opened 7 years ago

hanjiang08 commented 7 years ago

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

JoeLudwig commented 7 years ago

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?

hanjiang08 commented 7 years ago

@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.

natbro commented 7 years ago

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.

OvercodedStack commented 1 year ago

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.