Daniil-Osokin / lightweight-human-pose-estimation-3d-demo.pytorch

Real-time 3D multi-person pose estimation demo in PyTorch. OpenVINO backend can be used for fast inference on CPU.
Apache License 2.0
656 stars 138 forks source link

Ubuntu 16.04 installation fails #3

Closed exotikh3 closed 4 years ago

exotikh3 commented 4 years ago

Thanks for great work!

Trying to reproduce results on the step: 'python setup.py build_ext' I've faced next problem:

running build_ext -- Configuring done -- Generating done -- Build files have been written to: /home/ysikachov/PycharmProjects/3dpose/lightweight-human-pose-estimation-3d-demo.pytorch/pose_extractor/build/tmp [ 20%] Linking CXX shared library ../pose_extractor.so /usr/bin/ld: /usr/local/lib/libpython3.7m.a(exceptions.o): relocation R_X86_64_32S against_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC`

Could you help please with this?

Daniil-Osokin commented 4 years ago

Do you use virtualenv? Looks like there are multiple python libs with the same name, check this. As a workaround add target_compile_options(${target_name} PRIVATE -fPIC) on the line 26.

exotikh3 commented 4 years ago

As main interpreter for virtualenv I've used manually installed python 3.7. After switching to default python 3.5 everything works fine. As far as I understood the problem is flag which I used to compile python 3.7. Thanks a lot!