mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 04:58:37 +00:00
blender: build with strict options to prevent unexpected missing libs
Blender build will, by default, warn for most missing libs and silently disable the feature. This can cause unexpected behavior, so instead flip its option to turn those warnings into errors. This, for example, would have caught at build time (rather than runtime) the previously-missing wayland-scanner dependency that caused crashes. As a result, adjust existing build config to reflect reality and fix the “new” errors.
This commit is contained in:
parent
1b93140f68
commit
6faf3cb673
@ -158,20 +158,28 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-DPYTHON_NUMPY_PATH=${python3Packages.numpy}/${python3.sitePackages}"
|
||||
"-DPYTHON_VERSION=${python3.pythonVersion}"
|
||||
"-DWITH_ALEMBIC=ON"
|
||||
"-DWITH_BUILDINFO=OFF"
|
||||
"-DWITH_CODEC_FFMPEG=ON"
|
||||
"-DWITH_CODEC_SNDFILE=ON"
|
||||
"-DWITH_CPU_CHECK=OFF"
|
||||
"-DWITH_CYCLES_DEVICE_OPTIX=${if cudaSupport then "ON" else "OFF"}"
|
||||
"-DWITH_CYCLES_OSL=OFF"
|
||||
"-DWITH_FFTW3=ON"
|
||||
"-DWITH_IMAGE_OPENJPEG=ON"
|
||||
"-DWITH_INSTALL_PORTABLE=OFF"
|
||||
"-DWITH_JACK=${if jackaudioSupport then "ON" else "OFF"}"
|
||||
"-DWITH_LIBS_PRECOMPILED=OFF"
|
||||
"-DWITH_MOD_OCEANSIM=ON"
|
||||
"-DWITH_OPENCOLLADA=${if colladaSupport then "ON" else "OFF"}"
|
||||
"-DWITH_OPENCOLORIO=ON"
|
||||
"-DWITH_OPENSUBDIV=ON"
|
||||
"-DWITH_OPENVDB=ON"
|
||||
"-DWITH_PULSEAUDIO=OFF"
|
||||
"-DWITH_PYTHON_INSTALL=OFF"
|
||||
"-DWITH_PYTHON_INSTALL_NUMPY=OFF"
|
||||
"-DWITH_PYTHON_INSTALL_REQUESTS=OFF"
|
||||
"-DWITH_SDL=OFF"
|
||||
"-DWITH_STRICT_BUILD_OPTIONS=ON"
|
||||
"-DWITH_TBB=ON"
|
||||
"-DWITH_USD=ON"
|
||||
|
||||
@ -190,16 +198,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
"-DLIBDIR=/does-not-exist"
|
||||
"-DWITH_CYCLES_OSL=OFF" # causes segfault on aarch64-darwin
|
||||
"-DSSE2NEON_INCLUDE_DIR=${sse2neon}/lib"
|
||||
"-DWITH_USD=OFF" # currently fails on darwin
|
||||
]
|
||||
++ lib.optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS=" # Clang doesn't support "-export-dynamic"
|
||||
++ lib.optional jackaudioSupport "-DWITH_JACK=ON"
|
||||
++ lib.optionals cudaSupport [
|
||||
"-DOPTIX_ROOT_DIR=${optix}"
|
||||
"-DWITH_CYCLES_CUDA_BINARIES=ON"
|
||||
"-DWITH_CYCLES_DEVICE_OPTIX=ON"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
|
Loading…
Reference in New Issue
Block a user