Ubuntu 14.04 上的 Oculus DK2 安装 - 找不到 ludev

Oculus DK2 installation on Ubuntu 14.04 - cannot find 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 个多月了,还没有使用,因为安装无法解决。

您需要安装 libudevlibudev-dev 软件包。

sudo apt-get install libudev-dev libudev0 

http://packages.ubuntu.com/precise/i386/libudev0/download 获取 ludev 下载它,然后用

安装包
sudo dpkg -i libudev0_175-0ubuntu9_i386.deb

您可能需要做一个

sudo apt-get install libudev-dev libudev0

为了好的措施 现在你可以做 make , make 运行