cmake - Compiling Blender BPY : recompile with -fPIC? -


i tried compile blender bpy in ubuntu 14.04.4 using :

mkdir ~/blender-git cd ~/blender-git git clone http://git.blender.org/blender.git cd blender git submodule update --init --recursive git submodule foreach git checkout master git submodule foreach git pull --rebase origin master  sudo apt-get update; sudo apt-get install git build-essential  cd ~/blender-git ./blender/build_files/build_environment/install_deps.sh  sudo apt-get install cmake cmake-curses-gui  mkdir ~/blender-git/build cd ~/blender-git/build  cmake ../blender \     -dwith_python_install=off \     -dwith_player=off \     -dwith_python_module=on  cd ~/blender-git/build make 

it compiles ends error :

[100%] building c object source/creator/cmakefiles/blender.dir/buildinfo.c.o linking cxx shared module ../../bin/bpy.so /usr/bin/ld.gold: error: /opt/lib/python-3.5/lib/libpython3.5m.a(abstract.o): requires dynamic r_x86_64_pc32 reloc against 'pytype_issubtype' may overflow @ runtime; recompile -fpic 

i have same error during pages...

any idea ?

is possible download compiled library of blender bpy somewhere ?

thanks !

well, tries link static library dynamic one, , static library (/opt/lib/python-3.5/lib/libpython3.5m.a) isn't suitable (compiled w/o -fpic makes impossible use in shared library). recompile library flag (or supply 1 compiled) , re-try blender bpy.

i've checked, ubuntu-14.04 didn't have python-3.5 in official repos, there's bunch of dedicated ppas. since it's end of april of 16, it'd better switch apt sources.list xenial , update system next lts, if feel brave, or python if don't :)


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -