Description
Required Info | |
---|---|
Camera Model | { D400 } |
Firmware Version | () |
Operating System & Version | { Linux (Ubuntu 14/16/17) |
Kernel Version (Linux Only) | () |
Platform | NVIDIA Jetson |
SDK Version | { 2.36 } |
Language | {python } |
Segment | {Robot/Smartphone/VR/AR/others } |
I have been trying to install the pyrealsense2 library on the jetson Xavier nx. I have successfully installed it and used it with python2. (note you still cannot use pip or pip3 to get the library for the jetson).
Please see this issue for background: #6449
@MartyG-RealSense has been very helpful in trying to figure this out, but neither of us have been able to.
I cannot get the library to install for python3. Has anyone been able to do it?
Flags I have tried when compiling:
cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true -DFORCE_RSUSB_BACKEND=ON -DBUILD_WITH_CUDA:bool=true
cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true -DFORCE_RSUSB_BACKEND=ON -DBUILD_WITH_CUDA:bool=true -DPYTHON_EXECUTABLE=/usr/bin/python3
cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true -DFORCE_RSUSB_BACKEND=ON -DBUILD_WITH_CUDA:bool=true -DPYTHON_EXECUTABLE=/usr/bin/python3.6
No matter what, the libraries always get installed to the /usr/local/lib/python2.7/pyrealsense2 directory.
If I try to import the library using python3, I get the error undefined symbol: _Py_ZeroStruct
Has anyone figured out why this may be happening with the Jetson environment? I could really use the help as I have certain other programs that only work with python3 and I need to be able to use realsense along with those programs.