Open yubingex007 opened 6 years ago
Thanks for your feedback, this problem is due to lack of option ' -fPIC' when compiling, I add a line set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
in CMakeLists.txt now, it should solve this compilation error.
/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 returned 1 exit status python/CMakeFiles/pangolin.dir/build.make:103: recipe for target '../pangolin.cpython-36m-x86_64-linux-gnu.so' failed make[2]: [../pangolin.cpython-36m-x86_64-linux-gnu.so] Error 1 CMakeFiles/Makefile2:190: recipe for target 'python/CMakeFiles/pangolin.dir/all' failed make[1]: [python/CMakeFiles/pangolin.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2