blender数据采集(二)

ubuntu14完美编译blender

su
(输入密码)
cd ~
mkdir git
cd ~/git
git clone http://git.blender.org/blender.git(!一定要用这个地址,否则后面找不到submodule)
cd ~/git/blender
git submodule update --init --recursive
git submodule foreach git checkout master
chmod +x ~/git/blender/build_files/build_environment/install_deps.sh
~/git/blender/build_files/build_environment/install_deps.sh(!一定要运行,否则后面make失败)
cd ~/git/blender
make(产生build_linux文件夹)
~/git/blender/build_linux/bin/blender(运行blender)

QtCreator导入blender实时修改源码编译并运行

如上述所述编译并能运行后

cd ~/git/blender/build_linux(!一定要到这个目录,否则下条命令执行出错)
python3 ../blender/build_files/cmake/cmake_qtcreator_project.py
打开qtcreator,File-> ~/git/blender/build_linux/blender.creator
Projects (在侧工具栏) -> Run,在Executable框,选择~/git/blender/build_linux/bin/blender这个可执行的文件
点击绿三角编译运行

推荐阅读更多精彩内容