我查看了这个链接并尝试了所有的说明http://ddudek.pl/?p=39
首先我尝试了这个
sudo add-apt-repository ppa:ddudek/stereo3d-stable
sudo apt-get update
sudo apt-get install compiz-plugin-stereo3d
但没有可用的插件
然后我尝试了其他发行版的构建说明
无法用此下载代码
bzr branch lp:compiz-plugin-stereo3d/stable
我有
bzr: ERROR: Already a branch: "stable".
从这里逐一下载源代码:
http://bazaar.launchpad.net/~ddudek/compiz-plugin-stereo3d/trunk/files/1/
并遵循这些说明
cd [plugin]
mkdir build
cd build
cmake ..
make
sudo make install
Build dependencies are:
compiz-dev compiz-plugins-main-dev intltool libgconf2-dev libglib2.0-dev
libtool libglu1-mesa-dev libjpeg62-dev libxml2-dev libxslt1-dev pkg-config
xsltproc libcairo2-dev libpango1.0-dev librsvg2-dev libsm-dev libdbus-1-dev
libdecoration0-dev libboost1.46-dev libboost-serialization1.46-dev cmake
但得到了::
E:软件包“libboost1.46-dev”没有安装候选项 E:软件包“libboost-serialization1.46-dev”没有安装候选项
而且 cmake 行不完整,所以当然无法运行
所以如果有人能帮助我一步一步的指导,我会非常感激
编辑
好的,cmake .. 工作正常,但是当我尝试安装时,出现了一堆错误
[ 18%] Built target stereoscopicoutput_gsettings_schema
[ 27%] Built target compiz_gsettings_compile_local
[ 36%] Building CXX object CMakeFiles/stereoscopicoutput.dir/src/stereoscopicoutput.cpp.o
In file included from /home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:14:0:
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:98:57: error: ‘GLFragment’ has not been declared
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:98:76: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:108:53: error: ‘GLFragment’ has not been declared
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:108:72: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:124:53: error: ‘GLFragment’ has not been declared
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:124:72: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:128:9: error: ‘GLFragment’ does not name a type
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:130:9: error: ‘GLFragment’ does not name a type
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:295:21: error: ‘GLFragment’ has not been declared
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:295:40: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:301:5: error: ‘GLFragment’ has not been declared
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.h:301:28: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:375:5: error: ‘GLFragment’ has not been declared
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:375:24: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp: In member function ‘bool StereoscopicOutputWindow::glDraw(const GLMatrix&, int)’:
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:381:5: error: ‘mask’ was not declared in this scope
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:390:43: error: ‘fragment’ was not declared in this scope
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:390:53: error: ‘region’ was not declared in this scope
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp: In member function ‘void StereoscopicOutputWindow::glDrawGeometry()’:
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:476:18: error: ‘class GLWindow’ has no member named ‘glDrawGeometry’
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp: At global scope:
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:481:5: error: ‘GLFragment’ has not been declared
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:481:24: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp: In member function ‘void StereoscopicOutputWindow::glDrawTexture(GLTexture*, int)’:
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:484:5: error: ‘GLFragment’ has not been declared
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:484:24: error: expected ‘;’ before ‘fa’
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:494:76: error: ‘fa’ was not declared in this scope
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:510:39: error: ‘fa’ was not declared in this scope
/home/w/Downloads/stereo-3d-plugin/src/stereoscopicoutput.cpp:510:43: error: ‘mask’ was not declared in this scope
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-unused-private-field" [enabled by default]
make[2]: *** [CMakeFiles/stereoscopicoutput.dir/src/stereoscopicoutput.cpp.o] Error 1
make[1]: *** [CMakeFiles/stereoscopicoutput.dir/all] Error 2
make: *** [all] Error 2
root@w-VirtualBox:/home/w/Downloads/stereo-3d-plugin/build#
有人能给我一些建议吗?我的文件夹布局与此链接相同http://bazaar.launchpad.net/~ddudek/compiz-plugin-stereo3d/trunk/files/1/包含该链接中的那些文件