Difficulty Building Blender in Ubuntu 18.04

Hello, I would like help building Blender for Ubuntu 18.04 LTS.

I’ve followed the instructions here for the Advanced Setup (building the dependencies with install_deps). I have tried deleting the /opt/lib directory and re-building the dependencies. I have gotten Blender to build with make in the past, but I’ve always had a lot of trouble with building on Ubuntu. I can get make lite to build consistently, but very rarely does make or make full work.

I have installed the Optix libraries. I’m not sure if I’ve actually installed CUDA… nor do I know how to do this on Linux. I have never had trouble building on Windows, including CUDA/Cycles.

I am running:
sudo ./install_deps.sh --force-python --force-numpy --force-oidn
because I’ve had difficulty getting certain addons working even in successful builds. I’ve added --force-oidn because I want to try this hack for myself. I added --force-oidn because I noticed that make wasn’t finding the OpenImageDeNoise library.

Here’s the build log:


Configuring Blender in "/home/theangerspecialist/blender-git/build_linux" ...
-- #define OPENEXR_VERSION_STRING "2.4.0"
-- Could NOT find OpenCOLLADA (missing: _opencollada_LIBRARIES _opencollada_INCLUDES) 
-- Found OPENVDB: /opt/lib/openvdb/lib/libopenvdb.so  
-- Found ALEMBIC: /opt/lib/alembic/lib/libAlembic.a  
-- Found USD: /opt/lib/usd/lib/libusd_ms.so  
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   filesystem
--   regex
--   thread
--   date_time
--   wave
--   locale
--   iostreams
--   system
--   chrono
--   atomic
--   serialization
-- Could NOT find OpenImageDenoise (missing: OPENIMAGEDENOISE_LIBRARY OPENIMAGEDENOISE_INCLUDE_DIR) 
-- OpenImageDenoise not found
-- Found LLVM: /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so  
-- Found OpenMP_C: -fopenmp  
-- Found OpenMP_CXX: -fopenmp  
-- Found OpenMP_C: -fopenmp  
-- Found OpenMP_CXX: -fopenmp  
-- Unsupported CFLAG: -Wabsolute-value
-- numpy found at '/usr/lib/python3/dist-packages'
-- requests found at '/usr/lib/python3/dist-packages'
-- Disabling render tests because OIIO idiff does not exist
-- Configuring done
-- Generating done
-- Build files have been written to: /home/theangerspecialist/blender-git/build_linux

