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

时间:2015-02-14 15:33:18

标签: linux ubuntu oculus

当我运行命令时,从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个多月了,还没有使用,因为安装无法解决。

2 个答案:

答案 0 :(得分:4)

您需要安装libudevlibudev-dev个包。

sudo apt-get install libudev-dev libudev0 

答案 1 :(得分:1)

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 run