系统相关
首页 > 系统相关> > linux – Oculus DK2安装在Ubuntu 14.04上 – 找不到ludev

linux – Oculus DK2安装在Ubuntu 14.04上 – 找不到ludev

作者:互联网

当我运行命令,从0.4.4 oculus linux包中制作时,我不断收到此错误:

g++  -o ./Release/OculusWorldDemo_x86_64_Debug  ./Obj/Linux/Debug/x86_64/OculusWorldDemo.o ./Obj/Linux/Debug/x86_64/OculusWorldDemo_Scene.o ./Obj/Linux/Debug/x86_64/Player.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Util/RenderProfiler.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Util/OptionMenu.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Platform/Linux_Gamepad.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Platform/Linux_Platform.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Platform/Platform.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_Device.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_GL_Device.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_LoadTextureDDS.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_LoadTextureTGA.o ./Obj/Linux/Debug/x86_64/../CommonSrc/Render/Render_XmlSceneLoader.o ./Obj/Linux/Debug/x86_64/../../3rdParty/TinyXml/tinyxml2.o -L../../LibOVR/Lib/Linux/Debug/x86_64 -lovr -ludev -lpthread -lGL -lX11 -lXrandr -lrt
/usr/bin/ld: cannot find -ludev
collect2: error: ld returned 1 exit status
make[1]: *** [Release/OculusWorldDemo_x86_64_Debug] Error 1
make[1]: Leaving directory `/mo/software/oculus/ovr_sdk_linux_0.4.4/Samples/OculusWorldDemo'
make: *** [Samples/OculusWorldDemo/Release/OculusWorldDemo_x86_64_Debug] Error 2

我需要做些什么才能使Oculus工作?我已经有2个多月了,还没有使用,因为安装无法解决.

解决方法:

您需要安装libudevand libudev-dev软件包.

sudo apt-get install libudev-dev libudev0 

标签:ubuntu,linux,oculus
来源: https://codeday.me/bug/20190609/1205903.html