1、获取Qt/3D源码 cd ~/Workshop git clone git://gitorious.org/qt-labs/qt3d.git
2、编译Qt cd ~/Workshop/qt-4.7.1 ./configure -debug -opensource -comfirm-license -opengl -qvfb -nomake docs make sudo make install
3、编译Qt/3D cd ~/Workshop/qt3d ../qt-4.7.1/bin/qmake opengl.pro make 在make过程中报错了 4、编译错误解决方法 sudo apt-get install libdbus-1-dev cd ~/Workshop/qt-4.7.1 ./configure -debug -qvfb -confirm-license -opengl -declarative -nomake docs -developer-build -dbus -opensource make sudo make install cd ~/Workshop/qt3d ../qt-4.7.1/bin/qmake opengl.pro make sudo make install
5、测试 export LD_LIBRARY_PATH=~/Workshop/qt3d/lib:$LD_LIBRARY_PATH cd ~/Workshop/qt3d/bin ./painter