Ultimaker / libArcus

Communication library between internal components for Ultimaker software
GNU Lesser General Public License v3.0
75 stars 81 forks source link

make problem #56

Closed jackyting825 closed 7 years ago

jackyting825 commented 7 years ago

In the process of compiling libArcus, the implementation of cmake is successful, but the implementation of the make command, the compiler error. The following is the exception information: /usr/bin/ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation R_X86_64_32S against_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpython3.6m.a: error adding symbols: Bad value collect2: Error:ld return 1 make[2]: [Arcus.so] error 1 make[1]: [CMakeFiles/python_module_Arcus.dir/all] Error 2 make: *** [all] Error 2 ` I have read some information that 64-bit system will compile Python when the problem occurs, but I re-compiled Python. Again make make libArcus when the implementation of this error message. My environment is centos 7 python3.6 sip4.19.2 Will the following give some good advice? Thank you

jackyting825 commented 7 years ago

Recompile Python, add parameters at compile time CFLAGS = '- fPIC' ./configure --prefix = $ HOME / local .Can solve this problem! Reference link:https://github.com/thewtex/cython-cmake-example/issues/10