Building Blender ...
make -s -C "/home/theangerspecialist/blender-git/build_linux" -j 16 install
[  0%] Built target bf_intern_numaapi
[  0%] Built target bf_intern_string
[  0%] Built target bf_intern_clog
[  0%] Built target bf_intern_glew_mx
[  1%] Built target datatoc
[  1%] Built target bf_intern_mikktspace
[  1%] Built target bf_intern_audaspace
[  1%] Built target bf_intern_memutil
[  1%] Built target bf_intern_guardedalloc
[  1%] Built target bf_dna_blenlib
[  2%] Built target bf_intern_ghost
[  2%] Built target bf_intern_dualcon
[  2%] Built target bf_intern_eigen
[  2%] Built target bf_intern_iksolver
[  2%] Built target extern_cuew
[  2%] Built target bf_intern_locale
[  2%] Built target extern_clew
[  2%] Built target bf_intern_rigidbody
[  2%] Built target bf_intern_libc_compat
[  2%] Built target makesdna
[  2%] Built target cycles_subd
[  3%] Built target bf_intern_openvdb
[  3%] Built target bf_intern_mantaflow
[  5%] Built target cycles_osl_shaders
[  6%] Built target cycles_util
[  6%] Built target extern_curve_fit_nd
[  6%] Built target bf_intern_quadriflow
[  6%] Built target extern_rangetree
[  6%] Built target extern_wcwidth
[  6%] Built target extern_binreloc
[  6%] Built target extern_glew
[  6%] Built target extern_minilzo
[  6%] Built target extern_lzma
[  7%] Built target bf_intern_itasc
[  7%] Built target extern_xdnd
[  7%] Built target extern_glog
[  7%] Built target extern_gflags
[  8%] Built target dracoenc
[  8%] Building CXX object extern/audaspace/CMakeFiles/audaspace.dir/plugins/sdl/SDLDevice.cpp.o
[ 11%] Built target extern_mantaflow
[ 11%] Built target extern_quadriflow
[ 15%] Built target extern_bullet
[ 15%] Built target datatoc_icon
[ 16%] Built target bf_intern_libmv
extern/audaspace/CMakeFiles/audaspace.dir/build.make:2774: recipe for target 'extern/audaspace/CMakeFiles/audaspace.dir/plugins/sdl/SDLDevice.cpp.o' failed
CMakeFiles/Makefile2:3037: recipe for target 'extern/audaspace/CMakeFiles/audaspace.dir/all' failed
[ 19%] Built target extern_ceres
Scanning dependencies of target bf_editor_mask
Scanning dependencies of target bf_editor_curve
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_add.c.o
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_edit.c.o
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_draw.c.o
Scanning dependencies of target bf_editor_gizmo_library
Scanning dependencies of target bf_editor_physics
[ 19%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/curve_ops.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_draw_utils.c.o
[ 19%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/dynamicpaint_ops.c.o
Scanning dependencies of target bf_editor_io
Scanning dependencies of target bf_editor_lattice
[ 19%] Building C object source/blender/editors/io/CMakeFiles/bf_editor_io.dir/io_alembic.c.o
Scanning dependencies of target bf_editor_metaball
[ 19%] Building C object source/blender/editors/lattice/CMakeFiles/bf_editor_lattice.dir/editlattice_select.c.o
[ 19%] Building C object source/blender/editors/metaball/CMakeFiles/bf_editor_metaball.dir/editmball_undo.c.o
Scanning dependencies of target bf_editor_render
[ 19%] Building C object source/blender/editors/render/CMakeFiles/bf_editor_render.dir/render_internal.c.o
[ 19%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editcurve.c.o
[ 19%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editcurve_add.c.o
[ 19%] Building C object source/blender/editors/metaball/CMakeFiles/bf_editor_metaball.dir/mball_edit.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_library_presets.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_library_utils.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_types/arrow3d_gizmo.c.o
[ 19%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/particle_boids.c.o
[ 19%] Building C object source/blender/editors/io/CMakeFiles/bf_editor_io.dir/io_cache.c.o
Scanning dependencies of target bf_editor_object
[ 19%] Building C object source/blender/editors/io/CMakeFiles/bf_editor_io.dir/io_collada.c.o
[ 19%] Building C object source/blender/editors/lattice/CMakeFiles/bf_editor_lattice.dir/editlattice_tools.c.o
[ 19%] Building C object source/blender/editors/lattice/CMakeFiles/bf_editor_lattice.dir/editlattice_undo.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_add.c.o
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_editaction.c.o
Scanning dependencies of target bf_editor_armature
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_ops.c.o
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_add.c.o
Scanning dependencies of target bf_editor_animation
Scanning dependencies of target bf_editor_gpencil
[ 19%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_channels_defines.c.o
Scanning dependencies of target bf_editor_interface
Scanning dependencies of target bf_editor_mesh
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/annotate_draw.c.o
[ 19%] Building C object source/blender/editors/metaball/CMakeFiles/bf_editor_metaball.dir/mball_ops.c.o
[ 19%] Building C object source/blender/editors/io/CMakeFiles/bf_editor_io.dir/io_ops.c.o
[ 19%] Building C object source/blender/editors/render/CMakeFiles/bf_editor_render.dir/render_opengl.c.o
[ 19%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editface.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_add.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_add_gizmo.c.o
[ 19%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/particle_edit.c.o
[ 19%] Linking C static library ../../../../lib/libbf_editor_metaball.a
[ 19%] Building C object source/blender/editors/io/CMakeFiles/bf_editor_io.dir/io_usd.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_types/blank3d_gizmo.c.o
[ 19%] Building C object source/blender/editors/lattice/CMakeFiles/bf_editor_lattice.dir/lattice_ops.c.o
[ 19%] Built target bf_editor_metaball
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_types/button2d_gizmo.c.o
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_edit.c.o
[ 19%] Linking C static library ../../../../lib/libbf_editor_lattice.a
[ 19%] Linking C static library ../../../../lib/libbf_editor_io.a
[ 19%] Built target bf_editor_lattice
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_naming.c.o
[ 19%] Built target bf_editor_io
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_ops.c.o
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_relations.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_types/cage2d_gizmo.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/annotate_paint.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/drawgpencil.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/editaction_gpencil.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_add_monkey.c.o
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_query.c.o
[ 19%] Building C object source/blender/editors/render/CMakeFiles/bf_editor_render.dir/render_ops.c.o
[ 19%] Building C object source/blender/editors/render/CMakeFiles/bf_editor_render.dir/render_preview.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_add_stroke.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_armature.c.o
[ 19%] Building C object source/blender/editors/render/CMakeFiles/bf_editor_render.dir/render_update.c.o
[ 19%] Building C object source/blender/editors/render/CMakeFiles/bf_editor_render.dir/render_shading.c.o
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_skinning.c.o
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_select.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_automerge.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_bake.c.o
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_relationships.c.o
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_select.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_types/cage3d_gizmo.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_bisect.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_bevel.c.o
[ 19%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_channels_edit.c.o
[ 19%] Building C object source/blender/editors/mask/CMakeFiles/bf_editor_mask.dir/mask_shapekey.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_bake_api.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_convert.c.o
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_utils.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_collection.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_types/dial3d_gizmo.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_types/move3d_gizmo.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_data.c.o
[ 19%] Linking C static library ../../../../lib/libbf_editor_mask.a
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_edit.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_extrude.c.o
[ 19%] Building C object source/blender/editors/render/CMakeFiles/bf_editor_render.dir/render_view.c.o
[ 19%] Built target bf_editor_mask
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/editarmature_undo.c.o
[ 19%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/meshlaplacian.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_constraint.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_data_transfer.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_data_transform.c.o
[ 19%] Linking C static library ../../../../lib/libbf_editor_render.a
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_edit.c.o
[ 19%] Building C object source/blender/editors/gizmo_library/CMakeFiles/bf_editor_gizmo_library.dir/gizmo_types/primitive3d_gizmo.c.o
[ 19%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_deps.c.o
[ 19%] Built target bf_editor_render
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_facemap_ops.c.o
[ 19%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_anim.c.o
[ 19%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_context_menu.c.o
[ 19%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_draw.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_extrude_spin.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_extrude_screw.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_gpencil_modifier.c.o
[ 19%] Linking C static library ../../../../lib/libbf_editor_gizmo_library.a
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_hook.c.o
[ 19%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_filter.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_modes.c.o
[ 19%] Built target bf_editor_gizmo_library
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_modifier.c.o
[ 19%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/particle_edit_undo.c.o
[ 19%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_fill.c.o
[ 19%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_extrude_spin_gizmo.c.o
[ 19%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_draw.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_random.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_ops.c.o
[ 19%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_eyedropper.c.o
[ 19%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_eyedropper_color.c.o
[ 19%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_eyedropper_colorband.c.o
[ 19%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_eyedropper_datablock.c.o
[ 19%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/particle_object.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_relations.c.o
[ 19%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_remesh.c.o
[ 19%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/physics_fluid.c.o
[ 19%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editcurve_paint.c.o
[ 20%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_edit.c.o
[ 20%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editcurve_query.c.o
[ 20%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editcurve_undo.c.o
[ 20%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editcurve_select.c.o
[ 20%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editfont.c.o
[ 20%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_inset.c.o
[ 20%] Building C object source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editfont_undo.c.o
[ 20%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_intersect.c.o
[ 20%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_ipo_utils.c.o
[ 20%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_interpolate.c.o
[ 20%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/physics_ops.c.o
[ 20%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_merge.c.o
[ 20%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_select.c.o
[ 20%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_shader_fx.c.o
[ 20%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_shapekey.c.o
[ 20%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_transform.c.o
[ 20%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_group.c.o
[ 20%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/physics_pointcache.c.o
[ 20%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_markers.c.o
[ 20%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/rigidbody_constraint.c.o
[ 20%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/rigidbody_object.c.o
[ 20%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_lib.c.o
[ 20%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_knife.c.o
[ 20%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_utils.c.o
[ 20%] Building C object source/blender/editors/physics/CMakeFiles/bf_editor_physics.dir/rigidbody_world.c.o
[ 20%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_eyedropper_depth.c.o
[ 20%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_select.c.o
[ 20%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_eyedropper_driver.c.o
[ 20%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_slide.c.o
[ 20%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_ops.c.o
[ 20%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_eyedropper_gpencil_color.c.o
[ 20%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_knife_project.c.o
[ 20%] Linking C static library ../../../../lib/libbf_editor_curve.a
[ 20%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_loopcut.c.o
[ 20%] Linking C static library ../../../../lib/libbf_editor_physics.a
[ 20%] Built target bf_editor_curve
[ 20%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_ops_versioning.c.o
[ 20%] Built target bf_editor_physics
[ 20%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_mask_extract.c.o
[ 20%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_path.c.o
[ 20%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_paint.c.o
[ 20%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_polybuild.c.o
[ 20%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_primitive.c.o
[ 20%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_handlers.c.o
[ 20%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_icons.c.o
[ 20%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_icons_event.c.o
[ 20%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_motion_paths.c.o
[ 20%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_ops.c.o
[ 20%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/drivers.c.o
[ 21%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_preselect_edgering.c.o
[ 21%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_vgroup.c.o
[ 21%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_preselect_elem.c.o
[ 21%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_utils.c.o
[ 21%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_transform.c.o
[ 21%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_layout.c.o
[ 21%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_volume.c.o
[ 21%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_sculpt_paint.c.o
[ 21%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/fmodifier_ui.c.o
[ 21%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_select.c.o
[ 21%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_draw.c.o
[ 21%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_rip.c.o
[ 21%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_rip_edge.c.o
[ 21%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_edit.c.o
[ 21%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_select.c.o
[ 22%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_undo.c.o
[ 22%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_general.c.o
[ 22%] Linking C static library ../../../../lib/libbf_editor_armature.a
[ 22%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_select_similar.c.o
[ 22%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_tools.c.o
[ 22%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_undo.c.o
[ 22%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/editmesh_utils.c.o
[ 22%] Built target bf_editor_armature
[ 22%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/mesh_data.c.o
[ 22%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/mesh_mirror.c.o
[ 22%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_ops.c.o
[ 22%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_panel.c.o
[ 22%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_query.c.o
[ 22%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_utils.c.o
[ 22%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/mesh_ops.c.o
[ 22%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframing.c.o
[ 22%] Building C object source/blender/editors/mesh/CMakeFiles/bf_editor_mesh.dir/meshtools.c.o
[ 22%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyingsets.c.o
[ 22%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/time_scrub_ui.c.o
[ 22%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_uv.c.o
[ 22%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_region_color_picker.c.o
[ 22%] Building C object source/blender/editors/object/CMakeFiles/bf_editor_object.dir/object_warp.c.o
[ 22%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_region_hud.c.o
[ 22%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_region_menu_pie.c.o
[ 22%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_region_menu_popup.c.o
[ 22%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_vertex_ops.c.o
[ 22%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_region_popover.c.o
[ 23%] Linking C static library ../../../../lib/libbf_editor_object.a
[ 23%] Built target bf_editor_object
[ 23%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_vertex_paint.c.o
[ 23%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_region_popup.c.o
[ 23%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_region_search.c.o
[ 23%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_region_tooltip.c.o
[ 23%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_regions.c.o
[ 23%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_templates.c.o
[ 23%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/interface_utils.c.o
[ 23%] Linking C static library ../../../../lib/libbf_editor_animation.a
[ 23%] Building C object source/blender/editors/gpencil/CMakeFiles/bf_editor_gpencil.dir/gpencil_weight_paint.c.o
[ 23%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/resources.c.o
[ 23%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/view2d.c.o
[ 23%] Built target bf_editor_animation
[ 24%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/view2d_gizmo_navigate.c.o
[ 24%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/view2d_draw.c.o
[ 24%] Building C object source/blender/editors/interface/CMakeFiles/bf_editor_interface.dir/view2d_ops.c.o
[ 24%] Linking C static library ../../../../lib/libbf_editor_gpencil.a
[ 24%] Built target bf_editor_gpencil
[ 24%] Linking C static library ../../../../lib/libbf_editor_mesh.a
[ 24%] Linking C static library ../../../../lib/libbf_editor_interface.a
[ 24%] Built target bf_editor_mesh
[ 24%] Built target bf_editor_interface
Makefile:162: recipe for target 'all' failed
GNUmakefile:310: recipe for target 'all' failed

Also worth noting – it looks like Blender can’t find SDL? I can’t seem to find a package for this, which is odd. It’s also not finding OpenCollada, even though I’m sure install_deps.sh is making that. I used --show-deps to get this list of packages that I should be able to get from my distro:

 Basics of dev environment (cmake, gcc, svn , git, ...).
    * libjpeg, libpng, libtiff, [openjpeg2], [libopenal].
    * libx11, libxcursor, libxi, libxrandr, libxinerama (and other libx... as needed).
    * libsqlite3, libbz2, libssl, libfftw3, libxml2, libtinyxml, yasm, libyaml-cpp.
    * libsdl1.2, libglew, [libglewmx].

Then I tried to install these packages… here’s what I get:

theangerspecialist@theangerspecialist-MS-7B98:~/blender-git/blender/build_files/build_environment$ sudo apt install libjpeg libpng libtiff openjpeg2 libopenal libx11 libxcursor libxi libxrandr libxinerama libsqlite3 libbz2 libssl libfftw3 libxml2 libtinyxml yasm libyaml-cpp libsdl1.2 libglew libglewmx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libbz2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  bzip2 bzip2:i386

Package libsdl1.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package libjpeg
E: Unable to locate package libpng
E: Unable to locate package libtiff
E: Unable to locate package openjpeg2
E: Unable to locate package libopenal
E: Unable to locate package libx11
E: Unable to locate package libxcursor
E: Unable to locate package libxi
E: Unable to locate package libxrandr
E: Unable to locate package libxinerama
E: Unable to locate package libsqlite3
E: Package 'libbz2' has no installation candidate
E: Unable to locate package libssl
E: Unable to locate package libfftw3
E: Unable to locate package libtinyxml
E: Unable to locate package libyaml-cpp
E: Package 'libsdl1.2' has no installation candidate
E: Unable to locate package libglew
E: Unable to locate package libglewmx

I’m really at a loss. Any help would be appreciated!

Also, please can someone point me to a how to for this: “If you're using CMake add this to your configuration flags:” I always just use the make command that install_deps generates for me, but I want to do it the right way.

(could not add as edit due to character limit)
EDIT: Thank you brecht for moving this to the right category. Sorry about that :stuck_out_tongue:

Any reason not to use quick setup with precompiled libraries? It should sidestep all these problems.

  1. stubborness!
  2. I want to learn to do the more advanced things, because I’m trying to get better at computer-science stuff (I have no formal education, so I try to learn by doing).
  3. I’ve tried this in the past, I think I had some problems. … but I’ll go ahead and try again and post the results here.
  4. It seems like this should work if I follow the instructions, so maybe I can help improve the instructions if I’m doing something wrong on accident, or if there are special cases.

Will using pre-compiled libraries work with the Optix libraries I installed in /opt?

I have renamed my /opt/lib directory so that make can no longer find it, checked-out the svn repo in ~/blender-git/lib, run git add -A and git stash and then make clean in the blender repo (~/blender-git/blender), then finally make.

Here is the result:

Configuring Blender in "/home/theangerspecialist/blender-git/build_linux" ...
-- Using pre-compiled LIBDIR: /home/theangerspecialist/blender-git/blender/../lib/linux_centos7_x86_64
CMake Error at build_files/cmake/Modules/FindOpenShadingLanguage.cmake:94 (FILE):
  FILE STRINGS file "/opt/lib/osl/include/OSL/oslversion.h" cannot be read.
Call Stack (most recent call first):
  build_files/cmake/macros.cmake:105 (find_package)
  build_files/cmake/platform/platform_unix.cmake:69 (find_package_static)
  build_files/cmake/platform/platform_unix.cmake:234 (find_package_wrapper)
  CMakeLists.txt:818 (include)


CMake Error at build_files/cmake/Modules/FindOpenShadingLanguage.cmake:96 (FILE):
  FILE STRINGS file "/opt/lib/osl/include/OSL/oslversion.h" cannot be read.
Call Stack (most recent call first):
  build_files/cmake/macros.cmake:105 (find_package)
  build_files/cmake/platform/platform_unix.cmake:69 (find_package_static)
  build_files/cmake/platform/platform_unix.cmake:234 (find_package_wrapper)
  CMakeLists.txt:818 (include)


CMake Error at build_files/cmake/Modules/FindOpenShadingLanguage.cmake:98 (STRING):
  STRING sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  build_files/cmake/macros.cmake:105 (find_package)
  build_files/cmake/platform/platform_unix.cmake:69 (find_package_static)
  build_files/cmake/platform/platform_unix.cmake:234 (find_package_wrapper)
  CMakeLists.txt:818 (include)


CMake Error at build_files/cmake/Modules/FindOpenShadingLanguage.cmake:100 (STRING):
  STRING sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  build_files/cmake/macros.cmake:105 (find_package)
  build_files/cmake/platform/platform_unix.cmake:69 (find_package_static)
  build_files/cmake/platform/platform_unix.cmake:234 (find_package_wrapper)
  CMakeLists.txt:818 (include)


CMake Error at build_files/cmake/platform/platform_unix.cmake:236 (if):
  if given arguments:

    "EQUAL" "1" "AND" "LESS" "6"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:818 (include)


-- Configuring incomplete, errors occurred!
See also "/home/theangerspecialist/blender-git/build_linux/CMakeFiles/CMakeOutput.log".
See also "/home/theangerspecialist/blender-git/build_linux/CMakeFiles/CMakeError.log".
GNUmakefile:310: recipe for target 'all' failed
make: *** [all] Error 1

I’m sure I must have had these errors in the past and given up on the pre-compiled libraries. I have had at least some success making the dependencies.
I’m trying make lite right now.
Edit: make lite results in a successful build.

Thanks :smiley:

Instructions for CUDA and Optix are here. This configuration is entirely separate from the other libraries.
https://wiki.blender.org/wiki/Building_Blender/CUDA

For install_deps.sh I’ll leave it to someone else to help.

1 Like

If you switch between using install_deps.sh and precompiled libraries, you basically need to remove the build folder or CMakeCache.txt entirely to get a clean configuration.

Building things from source (or even using the disto’s binary packages) there will always be issues, the environment can just subtly different between distributions to break stuff, you’ll never have a guide that will cover every possible thing that can go wrong that does not like the unabombers manifesto and will not be incomplete within a couple of days, linux is just a very fast moving target in some distros

Which is one of the reasons we started providing precompiled libraries, time spend on supporting people building blender kinda spiraled out of control, and there is only a limited number of developers available.

People going, yeah well, “spend time helping me do the advanced thing anyway cause it feels like a fun thing to do” doesn’t seem like a super great use of our rather limited resources, not saying we won’t offer any support, but it be very limited.

When you switch from install_deps.sh to the svn libs, it’s best to remove your complete build folder, cmake tends to hold on to things.

1 Like

Does doing a git stash not remove these? I will remove them manually then.

Thanks! I hope I’m not guilty of this. I figure if I can’t get Blender to build without difficulty, I won’t be much good when it comes to actually modifying or contributing to it! But the pre-compiled builds seem to be doing something now that I’ve removed the build folder. Perhaps I could have made the install-deps work if I had tried this, too?

Is there a thread somewhere that discusses when to build the dependencies and why? Is it best to always use pre-compiled builds?

And also… It worked! Hooray! :fireworks: :partying_face: :champagne:

Thanks @brecht and @LazyDodo for the help!

Git only manages the source folders, your build folder should be outside the source folder hence not managed by git.

1 Like

Hey! Not sure why your comment was flagged as spam (maybe because you should have opened your own thread?) But you can build the current 2.83 by checking out the 2.83 branch from the git repo. You can check the branch out by git checkout blender-v2.83-release Now if you want an exact, byte-for-byte Blender 2.83, there are scripts in the build files that will make it the way the buildbot does, but that’s something that you’ll have to ask around for more info about, since I don’t really know.
@viadvena