ChristophHaag / SteamVR-OpenHMD

SteamVR plugin for using OpenHMD drivers in SteamVR
Boost Software License 1.0
194 stars 32 forks source link

/usr/bin/ld: cannot find -lopenhmd-shared #8

Open bitnom opened 5 years ago

bitnom commented 5 years ago

Cmake works but if I pull latest openhmd before cmake, I get:

[ 10%] Linking CXX shared library bin/linux64/driver_openhmd.so
/usr/bin/ld: cannot find -lopenhmd-shared
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/driver_openhmd.dir/build.make:99: bin/linux64/driver_openhmd.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/driver_openhmd.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
ChristophHaag commented 5 years ago

Looks like https://github.com/OpenHMD/OpenHMD/commit/5b91b37fe4bb74a87420998f464c031e60188722#diff-af3b638bc2a3e6c650974192a53c7291 by default only provides the openhmd target now and if you want the openhmd-shared target you have to enable BUILD_BOTH_STATIC_SHARED_LIBS...

Personally I don't really care about linking to a shared lib, so I just updated to openhmd master and switched to the openhmd target. It links openhmd as a static library by default now.