Hi all, I’m looking to explore blender code and hopefully make some contributions.
I’m running Arch Linux in a virtual machine in Chrome OS’ Crostini environment.
When installing build deps, OpenSubDivision build failed first, so I skipped it(will post error later)… I managed to install it using Arch Linux packages.
All the Blender code compiles, but I’m getting failure in the final linking phase. Can anyone suggest the next steps for troubleshooting this?
make[2]: Entering directory '/home/spundun/blender-git/build_linux'
[100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
[100%] Linking CXX executable ../../bin/blender
/opt/lib/usd/lib/libusd_usd_ms.so: error: undefined reference to '__free_hook'
/opt/lib/usd/lib/libusd_usd_ms.so: error: undefined reference to '__realloc_hook'
/opt/lib/usd/lib/libusd_usd_ms.so: error: undefined reference to '__memalign_hook'
/opt/lib/usd/lib/libusd_usd_ms.so: error: undefined reference to '__malloc_hook'
../../lib/libextern_mantaflow.a(iovdb.cpp.o):iovdb.cpp:function openvdb::v9_1::points::TypedAttributeArray<openvdb::v9_1::math::Vec3<float>, openvdb::v9_1::points::TruncateCodec>::copy() const: error: undefined reference to 'openvdb::v9_1::points::AttributeArray::AttributeArray(openvdb::v9_1::points::AttributeArray const&, tbb::spin_mutex::scoped_lock const&)'
../../lib/libextern_mantaflow.a(iovdb.cpp.o):iovdb.cpp:function openvdb::v9_1::points::TypedAttributeArray<float, openvdb::v9_1::points::TruncateCodec>::copy() const: error: undefined reference to 'openvdb::v9_1::points::AttributeArray::AttributeArray(openvdb::v9_1::points::AttributeArray const&, tbb::spin_mutex::scoped_lock const&)'
../../lib/libextern_mantaflow.a(iovdb.cpp.o):iovdb.cpp:function openvdb::v9_1::points::TypedAttributeArray<int, openvdb::v9_1::points::TruncateCodec>::copy() const: error: undefined reference to 'openvdb::v9_1::points::AttributeArray::AttributeArray(openvdb::v9_1::points::AttributeArray const&, tbb::spin_mutex::scoped_lock const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [source/creator/CMakeFiles/blender.dir/build.make:450: bin/blender] Error 1
make[2]: Leaving directory '/home/spundun/blender-git/build_linux'
make[1]: *** [CMakeFiles/Makefile2:7506: source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: Leaving directory '/home/spundun/blender-git/build_linux'
make: *** [Makefile:166: all] Error 2
make: Leaving directory '/home/spundun/blender-git/build_linux'```