Hello everyone,
I would like to provide some feedbacks of my experience with building blender as a python module (bpy). And hopefully get some help on my failing build on Ubuntu.
First of all, I am glad to tell you that I followed instructions from Building Blender/Mac - Blender Developer Wiki, and make bpy
on may M1 Mac, it worked (even with Audaspace!). I am using bpy module in my python application since 2 weeks now.
Surprisingly, when I tried doing the same thing on Ubuntu 20.04, the building process succeeded but when I did import bpy
it failed with following error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: ~/blender-git/lib/linux_x86_64/python/lib/python3.9/site-packages/bpy.so: undefined symbol: _ZN7Imf_2_514TypedAttributeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE13readValueFromERNS_7IStreamEii
- my exact steps for building bpy are in this gist: https://gist.github.com/iyunbo/0e5f180e8e3571bc6f5c96b8b923a786
- I am building
bpy
from the master branch
I feel that I might miss some details during my building process, can someone help me on this ?
Thanks in advance