1. 安装scons, swig1.3,doxygen, openGL(sudo apt-get install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev) 注意若没安装swig,编译时可能会出现 “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 就可以了~
如果出现 “/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
如果出现"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中的所有内容拷贝到/usr下,partio.py会被拷贝到/usr/lib/python2.6/site-packages中, 但site-package不在默认的sys.path中,所以需要移动到dist-packages去。)
|