OSVR / OSVR-Docs

Unified documentation for the OSVR projects.
Apache License 2.0
92 stars 49 forks source link

Installation Instructions Do Not Work #125

Open ghost opened 6 years ago

ghost commented 6 years ago

The installation/README for Linux should be more detailed.

ghost commented 6 years ago

synapse@darkside:~/Desktop/OSVR-Vive/build$ cmake ..
CMake Error at CMakeLists.txt:18 (find_package):
By not providing "Findosvr.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "osvr", but
CMake did not find one.

Could not find a package configuration file provided by "osvr" with any of
the following names:

osvrConfig.cmake
osvr-config.cmake
Add the installation prefix of "osvr" to CMAKE_PREFIX_PATH or set
"osvr_DIR" to a directory containing one of the above files. If "osvr"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!
See also "/home/synapse/Desktop/OSVR-Vive/CMakeFiles/CMakeOutput.log".

synapse@darkside:~/Desktop/OSVR-Core/build$ cmake
Usage

cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

synapse@darkside:~/Desktop/OSVR-Core/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- Git reports version 0.6-2144-g59405fc
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
CMake Error at CMakeLists.txt:189 (find_package):
By not providing "Findlibfunctionality.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"libfunctionality", but CMake did not find one.

Could not find a package configuration file provided by "libfunctionality"
with any of the following names:

libfunctionalityConfig.cmake
libfunctionality-config.cmake
Add the installation prefix of "libfunctionality" to CMAKE_PREFIX_PATH or
set "libfunctionality_DIR" to a directory containing one of the above
files. If "libfunctionality" provides a separate development package or
SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "/home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeOutput.log".

synapse@darkside:~/Desktop/OSVR-Core$ cmake ..
CMake Error: The source directory "/home/synapse/Desktop" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

