-
-
Save CheesecakeCG/4ddb328d27a7213551e2974f6c492c0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Configuring done | |
CMake Error at example/CMakeLists.txt:6 (add_executable): | |
Cannot find source file: | |
../src/ref/receiver.h | |
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm | |
.hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc | |
CMake Error at example/CMakeLists.txt:6 (add_executable): | |
No SOURCES given to target: example_receiver | |
CMake Generate step failed. Build files cannot be regenerated correctly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.16) | |
project(driver_sample) | |
IF (WIN32) | |
# Replace this with your vcpkg location | |
include(D:/code/vcpkg/scripts/buildsystems/vcpkg.cmake) | |
find_path(SYSTEM_INCLUDE_DIR openvr_driver.h) | |
include_directories(${SYSTEM_INCLUDE_DIR}) | |
endif() | |
add_subdirectory (src) | |
# add_subdirectory (example) | |
# enable_testing () | |
# add_subdirectory (test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 33%] Building CXX object src/CMakeFiles/driver_hobovr.dir/driver_hobovr.cpp.o | |
In file included from /home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:17: | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:41:65: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] | |
41 | DriverReceiver(std::string expected_pose_struct, char *port="6969", char* addr="127.0.01") { | |
| ^~~~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:41:84: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] | |
41 | DriverReceiver(std::string expected_pose_struct, char *port="6969", char* addr="127.0.01") { | |
| ^~~~~~~~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h: In constructor ‘SockReceiver::DriverReceiver::DriverReceiver(std::string, char*, char*)’: | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:65:25: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] | |
65 | this->mySoc = NULL; | |
| ^~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:74:25: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] | |
74 | this->mySoc = NULL; | |
| ^~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:92:25: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] | |
92 | this->mySoc = NULL; | |
| ^~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h: In member function ‘void SockReceiver::DriverReceiver::close_me()’: | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:130:26: warning: NULL used in arithmetic [-Wpointer-arith] | |
130 | if (this->mySoc != NULL) { | |
| ^~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:136:21: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] | |
136 | this->mySoc = NULL; | |
| ^~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp: In member function ‘virtual vr::EVRInitError CServerDriver_hobovr::Init(vr::IVRDriverContext*)’: | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:767:37: error: ‘using element_type = class SockReceiver::DriverReceiver’ {aka ‘class SockReceiver::DriverReceiver’} has no member named ‘m_vsDevice_list’; did you mean ‘device_list’? | |
767 | for (std::string i:m_pSocketComm->m_vsDevice_list) { | |
| ^~~~~~~~~~~~~~~ | |
| device_list | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp: In member function ‘virtual void CServerDriver_hobovr::OnPacket(char*, int)’: | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:845:30: error: ‘using element_type = class SockReceiver::DriverReceiver’ {aka ‘class SockReceiver::DriverReceiver’} has no member named ‘m_iExpectedMessageSize’ | |
845 | if (len == (m_pSocketComm->m_iExpectedMessageSize*4+3) && !m_bDeviceListSyncEvent) | |
| ^~~~~~~~~~~~~~~~~~~~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:848:52: error: ‘using element_type = class SockReceiver::DriverReceiver’ {aka ‘class SockReceiver::DriverReceiver’} has no member named ‘m_iExpectedMessageSize’ | |
848 | std::vector<float> v(temp, temp+m_pSocketComm->m_iExpectedMessageSize); | |
| ^~~~~~~~~~~~~~~~~~~~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:849:62: error: ‘using element_type = class SockReceiver::DriverReceiver’ {aka ‘class SockReceiver::DriverReceiver’} has no member named ‘m_viEps’ | |
849 | auto tempPose = SockReceiver::split_pk(v, m_pSocketComm->m_viEps); | |
| ^~~~~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:858:108: error: ‘using element_type = class SockReceiver::DriverReceiver’ {aka ‘class SockReceiver::DriverReceiver’} has no member named ‘m_iExpectedMessageSize’ | |
858 | DriverLog("driver: bad packet, expected %d, got %d. double check your udu settings\n", (m_pSocketComm->m_iExpectedMessageSize*4+3), len); | |
| ^~~~~~~~~~~~~~~~~~~~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp: In member function ‘virtual void CServerDriver_hobovr::RunFrame()’: | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:883:22: error: ‘using element_type = class SockReceiver::DriverReceiver’ {aka ‘class SockReceiver::DriverReceiver’} has no member named ‘UpdateParams’ | |
883 | m_pSocketComm->UpdateParams(newD, newEps); | |
| ^~~~~~~~~~~~ | |
In file included from /home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:17: | |
/usr/include/c++/10.2.0/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = SockReceiver::DriverReceiver; _Args = {const char (&)[5]}; _Tp = SockReceiver::DriverReceiver]’: | |
/usr/include/c++/10.2.0/bits/alloc_traits.h:512:17: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = SockReceiver::DriverReceiver; _Args = {const char (&)[5]}; _Tp = SockReceiver::DriverReceiver; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<SockReceiver::DriverReceiver>]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr_base.h:551:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {const char (&)[5]}; _Tp = SockReceiver::DriverReceiver; _Alloc = std::allocator<SockReceiver::DriverReceiver>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr_base.h:682:16: required from ‘std::__shared_count<_Lp>::__shared_count(_Tp*&, std::_Sp_alloc_shared_tag<_Alloc>, _Args&& ...) [with _Tp = SockReceiver::DriverReceiver; _Alloc = std::allocator<SockReceiver::DriverReceiver>; _Args = {const char (&)[5]}; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr_base.h:1371:71: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<SockReceiver::DriverReceiver>; _Args = {const char (&)[5]}; _Tp = SockReceiver::DriverReceiver; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr.h:408:59: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<SockReceiver::DriverReceiver>; _Args = {const char (&)[5]}; _Tp = SockReceiver::DriverReceiver]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr.h:859:14: required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = SockReceiver::DriverReceiver; _Alloc = std::allocator<SockReceiver::DriverReceiver>; _Args = {const char (&)[5]}]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr.h:875:39: required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = SockReceiver::DriverReceiver; _Args = {const char (&)[5]}]’ | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:495:76: required from here | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:41:65: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] | |
41 | DriverReceiver(std::string expected_pose_struct, char *port="6969", char* addr="127.0.01") { | |
| ^~~~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:41:84: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] | |
41 | DriverReceiver(std::string expected_pose_struct, char *port="6969", char* addr="127.0.01") { | |
| ^~~~~~~~~~ | |
/usr/include/c++/10.2.0/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = SockReceiver::DriverReceiver; _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; _Tp = SockReceiver::DriverReceiver]’: | |
/usr/include/c++/10.2.0/bits/alloc_traits.h:512:17: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = SockReceiver::DriverReceiver; _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; _Tp = SockReceiver::DriverReceiver; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<SockReceiver::DriverReceiver>]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr_base.h:551:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; _Tp = SockReceiver::DriverReceiver; _Alloc = std::allocator<SockReceiver::DriverReceiver>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr_base.h:682:16: required from ‘std::__shared_count<_Lp>::__shared_count(_Tp*&, std::_Sp_alloc_shared_tag<_Alloc>, _Args&& ...) [with _Tp = SockReceiver::DriverReceiver; _Alloc = std::allocator<SockReceiver::DriverReceiver>; _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr_base.h:1371:71: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<SockReceiver::DriverReceiver>; _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; _Tp = SockReceiver::DriverReceiver; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr.h:408:59: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<SockReceiver::DriverReceiver>; _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; _Tp = SockReceiver::DriverReceiver]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr.h:859:14: required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = SockReceiver::DriverReceiver; _Alloc = std::allocator<SockReceiver::DriverReceiver>; _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]’ | |
/usr/include/c++/10.2.0/bits/shared_ptr.h:875:39: required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = SockReceiver::DriverReceiver; _Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]’ | |
/home/chrisd/Sync/hobo_vr/driver/src/driver_hobovr.cpp:752:76: required from here | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:41:65: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] | |
41 | DriverReceiver(std::string expected_pose_struct, char *port="6969", char* addr="127.0.01") { | |
| ^~~~~~ | |
/home/chrisd/Sync/hobo_vr/driver/src/ref/receiver_linux.h:41:84: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] | |
41 | DriverReceiver(std::string expected_pose_struct, char *port="6969", char* addr="127.0.01") { | |
| ^~~~~~~~~~ | |
make[2]: *** [src/CMakeFiles/driver_hobovr.dir/build.make:95: src/CMakeFiles/driver_hobovr.dir/driver_hobovr.cpp.o] Error 1 | |
make[1]: *** [CMakeFiles/Makefile2:113: src/CMakeFiles/driver_hobovr.dir/all] Error 2 | |
make: *** [Makefile:103: all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment