MyrikLD / LinusTrinus

TrinusVR streaming server for Linux
128 stars 16 forks source link

Compilation Errors - Can't find GLEW #28

Closed CStafford-14 closed 2 years ago

CStafford-14 commented 2 years ago

Hi, I'm trying to compile the driver on Ubuntu 20.04.

user@ubuntu:~/LinusTrinus-master/samples$ ./make.sh
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.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
-- Compilation set for 64bits architectures.
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so   
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES) (Required
  is at least version "1.11")
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindGLEW.cmake:207 (find_package_handle_standard_args)
  CMakeLists.txt:111 (find_package)

I'm not sure what it's complaining about as GLEW should be installed.

Aside from that, I am able to successfully pair my phone (Galaxy S8) and the server. The only issue appears to be with the driver, thus SteamVR doesn't detect it.

SakiiCode commented 2 years ago

Try sudo apt install libglew-dev

CStafford-14 commented 2 years ago

Alright, the GLEW problem is solved! Now, I've got some variable issues.

user@ubuntu:~/LinusTrinus-master/samples$ ./make.sh
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.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
-- Compilation set for 64bits architectures.
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so   
-- Found GLEW: /usr/include (found suitable version "2.1.0", minimum required is "1.11") 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENVR_LIBRARIES
    linked by target "driver_linus_trinus" in directory /home/user/LinusTrinus-master/samples/driver_linus_trinus

-- Configuring incomplete, errors occurred!
See also "/home/user/LinusTrinus-master/samples/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
cp: cannot stat './bin/linux64': No such file or directory
rm: cannot remove 'cmake_install.cmake': No such file or directory
rm: cannot remove 'Makefile': No such file or directory
rm: cannot remove 'driver_linus_trinus/cmake_install.cmake': No such file or directory
rm: cannot remove 'driver_linus_trinus/Makefile': No such file or directory
SakiiCode commented 2 years ago

Solution in #16