ValveSoftware / openvr

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

Mac OS X: Undefined symbols for architecture x86_64: "_VR_InitInternal2" #644

Open ChristophHaag opened 6 years ago

ChristophHaag commented 6 years ago

I don't have Mac OS X, this is part of the output from High Fidelity's CI, after I enabled their OpenVR plugin on non-windows platforms: https://github.com/highfidelity/hifi/pull/11318

On Linux it works as expected, on Mac OS X the build fails, see line 286 in this console output: https://pastebin.com/EbGNRVyX

Dawars commented 6 years ago

I had the same problem. I assume you tried to link the libopenvr_api.dylib from the lib folder but that is a 2-year-old version.

Use the one in the bin/osx32 directory.