Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Errors - Can't find GLEW #28

Closed
CStafford-14 opened this issue Aug 25, 2021 · 3 comments
Closed

Compilation Errors - Can't find GLEW #28

CStafford-14 opened this issue Aug 25, 2021 · 3 comments

Comments

@CStafford-14
Copy link

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
Copy link

Try sudo apt install libglew-dev

@CStafford-14
Copy link
Author

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
Copy link

Solution in #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants