尝试运行搅拌机时出现分段错误

尝试运行搅拌机时出现分段错误

我已经为此工作了几个小时,不知道还能去哪里。我最初开始在我的 Ubuntu Desktop v 14.04 上构建 Blender,基于指南。设置 git 没有问题...至少据我所知。

尝试运行后./install_deps.sh我会在最后得到以下输出:

WARNING! ****WARNING****
If you are experiencing issues building Blender, _*TRY A FRESH, CLEAN BUILD FIRST*_!
The same goes for install_deps itself, if you encounter issues, please first erase everything in /home/david/src/blender-deps and /opt/lib
(provided obviously you did not add anything yourself in those dirs!), and run install_deps.sh again!
Often, changes in the libs built by this script, or in your distro package, cannot be handled simply, so...

You may also try to use the '--build-foo' options to bypass your distribution's packages
for some troublesome/buggy libraries...


Ran with:
    install_deps.sh 


If you're using CMake add this to your configuration flags:
  -D WITH_CODEC_SNDFILE=ON
  -D PYTHON_VERSION=3.5
  -D PYTHON_ROOT_DIR=/opt/lib/python-3.5
  -D WITH_OPENCOLORIO=ON
  -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio
  -D OPENEXR_ROOT_DIR=/opt/lib/openexr
  -D WITH_OPENIMAGEIO=ON
  -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio
  -D WITH_CYCLES_OSL=ON
  -D WITH_LLVM=ON
  -D LLVM_VERSION=3.4
  -D CYCLES_OSL=/opt/lib/osl
  -D WITH_OPENSUBDIV=ON
  -D OPENSUBDIV_ROOT_DIR=/opt/lib/osd
  -D WITH_CODEC_FFMPEG=ON
  -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;swresample;lzma;rt;theoradec;theoraenc;theora;vorbis;vorbisfile;vorbisenc;ogg;x264;openjpeg'
  -D FFMPEG=/opt/lib/ffmpeg

Or even simpler, just run (in your blender-source dir):
  make -j1 BUILD_CMAKE_ARGS="-U *SNDFILE* -U *PYTHON* -U *BOOST* -U *Boost* -U *OPENCOLORIO* -U *OPENEXR* -U *OPENIMAGEIO* -U *LLVM* -U *CYCLES* -U *OPENSUBDIV* -U *COLLADA* -U *FFMPEG* -D WITH_CODEC_SNDFILE=ON -D PYTHON_VERSION=3.5 -D PYTHON_ROOT_DIR=/opt/lib/python-3.5 -D WITH_OPENCOLORIO=ON -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio -D OPENEXR_ROOT_DIR=/opt/lib/openexr -D WITH_OPENIMAGEIO=ON -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio -D WITH_CYCLES_OSL=ON -D WITH_LLVM=ON -D LLVM_VERSION=3.4 -D CYCLES_OSL=/opt/lib/osl -D WITH_OPENSUBDIV=ON -D OPENSUBDIV_ROOT_DIR=/opt/lib/osd -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;swresample;lzma;rt;theoradec;theoraenc;theora;vorbis;vorbisfile;vorbisenc;ogg;x264;openjpeg' -D FFMPEG=/opt/lib/ffmpeg"

This information has been written to /home/david/Documents/blender/build_files/build_environment/BUILD_NOTES.txt

当然,我尝试运行警告结束时建议的命令:

make -j1 BUILD_CMAKE_ARGS="-U *SNDFILE* -U *PYTHON* -U *BOOST* -U *Boost* -U *OPENCOLORIO* -U *OPENEXR* -U *OPENIMAGEIO* -U *LLVM* -U *CYCLES* -U *OPENSUBDIV* -U *COLLADA* -U *FFMPEG* -D WITH_CODEC_SNDFILE=ON -D PYTHON_VERSION=3.5 -D PYTHON_ROOT_DIR=/opt/lib/python-3.5 -D WITH_OPENCOLORIO=ON -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio -D OPENEXR_ROOT_DIR=/opt/lib/openexr -D WITH_OPENIMAGEIO=ON -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio -D WITH_CYCLES_OSL=ON -D WITH_LLVM=ON -D LLVM_VERSION=3.4 -D CYCLES_OSL=/opt/lib/osl -D WITH_OPENSUBDIV=ON -D OPENSUBDIV_ROOT_DIR=/opt/lib/osd -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;swresample;lzma;rt;theoradec;theoraenc;theora;vorbis;vorbisfile;vorbisenc;ogg;x264;openjpeg' -D FFMPEG=/opt/lib/ffmpeg"

哪个产生了

edit build configuration with: /home/david/Documents/build_linux/CMakeCache.txt run make again to rebuild.
Blender successfully built, run from: /home/david/Documents/build_linux/bin/blender

尝试运行后./blender我收到以下错误:

found bundled python: /home/david/Documents/build_linux/bin/2.77/python
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

输出如下

# Blender 2.77 (sub 0), Commit date: 2016-04-08 22:25, Hash d09a372

# backtrace
./blender(BLI_system_backtrace+0x1d) [0x136fb1d]
./blender() [0xa201b8]
/lib/x86_64-linux-gnu/libc.so.6(+0x36d40) [0x7f7a25397d40]
/usr/lib/x86_64-linux-gnu/libLLVM-3.4.so.1(_ZN4llvm13EngineBuilder12selectTargetERKNS_6TripleENS_9StringRefES4_RKNS_15SmallVectorImplISsEE+0x1a7) [0x7f7a21a49dd7]
/usr/lib/x86_64-linux-gnu/libLLVM-3.4.so.1(_ZN4llvm13EngineBuilder12selectTargetEv+0x9c) [0x7f7a21a4a27c]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x3b0629) [0x7f7a077a2629]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x3aec28) [0x7f7a077a0c28]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x3d0c4d) [0x7f7a077c2c4d]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x3d2025) [0x7f7a077c4025]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x309e1f) [0x7f7a076fbe1f]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x30304f) [0x7f7a076f504f]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x303537) [0x7f7a076f5537]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x5b7fad) [0x7f7a079a9fad]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x3625e7) [0x7f7a077545e7]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x1d7d20) [0x7f7a075c9d20]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x1ab40b) [0x7f7a0759d40b]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x18e44a) [0x7f7a0758044a]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x18e8b5) [0x7f7a075808b5]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x18edc3) [0x7f7a07580dc3]
/usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so(+0x190583) [0x7f7a07582583]
./blender(ED_region_do_draw+0x6f3) [0xcdc023]
./blender() [0xa242e4]
./blender(wm_draw_update+0x5ac) [0xa2558c]
./blender(WM_main+0x28) [0xa20d68]
./blender(main+0x385) [0xa044d5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f7a25382ec5]
./blender() [0xa1d077]

尝试了几个小时后,我还是没有取得任何进展。所以我重新安装了 Ubuntu(在虚拟机上运行),再次运行了所有程序,但仍然出现相同的错误。显然,一遍又一遍地尝试某件事并期望得到不同的结果,这很疯狂,但我认为重新安装操作系统可以解决问题。结果什么也没发生。

顺便提一下,我觉得很奇怪,没有任何第三方教程(Blender 网站之外)不展示如何使用 Ubuntu 设置 Blender 构建环境。或者也许有,但我找不到。

如果我遗漏了任何有帮助的其他信息,请告诉我,我会将其包括在内。

答案1

安装 Ubuntu 15.10 后,我能够让它工作。所有步骤均准确复制。

问题已修复,但请注意:它似乎使用的是 Python 2.77。我的理解是 Blender 需要 Python 3.x。我将对此进行调查。

相关内容