Closed elPrac closed 4 years ago
It was because the way i built python3 should use:
./configure --enable-shared --enable-optimizations
It was because the way i built python3 should use:
./configure --enable-shared --enable-optimizations
hey, I have the same problem, where did you use this command, thank you
It was because the way i built python3 should use:
./configure --enable-shared --enable-optimizations
Linking CXX shared library ../../../x86_64/lib/python/3.6/jetson_utils_python.so /usr/bin/ld: /usr/local/lib/libpython3.6m.a(boolobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpython3.6m.a: error adding symbols: Bad value
could you help me
He has built python3.7 from source with --enable-shared
flag
you can do this by typing the following commands:
$ cd ~/Desktop
$ wget https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tgz
$ tar -xf Python-3.7.9.tgz
$ cd Python-3.7.9
$ ./configure --enable-shared --enable-optimizations
$ make
$ sudo make install
$ sudo ldconfig /usr/local/lib
and then try to to build jetson-inference
again by following nvidia guide.
Hi everyone!
I wish someone could give me an idea of how to solve the following problem...
I'm trying to build jetson-inference with a specific Python3.7.5 version the way i installed/compiled python was from source code and installed with:
So /usr/local/bin/python3 now points to 3.7.5 version, then i followed jetson-inference build steps skipping pytorch installation, then when i ran make i get the following:
I'm not sure why i'm getting the dangerous relocation: unsupported relocation message. About /usr/local/lib/libpython3.7m.a i'm not sure if this was built when i installed python3.7.5 but looks like there is a problem with it, message say recompile with -fPIC but i'm not sure if i need to recompile libpython3.7m.a object with this flag or should i need to add this to a jetson-inference build rule...
Anyway, i will really appreaciate any clue on what could be the problem... Thanks!