Ultimaker / cura-build-environment

CMake project to build dependencies for Cura
GNU Affero General Public License v3.0
24 stars 55 forks source link

Linking CXX shared library Savitar.so #63

Closed JithuPG closed 5 years ago

JithuPG commented 5 years ago

/usr/bin/ld: /usr/local/lib/libpython3.5m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status CMakeFiles/python_module_Savitar.dir/build.make:310: recipe for target 'Savitar.so' failed

is there any thing Missing ??

screen-shot

Ghostkeeper commented 5 years ago

You could try recompiling with -fPIC.

In general though you must be careful to make sure you use the same compiler as what your CPython was compiled with. I hope you're using GCC? Maybe the version is wrong?

JithuPG commented 5 years ago

Thank you for your reply i will try recompiling with -fPIC 👍