synapse@darkside:~/Desktop/libfunctionality/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for dlsym
-- Looking for dlsym - found
-- Looking for dlerror
-- Looking for dlerror - found
-- Looking for dlclose
-- Looking for dlclose - found
-- Looking for RTLD_LAZY
-- Looking for RTLD_LAZY - found
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find Markdown (missing: MARKDOWN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/synapse/Desktop/libfunctionality/build
synapse@darkside:~/Desktop/libfunctionality/build$ cmake .. -DCMAKE_INSTALL_PREFIX=~/osvr
-- Could NOT find Markdown (missing: MARKDOWN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/synapse/Desktop/libfunctionality/build

synapse@darkside:~/Desktop/libfunctionality$ make
make: * No targets specified and no makefile found. Stop.
synapse@darkside:~/Desktop/libfunctionality$ cd build/
synapse@darkside:~/Desktop/libfunctionality/build$ make
Scanning dependencies of target functionality
[ 5%] Building CXX object src/libfunctionality/CMakeFiles/functionality.dir/LoadPlugin.cpp.o
[ 11%] Building CXX object src/libfunctionality/CMakeFiles/functionality.dir/PluginHandle.cpp.o
[ 17%] Building CXX object src/libfunctionality/CMakeFiles/functionality.dir/LibraryHandleLibdl.cpp.o
[ 23%] Linking CXX shared library ../../lib/libfunctionality.so
[ 23%] Built target functionality
Scanning dependencies of target gtest
[ 29%] Building CXX object vendor/gtest-1.7.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 35%] Linking CXX shared library ../../lib/libgtest.so
[ 35%] Built target gtest
Scanning dependencies of target gtest_main
[ 41%] Building CXX object vendor/gtest-1.7.0/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 47%] Linking CXX shared library ../../lib/libgtest_main.so
[ 47%] Built target gtest_main
Scanning dependencies of target DummyPlugin
[ 52%] Building CXX object tests/cplusplus/CMakeFiles/DummyPlugin.dir/DummyPlugin.cpp.o
[ 58%] Linking CXX shared module ../../lib/DummyPlugin.so
[ 58%] Built target DummyPlugin
Scanning dependencies of target DummyPluginWithParam
[ 64%] Building CXX object tests/cplusplus/CMakeFiles/DummyPluginWithParam.dir/DummyPluginWithParam.cpp.o
[ 70%] Linking CXX shared module ../../lib/DummyPluginWithParam.so
[ 70%] Built target DummyPluginWithParam
Scanning dependencies of target ExampleLoadTest
[ 76%] Building CXX object tests/cplusplus/CMakeFiles/ExampleLoadTest.dir/ExampleLoadTest.cpp.o
[ 82%] Linking CXX executable ../../bin/ExampleLoadTest
[ 82%] Built target ExampleLoadTest
Scanning dependencies of target LoadTest
[ 88%] Building CXX object tests/cplusplus/CMakeFiles/LoadTest.dir/LoadTest.cpp.o
[ 94%] Building CXX object tests/cplusplus/CMakeFiles/LoadTest.dir/LoadTestWithParam.cpp.o
[100%] Linking CXX executable ../../bin/LoadTest
[100%] Built target LoadTest
synapse@darkside:~/Desktop/libfunctionality/build$ make install
[ 23%] Built target functionality
[ 35%] Built target gtest
[ 47%] Built target gtest_main
[ 58%] Built target DummyPlugin
[ 70%] Built target DummyPluginWithParam
[ 82%] Built target ExampleLoadTest
[100%] Built target LoadTest
Install the project...
-- Install configuration: ""
-- Installing: /home/synapse/osvr/share/doc/libfunctionality/README.md
-- Installing: /home/synapse/osvr/share/doc/libfunctionality/CONTRIBUTING.md
-- Installing: /home/synapse/osvr/share/doc/libfunctionality/LICENSE
-- Installing: /home/synapse/osvr/share/doc/libfunctionality/NOTICE
-- Installing: /home/synapse/osvr/lib/cmake/libfunctionality/libfunctionalityTargets.cmake
-- Installing: /home/synapse/osvr/lib/cmake/libfunctionality/libfunctionalityTargets-noconfig.cmake
-- Installing: /home/synapse/osvr/lib/cmake/libfunctionality/libfunctionalityConfig.cmake
-- Installing: /home/synapse/osvr/lib/cmake/libfunctionality/libfunctionalityConfigVersion.cmake
-- Installing: /home/synapse/osvr/lib/libfunctionality.so.0.1
-- Installing: /home/synapse/osvr/lib/libfunctionality.so.0
-- Installing: /home/synapse/osvr/lib/libfunctionality.so
-- Installing: /home/synapse/osvr/include/libfunctionality/Common.h
-- Installing: /home/synapse/osvr/include/libfunctionality/DynamicLoadConfig.h
-- Installing: /home/synapse/osvr/include/libfunctionality/Exceptions.h
-- Installing: /home/synapse/osvr/include/libfunctionality/Export.h
-- Installing: /home/synapse/osvr/include/libfunctionality/LibraryHandle.h
-- Installing: /home/synapse/osvr/include/libfunctionality/LoadPlugin.h
-- Installing: /home/synapse/osvr/include/libfunctionality/PluginInterface.h
-- Installing: /home/synapse/osvr/include/libfunctionality/PluginHandle.h
-- Installing: /home/synapse/osvr/include/libfunctionality/SharedPtr.h

synapse@darkside:~/Desktop/OSVR-Vive/build$ cmake .. -DCMAKE_PREFIX_PATH=~/osvr -DCMAKE_INSTALL_PREFIX=~/osvr
CMake Error at CMakeLists.txt:18 (find_package):
By not providing "Findosvr.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "osvr", but
CMake did not find one.

Could not find a package configuration file provided by "osvr" with any of
the following names:

osvrConfig.cmake
osvr-config.cmake
Add the installation prefix of "osvr" to CMAKE_PREFIX_PATH or set
"osvr_DIR" to a directory containing one of the above files. If "osvr"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!
See also "/home/synapse/Desktop/OSVR-Vive/CMakeFiles/CMakeOutput.log".

