如何从源代码构建 Compiz?

oid*_*alc 7 compiling compiz install-from-source

与为 Unity 提出的这个问题类似,我想知道从源代码构建Compiz最新开发版本的正确程序是什么。

特别是,了解是否可以安装它以避免从存储库中破坏存储库的风险会很有用(可能使用 checkinstall,或将其安装在不同的位置?)

oid*_*alc 5

我在启动板上找到了同样的问题和相关答案

具体来说:

mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/staging
make install

And then in a VT (Ctrl+Alt+F1):
cd ~/staging
env DISPLAY=:0 LD_LIBRARY_PATH=./lib ./bin/compiz --replace composite opengl move resize decor compiztoolbox mousepoll wall expo animation switcher
Run Code Online (Sandbox Code Playgroud)

这样你就不会影响你的系统安装。一切都从 ~/staging 运行。