1. 安裝scons, swig1.3,doxygen, openGL(sudo apt-get install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev) 注意若沒安裝swig,編譯時可能會出現(xiàn) “is static and is not compatible with shared target ” 類的錯誤。 2. https://github.com/wdas/partio/ 下:
$ git clone https://github.com/wdas/partio.git
$ cd partio
$ scons -j 4 就可以了~
如果出現(xiàn) “/usr/bin/ld: cannot find -lGL”,進行如下步驟: sudo rm /usr/lib/libGL.so sudo ln -s /usr/lib/libGL.so.xxx.xx /usr/lib/libGL.so
如果出現(xiàn)"cc1plus: warnings being treated as errors",則打開Sconstruct文件,將所有的-Werror刪除
=============================================== 部署python的partio: 將/partio/dist/Linux-2.6.32-x86_64-optimize/lib/python2.6/site-packages 中的兩個文件, 拷貝到/usr/lib/python2.6/dist-packages . (如果之間將dist中的所有內(nèi)容拷貝到/usr下,partio.py會被拷貝到/usr/lib/python2.6/site-packages中, 但site-package不在默認的sys.path中,所以需要移動到dist-packages去。)
|