synapse@darkside:~/Desktop/OSVR-Core/build$ cmake .. -DCMAKE_PREFIX_PATH=~/osvr -DCMAKE_INSTALL_PREFIX=~/osvr
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- Git reports version 0.6-2144-g59405fc
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find JsonCpp (missing: JsonCpp_INCLUDE_DIR JsonCpp_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/FindJsonCpp.cmake:355 (find_package_handle_standard_args)
CMakeLists.txt:221 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeOutput.log".
See also "/home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeError.log"

synapse@darkside:~/Desktop/OSVR-Core/build$ cat /home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeError.log
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_4e756/fast"
/usr/bin/make -f CMakeFiles/cmTC_4e756.dir/build.make CMakeFiles/cmTC_4e756.dir/build
make[1]: Entering directory '/home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4e756.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_4e756.dir/CheckSymbolExists.c.o -c /home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_4e756
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4e756.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_4e756.dir/CheckSymbolExists.c.o -o cmTC_4e756 -rdynamic
CMakeFiles/cmTC_4e756.dir/CheckSymbolExists.c.o: In function main': CheckSymbolExists.c:(.text+0x16): undefined reference topthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_4e756.dir/build.make:97: recipe for target 'cmTC_4e756' failed
make[1]: [cmTC_4e756] Error 1
make[1]: Leaving directory '/home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_4e756/fast' failed
make: [cmTC_4e756/fast] Error 2

File /home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/ /

include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;

ifndef pthread_create
return ((int*)(&pthread_create))[argc];

else
(void)argc;
return 0;

endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a1ac6/fast"
/usr/bin/make -f CMakeFiles/cmTC_a1ac6.dir/build.make CMakeFiles/cmTC_a1ac6.dir/build
make[1]: Entering directory '/home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a1ac6.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_a1ac6.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_a1ac6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a1ac6.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_a1ac6.dir/CheckFunctionExists.c.o -o cmTC_a1ac6 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_a1ac6.dir/build.make:97: recipe for target 'cmTC_a1ac6' failed
make[1]: [cmTC_a1ac6] Error 1
make[1]: Leaving directory '/home/synapse/Desktop/OSVR-Core/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_a1ac6/fast' failed
make: [cmTC_a1ac6/fast] Error 2

synapse@darkside:~/Desktop/OSVR-Core/build$

synapse@darkside:~/Desktop/OSVR-Core/build$ sudo apt-get install libjsoncpp-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libjsoncpp-dev
0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
Need to get 83.5 kB of archives.
After this operation, 477 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libjsoncpp-dev amd64 1.7.2-1 [83.5 kB]
Fetched 83.5 kB in 0s (187 kB/s)
Selecting previously unselected package libjsoncpp-dev:amd64.
(Reading database ... 252782 files and directories currently installed.)
Preparing to unpack .../libjsoncpp-dev_1.7.2-1_amd64.deb ...
Unpacking libjsoncpp-dev:amd64 (1.7.2-1) ...
Setting up libjsoncpp-dev:amd64 (1.7.2-1) ...
synapse@darkside:~/Desktop/OSVR-Core/build$ cmake .. -DCMAKE_PREFIX_PATH=~/osvr -DCMAKE_INSTALL_PREFIX=~/osvr
-- Git reports version 0.6-2144-g59405fc
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
-- Found JsonCpp: /usr/lib/x86_64-linux-gnu/cmake/jsoncpp
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Performing Test OSVR_HAVE_STD_SHARED_PTR
-- Performing Test OSVR_HAVE_STD_SHARED_PTR - Success
-- Performing Test OSVR_HAVE_STD_UNIQUE_PTR
-- Performing Test OSVR_HAVE_STD_UNIQUE_PTR - Success
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- thread
-- system
-- date_time
-- chrono
-- program_options
-- filesystem
-- atomic
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Configuring the VRPN suite version 07.34 using the CMake-based build system

-- Checking for module 'libusb-1.0'
-- Found libusb-1.0, version 1.0.20
-- Found Libusb1: /usr/lib/x86_64-linux-gnu/libusb-1.0.so
-- Found I2CDEV: /usr/include
-- Looking for C++ include linux/joystick.h
-- Looking for C++ include linux/joystick.h - found
-- Looking for C++ include linux/input.h
-- Looking for C++ include linux/input.h - found
-- Found quatlib: quat
-- Performing Test OSVR_HAVE_STRUCT_TIMEVAL_IN_SYS_TIME_H
-- Performing Test OSVR_HAVE_STRUCT_TIMEVAL_IN_SYS_TIME_H - Success
-- Performing Test OSVR_HAVE_STRUCT_TIMEVAL_IN_WINSOCK2_H
-- Performing Test OSVR_HAVE_STRUCT_TIMEVAL_IN_WINSOCK2_H - Failed
-- Looking for std::align
-- Looking for std::align - found
-- Generating /home/synapse/Desktop/OSVR-Core/build/src/osvr/Util/ReportTypesX.h
-- Performing Test SUPPORTS_W_FLAG
-- Performing Test SUPPORTS_W_FLAG - Success
-- Performing Test SUPPORTS_WALL_FLAG
-- Performing Test SUPPORTS_WALL_FLAG - Success
-- Performing Test SUPPORTS_WEXTRA_FLAG
-- Performing Test SUPPORTS_WEXTRA_FLAG - Success
-- Performing Test SUPPORTS_WNO_MAYBE_UNINITIALIZED_FLAG
-- Performing Test SUPPORTS_WNO_MAYBE_UNINITIALIZED_FLAG - Success
-- Generating /home/synapse/Desktop/OSVR-Core/build/src/osvr/Util/ClientCallbackTypesC.h
-- Looking for intrin.h
-- Looking for intrin.h - not found
-- Looking for byteswap.h
-- Looking for byteswap.h - found
-- Performing Test OSVR_HAVE_WORKING_MS_BYTESWAPS
-- Performing Test OSVR_HAVE_WORKING_MS_BYTESWAPS - Failed
-- Performing Test OSVR_HAVE_WORKING_BSWAP
-- Performing Test OSVR_HAVE_WORKING_BSWAP - Failed
-- Performing Test OSVR_HAVE_WORKING_BSWAP_UNDERSCORE
-- Performing Test OSVR_HAVE_WORKING_BSWAP_UNDERSCORE - Success
-- Performing Test OSVR_HAVE_WORKING_UNDERSCORES_BSWAP
-- Performing Test OSVR_HAVE_WORKING_UNDERSCORES_BSWAP - Success
CMake Error at plugins/videobasedtracker/CMakeLists.txt:69 (find_package):
By not providing "Findlibuvc.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "libuvc", but
CMake did not find one.

Could not find a package configuration file provided by "libuvc" with any
of the following names:

libuvcConfig.cmake
libuvc-config.cmake

synapse@darkside:~/Desktop$ git clone https://github.com/ktossell/libuvc.git
Cloning into 'libuvc'...
remote: Counting objects: 775, done.
remote: Total 775 (delta 0), reused 0 (delta 0), pack-reused 775
Receiving objects: 100% (775/775), 391.84 KiB | 290.00 KiB/s, done.
Resolving deltas: 100% (458/458), done.
Checking connectivity... done.
synapse@darkside:~/Desktop$ cd lib
libfunctionality/ libuvc/
synapse@darkside:~/Desktop$ cd libuvc/
synapse@darkside:~/Desktop/libuvc$ mkdir build
synapse@darkside:~/Desktop/libuvc$ cd build/
synapse@darkside:~/Desktop/libuvc/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- No build type selected, default to Release
-- No target type selected, default to both shared and static library
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libusb-1.0'
-- Found libusb-1.0, version 1.0.20
-- Building libuvc with JPEG support.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/synapse/Desktop/libuvc/build

synapse@darkside:~/Desktop/libuvc/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- No build type selected, default to Release
-- No target type selected, default to both shared and static library
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libusb-1.0'
-- Found libusb-1.0, version 1.0.20
-- Building libuvc with JPEG support.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/synapse/Desktop/libuvc/build

synapse@darkside:~/Desktop/libuvc/build$ make && sudo make install
Scanning dependencies of target uvc
[ 5%] Building C object CMakeFiles/uvc.dir/src/ctrl.c.o
[ 10%] Building C object CMakeFiles/uvc.dir/src/ctrl-gen.c.o
[ 15%] Building C object CMakeFiles/uvc.dir/src/device.c.o
[ 20%] Building C object CMakeFiles/uvc.dir/src/diag.c.o
[ 25%] Building C object CMakeFiles/uvc.dir/src/frame.c.o
[ 30%] Building C object CMakeFiles/uvc.dir/src/init.c.o
[ 35%] Building C object CMakeFiles/uvc.dir/src/stream.c.o
[ 40%] Building C object CMakeFiles/uvc.dir/src/misc.c.o
[ 45%] Building C object CMakeFiles/uvc.dir/src/frame-mjpeg.c.o
[ 50%] Linking C shared library libuvc.so
[ 50%] Built target uvc
Scanning dependencies of target uvc_static
[ 55%] Building C object CMakeFiles/uvc_static.dir/src/ctrl.c.o
[ 60%] Building C object CMakeFiles/uvc_static.dir/src/ctrl-gen.c.o
[ 65%] Building C object CMakeFiles/uvc_static.dir/src/device.c.o
[ 70%] Building C object CMakeFiles/uvc_static.dir/src/diag.c.o
[ 75%] Building C object CMakeFiles/uvc_static.dir/src/frame.c.o
[ 80%] Building C object CMakeFiles/uvc_static.dir/src/init.c.o
[ 85%] Building C object CMakeFiles/uvc_static.dir/src/stream.c.o
[ 90%] Building C object CMakeFiles/uvc_static.dir/src/misc.c.o
[ 95%] Building C object CMakeFiles/uvc_static.dir/src/frame-mjpeg.c.o
[100%] Linking C static library libuvc.a
[100%] Built target uvc_static
[sudo] password for synapse:
[ 50%] Built target uvc
[100%] Built target uvc_static
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/x86_64-linux-gnu/libuvc.so.0.0.6
-- Installing: /usr/local/lib/x86_64-linux-gnu/libuvc.so.0
-- Installing: /usr/local/lib/x86_64-linux-gnu/libuvc.so
-- Installing: /usr/local/include/libuvc/libuvc.h
-- Installing: /usr/local/include/libuvc/libuvc_config.h
-- Installing: /usr/local/lib/x86_64-linux-gnu/libuvc.a
-- Up-to-date: /usr/local/include/libuvc/libuvc.h
-- Up-to-date: /usr/local/include/libuvc/libuvc_config.h
-- Installing: /usr/local/lib/cmake/libuvc/libuvcConfig.cmake
-- Installing: /usr/local/lib/cmake/libuvc/libuvcConfigVersion.cmake
-- Installing: /usr/local/lib/cmake/libuvc/libuvcTargets.cmake
-- Installing: /usr/local/lib/cmake/libuvc/libuvcTargets-release.cmake
-- Installing: /usr/local/lib/pkgconfig/libuvc.pc

synapse@darkside:~/Desktop/OSVR-Core/build$ cmake .. -DCMAKE_PREFIX_PATH=~/osvr -DCMAKE_INSTALL_PREFIX=~/osvr
-- Git reports version 0.6-2144-g59405fc
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- thread
-- system
-- date_time
-- chrono
-- program_options
-- filesystem
-- atomic
-- Configuring the VRPN suite version 07.34 using the CMake-based build system

-- Generating /home/synapse/Desktop/OSVR-Core/build/src/osvr/Util/ReportTypesX.h
-- Generating /home/synapse/Desktop/OSVR-Core/build/src/osvr/Util/ClientCallbackTypesC.h
-- Could NOT find Markdown (missing: MARKDOWN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/synapse/Desktop/OSVR-Core/build

synapse@darkside:~/Desktop/OSVR-Vive/build$ cmake .. -DCMAKE_PREFIX_PATH=~/osvr -DCMAKE_INSTALL_PREFIX=~/osvr
-- Found JsonCpp: /usr/lib/x86_64-linux-gnu/cmake/jsoncpp
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- iostreams
-- filesystem
-- regex
-- Found Eigen3: /home/synapse/Desktop/OSVR-Core/vendor/eigen (Required is at least version "2.91.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/synapse/Desktop/OSVR-Vive

synapse@darkside:~/Desktop/OSVR-Vive$ make
Scanning dependencies of target ViveLoaderLib
[ 4%] Building CXX object CMakeFiles/ViveLoaderLib.dir/ChaperoneData.cpp.o
[ 8%] Building CXX object CMakeFiles/ViveLoaderLib.dir/DriverContext.cpp.o
In file included from /home/synapse/Desktop/OSVR-Vive/DriverContext.h:29:0,
from /home/synapse/Desktop/OSVR-Vive/DriverContext.cpp:26:
/home/synapse/Desktop/OSVR-Vive/DriverLog.h:32:27: fatal error: openvr_driver.h: No such file or directory
compilation terminated.
CMakeFiles/ViveLoaderLib.dir/build.make:86: recipe for target 'CMakeFiles/ViveLoaderLib.dir/DriverContext.cpp.o' failed
make[2]: [CMakeFiles/ViveLoaderLib.dir/DriverContext.cpp.o] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/ViveLoaderLib.dir/all' failed
make[1]: [CMakeFiles/ViveLoaderLib.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: * [all] Error 2

synapse@darkside:~/Desktop$ git clone --recursive https://github.com/OSVR/OSVR-Vive.git
Cloning into 'OSVR-Vive'...
remote: Counting objects: 1068, done.
remote: Total 1068 (delta 0), reused 0 (delta 0), pack-reused 1068
Receiving objects: 100% (1068/1068), 352.22 KiB | 0 bytes/s, done.
Resolving deltas: 100% (713/713), done.
Checking connectivity... done.
Submodule 'vendor/openvr' (https://github.com/ValveSoftware/openvr.git) registered for path 'vendor/openvr'
Cloning into 'vendor/openvr'...
remote: Counting objects: 2428, done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 2428 (delta 7), reused 28 (delta 4), pack-reused 2376
Receiving objects: 100% (2428/2428), 243.25 MiB | 3.37 MiB/s, done.
Resolving deltas: 100% (939/939), done.
Checking connectivity... done.
Submodule path 'vendor/openvr': checked out '167e26e4b9b352614c5f3a83a8434b185f63ed0f'

synapse@darkside:~/Desktop/OSVR-Vive$ mkdir build
synapse@darkside:~/Desktop/OSVR-Vive$ cd build/
synapse@darkside:~/Desktop/OSVR-Vive/build$ cmake .. -DCMAKE_PREFIX_PATH=~/osvr -DCMAKE_INSTALL_PREFIX=~/osvr
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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 JsonCpp: /usr/lib/x86_64-linux-gnu/cmake/jsoncpp
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- iostreams
-- filesystem
-- regex
-- Found Eigen3: /home/synapse/Desktop/OSVR-Core/vendor/eigen (Required is at least version "2.91.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/synapse/Desktop/OSVR-Vive/build

synapse@darkside:~/Desktop/OSVR-Vive/build$ make
Scanning dependencies of target ViveLoaderLib
[ 4%] Building CXX object CMakeFiles/ViveLoaderLib.dir/ChaperoneData.cpp.o
[ 8%] Building CXX object CMakeFiles/ViveLoaderLib.dir/DriverContext.cpp.o
[ 13%] Building CXX object CMakeFiles/ViveLoaderLib.dir/DriverLoader.cpp.o
[ 17%] Building CXX object CMakeFiles/ViveLoaderLib.dir/DriverLog.cpp.o
[ 21%] Building CXX object CMakeFiles/ViveLoaderLib.dir/DriverManager.cpp.o
[ 26%] Building CXX object CMakeFiles/ViveLoaderLib.dir/FindDriver.cpp.o
[ 30%] Building CXX object CMakeFiles/ViveLoaderLib.dir/Properties.cpp.o
In file included from /usr/include/c++/5/bits/hashtable.h:35:0,
from /usr/include/c++/5/unordered_map:47,
from /home/synapse/Desktop/OSVR-Vive/vendor/util-headers/util/KVDataStore.h:38,
from /home/synapse/Desktop/OSVR-Vive/Properties.h:30,
from /home/synapse/Desktop/OSVR-Vive/Properties.cpp:26:
/usr/include/c++/5/bits/hashtable_policy.h: In instantiation of ‘struct std::detail::is_noexcept_hash<vr::ETrackedDeviceProperty, std::hash<vr::ETrackedDeviceProperty> >’:
/usr/include/c++/5/typetraits:137:12: required from ‘struct std::__and<std::__is_fast_hash<std::hash<vr::ETrackedDeviceProperty> >, std::detail::is_noexcept_hash<vr::ETrackedDeviceProperty, std::hash<vr::ETrackedDeviceProperty> > >’
/usr/include/c++/5/typetraits:148:38: required from ‘struct std::__not<std::__and_<std::__is_fast_hash<std::hash<vr::ETrackedDeviceProperty> >, std::detail::is_noexcept_hash<vr::ETrackedDeviceProperty, std::hash<vr::ETrackedDeviceProperty> > > >’
/usr/include/c++/5/bits/unordered_map.h:100:66: required from ‘class std::unordered_map<vr::ETrackedDeviceProperty, boost::variant<bool, float, int, long unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, vr::HmdMatrix34_t, vr::HmdVector2_t>, std::hash<vr::ETrackedDeviceProperty>, std::equal_to<vr::ETrackedDeviceProperty>, std::allocator<std::pair<const vr::ETrackedDeviceProperty, boost::variant<bool, float, int, long unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, vr::HmdMatrix34_t, vr::HmdVector2_t> > > >’
/home/synapse/Desktop/OSVR-Vive/vendor/util-headers/util/KVDataStore.h:47:63: required from ‘class osvr::util::KVDataStore<vr::ETrackedDeviceProperty, boost::variant<bool, float, int, long unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, vr::HmdMatrix34_t, vr::HmdVector2_t> >’
/home/synapse/Desktop/OSVR-Vive/Properties.cpp:100:15: required from here
/usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call to ‘(const std::hash<vr::ETrackedDeviceProperty>) (const vr::ETrackedDeviceProperty&)’
noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
^
In file included from /usr/include/c++/5/bits/move.h:57:0,
from /usr/include/c++/5/bits/stl_pair.h:59,
from /usr/include/c++/5/bits/stl_algobase.h:64,
from /usr/include/c++/5/memory:62,
from /home/synapse/Desktop/OSVR-Core/inc/osvr/Util/SharedPtr.h:63,
from /home/synapse/Desktop/OSVR-Core/inc/osvr/Util/Log.h:32,
from /home/synapse/Desktop/OSVR-Core/inc/osvr/Util/Logger.h:33,
from /home/synapse/Desktop/OSVR-Vive/Properties.h:29,
from /home/synapse/Desktop/OSVR-Vive/Properties.cpp:26:
/usr/include/c++/5/typetraits: In instantiation of ‘struct std::__not<std::__and_<std::__is_fast_hash<std::hash<vr::ETrackedDeviceProperty> >, std::detail::is_noexcept_hash<vr::ETrackedDeviceProperty, std::hash<vr::ETrackedDeviceProperty> > > >’:
/usr/include/c++/5/bits/unordered_map.h:100:66: required from ‘class std::unordered_map<vr::ETrackedDeviceProperty, boost::variant<bool, float, int, long unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, vr::HmdMatrix34_t, vr::HmdVector2_t>, std::hash<