ChristophHaag / SteamVR-OpenHMD

SteamVR plugin for using OpenHMD drivers in SteamVR
Boost Software License 1.0
193 stars 33 forks source link

Build target openhmd-shared does not exist #7

Closed ppaalanen closed 5 years ago

ppaalanen commented 5 years ago

I tried compiling this for the first time according to the readme. First I updated OpenHMD as instructed with git-pull. Then I get:

-- [19:10:38] ~/git/SteamVR-OpenHMD/build --
$ cmake ..
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found HIDAPI: /usr/lib/x86_64-linux-gnu/libhidapi-libusb.so  
SteamVR plugin path: /home/pq/git/SteamVR-OpenHMD/build/bin/linux64
-- Configuring done
CMake Error at CMakeLists.txt:53 (add_dependencies):
  The dependency target "openhmd-shared" of target "driver_openhmd" does not
  exist.

-- Generating done
-- Build files have been written to: /home/pq/git/SteamVR-OpenHMD/build

The build fails on missing openhmd-shared lib.

ChristophHaag commented 5 years ago

Did you clone recursively and does subprojects/openhmd/ exist? If not, git submodule update --init should help.

ppaalanen commented 5 years ago

I'm fairly sure I did, but that was in May it seems. The subprojects/openhmd exists and is populated but in a detached head state, gitk saying the commit corresponding to OpenHMD master branch being checked out.

I started from scratch again, and it built just fine.

When I look at the old vs. new subprojects directories, there is a ton of changes. I suspect your advice to update openhmd with git pull origin master does not work. Maybe it doesn't lead to an actual checkout since the repository is in detached head state?

Anyway, I have no problem anymore, thanks.