Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyrealsense2 on python3 Jetson Xavier NX #6980

Closed
GOBish opened this issue Jul 30, 2020 · 27 comments
Closed

pyrealsense2 on python3 Jetson Xavier NX #6980

GOBish opened this issue Jul 30, 2020 · 27 comments

Comments

@GOBish
Copy link

GOBish commented Jul 30, 2020

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.

@GOBish GOBish changed the title pyrealsense2 on python2 Jetson Xavier NX pyrealsense2 on python3 Jetson Xavier NX Jul 30, 2020
@ev-mp
Copy link
Collaborator

ev-mp commented Jul 30, 2020

@GOBish ,
If indeed the python binaries are built for v2.7 regardless of -DPYTHON_EXECUTABLE=/usr/bin/python3.6 and -DPYTHON_EXECUTABLE=/usr/bin/python3 then CMake probably can't find/use those files and falls back to v2.7.
Did you verify that python3 including its -dev package are installed properly?

If so then you can share a full log for review

cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true -DFORCE_RSUSB_BACKEND=ON -DBUILD_WITH_CUDA:bool=true -DPYTHON_EXECUTABLE=/usr/bin/python3 && make -j$(($(nproc)-1)) && sudo make install

Edit :
What is -DPYTHON_EXECUTABLE=... in Cmake invocation line and why do you specify it twice?
cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true -DFORCE_RSUSB_BACKEND=ON -DPYTHON_EXECUTABLE=... -DBUILD_WITH_CUDA:bool=true -DPYTHON_EXECUTABLE=/usr/bin/python3

@GOBish
Copy link
Author

GOBish commented Jul 30, 2020

sorry, that was just a copy paste error in my post for the last line. The actual command I used only had one -DPYTHON_EXECUTABLE, either -DPYTHON_EXECUTABLE=/usr/bin/python3.6 or -DPYTHON_EXECUTABLE=/usr/bin/python3 or -DPYTHON_EXECUTABLE=/usr/bin/python
I will run the cmake as you suggest and post the log shortly.

@GOBish
Copy link
Author

GOBish commented Jul 30, 2020

also,
output from sudo apt-get install python3-dev

python3-dev is already the newest version (3.6.7-1~18.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

which python3
/usr/bin/python3

@GOBish
Copy link
Author

GOBish commented Jul 30, 2020

$ cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true -DFORCE_RSUSB_BACKEND=ON -DBUILD_WITH_CUDA:bool=true -DPYTHON_EXECUTABLE=/usr/bin/python3 && make -j$(($(nproc)-1)) && sudo make install
-- Internet connection identified
-- Info: REALSENSE_VERSION_STRING=2.36.0
-- Setting Unix configurations
-- Info: Building with CUDA requires CMake v3.8+
-- CUDA_LIBRARIES: /usr/local/cuda-10.2/include /usr/local/cuda-10.2/lib64/libcudart_static.a;-pthread;dl;/usr/lib/aarch64-linux-gnu/librt.so;/usr/local/cuda-10.2/lib64/libcusparse.so;/usr/lib/aarch64-linux-gnu/libcublas.so
-- using RS2_USE_LIBUVC_BACKEND
-- Found PythonInterp: /usr/bin/python3 (found version "3.6.9")
-- pybind11 v2.2.1
-- Could NOT find apriltag (missing: APRILTAG_INC APRILTAG_LIB)
-- Unable to find apriltag library, skipping pose-apriltag example
-- Building with TM2
-- Fetching recommended firmwares:
-- D4XX_FW_VERSION: 5.12.6.0
-- SR3XX_FW_VERSION: 3.26.1.0
-- T26X_FW_VERSION: 0.2.0.951
-- L5XX_FW_VERSION: 1.4.1.2
-- http://realsense-hw-public.s3.amazonaws.com/Releases/RS4xx/FW/D4XX_FW_Image-5.12.6.0.bin
-- Download firmware 0;"returning early; file already exists with expected SHA1 hash" for D4XX_FW_Image-5.12.6.0.bin
-- http://realsense-hw-public.s3.amazonaws.com/Releases/SR300/FW/SR3XX_FW_Image-3.26.1.0.bin
-- Download firmware 0;"returning early; file already exists with expected SHA1 hash" for SR3XX_FW_Image-3.26.1.0.bin
-- http://realsense-hw-public.s3.amazonaws.com/Releases/TM2/FW/target/0.2.0.951/target-0.2.0.951.mvcmd
-- Download firmware 0;"returning early; file already exists with expected SHA1 hash" for target-0.2.0.951.mvcmd
-- http://realsense-hw-public.s3.amazonaws.com/Releases/L5xx/FW/L5XX_FW_Image-1.4.1.2.bin
-- Download firmware 0;"returning early; file already exists with expected SHA1 hash" for L5XX_FW_Image-1.4.1.2.bin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gbenel/librealsense/build
[ 1%] Built target fw
[ 2%] Linking CXX shared library pybackend2.so
[ 8%] Built target realsense-file
[ 8%] Linking CXX shared library librealsense2.so
[ 45%] Built target realsense2
Scanning dependencies of target rs-hello-realsense
Scanning dependencies of target rs-software-device
Scanning dependencies of target realsense2-gl
[ 45%] Building CXX object examples/hello-realsense/CMakeFiles/rs-hello-realsense.dir/rs-hello-realsense.cpp.o
[ 45%] Building CXX object examples/software-device/CMakeFiles/rs-software-device.dir/rs-software-device.cpp.o
[ 45%] Linking CXX shared library pyrealsense2.so
[ 46%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/synthetic-stream-gl.cpp.o
[ 47%] Linking CXX executable rs-hello-realsense
[ 47%] Built target rs-hello-realsense
Scanning dependencies of target rs-capture
[ 47%] Building CXX object examples/capture/CMakeFiles/rs-capture.dir/rs-capture.cpp.o
[ 47%] Linking CXX executable rs-software-device
[ 47%] Built target rs-software-device
Scanning dependencies of target rs-callback
[ 47%] Building CXX object examples/callback/CMakeFiles/rs-callback.dir/rs-callback.cpp.o
[ 47%] Linking CXX executable rs-capture
[ 47%] Built target rs-capture
Scanning dependencies of target rs-save-to-disk
[ 47%] Building CXX object examples/save-to-disk/CMakeFiles/rs-save-to-disk.dir/rs-save-to-disk.cpp.o
[ 48%] Linking CXX executable rs-callback
[ 48%] Built target rs-callback
Scanning dependencies of target rs-multicam
[ 48%] Building CXX object examples/multicam/CMakeFiles/rs-multicam.dir/rs-multicam.cpp.o
[ 48%] Linking CXX executable rs-save-to-disk
[ 48%] Built target rs-save-to-disk
Scanning dependencies of target rs-pointcloud
[ 48%] Building CXX object examples/pointcloud/CMakeFiles/rs-pointcloud.dir/rs-pointcloud.cpp.o
[ 48%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/yuy2rgb-gl.cpp.o
In file included from /usr/include/c++/7/backward/strstream:50:0,
from /home/gbenel/librealsense/src/gl/yuy2rgb-gl.cpp:19:
/usr/include/c++/7/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^~~~~~~
[ 49%] Linking CXX executable rs-multicam
[ 49%] Linking CXX executable rs-pointcloud
[ 49%] Built target rs-pointcloud
[ 49%] Built target rs-multicam
Scanning dependencies of target rs-align
Scanning dependencies of target rs-align-advanced
[ 50%] Building CXX object examples/align/CMakeFiles/rs-align.dir/rs-align.cpp.o
[ 50%] Building CXX object examples/align-advanced/CMakeFiles/rs-align-advanced.dir/rs-align-advanced.cpp.o
[ 50%] Building CXX object examples/align/CMakeFiles/rs-align.dir///third-party/imgui/imgui.cpp.o
[ 50%] Building CXX object examples/align-advanced/CMakeFiles/rs-align-advanced.dir///third-party/imgui/imgui.cpp.o
[ 50%] Building CXX object examples/align/CMakeFiles/rs-align.dir///third-party/imgui/imgui_draw.cpp.o
[ 55%] Built target pybackend2
[ 56%] Building CXX object examples/align-advanced/CMakeFiles/rs-align-advanced.dir///third-party/imgui/imgui_draw.cpp.o
Scanning dependencies of target rs-sensor-control
[ 56%] Building CXX object examples/sensor-control/CMakeFiles/rs-sensor-control.dir/rs-sensor-control.cpp.o
[ 56%] Building CXX object examples/align/CMakeFiles/rs-align.dir///third-party/imgui/imgui_impl_glfw.cpp.o
[ 57%] Linking CXX executable rs-align
[ 57%] Building CXX object examples/align-advanced/CMakeFiles/rs-align-advanced.dir///third-party/imgui/imgui_impl_glfw.cpp.o
[ 57%] Linking CXX executable rs-align-advanced
[ 57%] Built target rs-align
Scanning dependencies of target rs-measure
[ 57%] Building CXX object examples/measure/CMakeFiles/rs-measure.dir/rs-measure.cpp.o
[ 57%] Built target rs-align-advanced
Scanning dependencies of target rs-depth
[ 57%] Building C object examples/C/depth/CMakeFiles/rs-depth.dir/rs-depth.c.o
[ 57%] Linking C executable rs-depth
[ 57%] Built target rs-depth
Scanning dependencies of target rs-color
[ 57%] Building C object examples/C/color/CMakeFiles/rs-color.dir/rs-color.c.o
[ 58%] Linking C executable rs-color
[ 58%] Built target rs-color
[ 58%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/pointcloud-gl.cpp.o
[ 58%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/rs-gl.cpp.o
[ 59%] Linking CXX executable rs-sensor-control
[ 59%] Built target rs-sensor-control
[ 60%] Building C object src/gl/CMakeFiles/realsense2-gl.dir///third-party/glad/glad.c.o
[ 60%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir///common/opengl3.cpp.o
[ 60%] Linking CXX executable rs-measure
[ 60%] Built target rs-measure
Scanning dependencies of target rs-distance
[ 61%] Building C object examples/C/distance/CMakeFiles/rs-distance.dir/rs-distance.c.o
[ 61%] Linking C executable rs-distance
[ 61%] Built target rs-distance
Scanning dependencies of target rs-post-processing
[ 61%] Building CXX object examples/post-processing/CMakeFiles/rs-post-processing.dir/rs-post-processing.cpp.o
[ 61%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/pc-shader.cpp.o
[ 61%] Building CXX object examples/post-processing/CMakeFiles/rs-post-processing.dir///third-party/imgui/imgui.cpp.o
[ 62%] Building CXX object examples/post-processing/CMakeFiles/rs-post-processing.dir///third-party/imgui/imgui_draw.cpp.o
[ 62%] Building CXX object examples/post-processing/CMakeFiles/rs-post-processing.dir///third-party/imgui/imgui_impl_glfw.cpp.o
[ 62%] Linking CXX executable rs-post-processing
[ 62%] Built target rs-post-processing
[ 63%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/camera-shader.cpp.o
[ 63%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/upload.cpp.o
In file included from /usr/include/c++/7/backward/strstream:50:0,
from /home/gbenel/librealsense/src/gl/upload.cpp:24:
/usr/include/c++/7/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^~~~~~~
Scanning dependencies of target rs-record-playback
[ 63%] Building CXX object examples/record-playback/CMakeFiles/rs-record-playback.dir/rs-record-playback.cpp.o
[ 63%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/colorizer-gl.cpp.o
In file included from /usr/include/c++/7/backward/strstream:50:0,
from /home/gbenel/librealsense/src/gl/colorizer-gl.cpp:22:
/usr/include/c++/7/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^~~~~~~
[ 63%] Building CXX object examples/record-playback/CMakeFiles/rs-record-playback.dir///third-party/imgui/imgui.cpp.o
In file included from /home/gbenel/librealsense/src/gl/camera-shader.cpp:17:0:
/home/gbenel/librealsense/src/gl/../../common/res/sr300.h: In function ‘void uncompress_sr305_obj(std::vectorrs2::float3&, std::vectorrs2::float3&, std::vector&)’:
/home/gbenel/librealsense/src/gl/../../common/res/sr300.h:11:77: warning: ‘int LZ4_uncompress(const char*, char*, int)’ is deprecated: use LZ4_decompress_fast() instead [-Wdeprecated-declarations]
LZ4_uncompress((const char*)sr305_obj_data, uncompressed.data(), 0x43c5c);
^
In file included from /home/gbenel/librealsense/src/gl/../../common/res/d435.h:6:0,
from /home/gbenel/librealsense/src/gl/camera-shader.cpp:15:
/home/gbenel/librealsense/third-party/realsense-file/lz4/lz4.h:446:68: note: declared here
LZ4LIB_API LZ4_DEPRECATED("use LZ4_decompress_fast() instead") int LZ4_uncompress (const char* source, char* dest, int outputSize);
^~~~~~~~~~~~~~
In file included from /home/gbenel/librealsense/src/gl/camera-shader.cpp:19:0:
/home/gbenel/librealsense/src/gl/../../common/res/l500.h: In function ‘void uncompress_L515_obj(std::vectorrs2::float3&, std::vectorrs2::float3&, std::vector&)’:
/home/gbenel/librealsense/src/gl/../../common/res/l500.h:11:76: warning: ‘int LZ4_uncompress(const char*, char*, int)’ is deprecated: use LZ4_decompress_fast() instead [-Wdeprecated-declarations]
LZ4_uncompress((const char*)L515_obj_data, uncompressed.data(), 0x49e1e);
^
In file included from /home/gbenel/librealsense/src/gl/../../common/res/d435.h:6:0,
from /home/gbenel/librealsense/src/gl/camera-shader.cpp:15:
/home/gbenel/librealsense/third-party/realsense-file/lz4/lz4.h:446:68: note: declared here
LZ4LIB_API LZ4_DEPRECATED("use LZ4_decompress_fast() instead") int LZ4_uncompress (const char* source, char* dest, int outputSize);
^~~~~~~~~~~~~~
[ 64%] Building CXX object examples/record-playback/CMakeFiles/rs-record-playback.dir///third-party/imgui/imgui_draw.cpp.o
[ 64%] Building CXX object examples/record-playback/CMakeFiles/rs-record-playback.dir///third-party/imgui/imgui_impl_glfw.cpp.o
[ 64%] Linking CXX executable rs-record-playback
[ 64%] Built target rs-record-playback
Scanning dependencies of target rs-motion
[ 65%] Building CXX object examples/motion/CMakeFiles/rs-motion.dir/rs-motion.cpp.o
[ 65%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir/align-gl.cpp.o
In file included from /usr/include/c++/7/backward/strstream:50:0,
from /home/gbenel/librealsense/src/gl/align-gl.cpp:21:
/usr/include/c++/7/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^~~~~~~
[ 65%] Building C object examples/motion/CMakeFiles/rs-motion.dir///third-party/realsense-file/lz4/lz4.c.o
[ 66%] Building C object src/gl/CMakeFiles/realsense2-gl.dir///third-party/realsense-file/lz4/lz4.c.o
[ 66%] Linking CXX executable rs-motion
[ 66%] Building CXX object src/gl/CMakeFiles/realsense2-gl.dir///third-party/easyloggingpp/src/easylogging++.cc.o
[ 66%] Built target rs-motion
Scanning dependencies of target rs-pose
[ 67%] Building CXX object examples/pose/CMakeFiles/rs-pose.dir/rs-pose.cpp.o
Scanning dependencies of target rs-pose-predict
[ 68%] Building CXX object examples/pose-predict/CMakeFiles/rs-pose-predict.dir/rs-pose-predict.cpp.o
[ 68%] Linking CXX executable rs-pose
[ 68%] Built target rs-pose
Scanning dependencies of target rs-pose-and-image
[ 68%] Building CXX object examples/pose-and-image/CMakeFiles/rs-pose-and-image.dir/rs-pose-and-image.cpp.o
[ 68%] Linking CXX executable rs-pose-predict
[ 68%] Built target rs-pose-predict
Scanning dependencies of target rs-trajectory
[ 68%] Building CXX object examples/trajectory/CMakeFiles/rs-trajectory.dir/rs-trajectory.cpp.o
[ 68%] Linking CXX executable rs-pose-and-image
[ 68%] Built target rs-pose-and-image
[ 68%] Building C object examples/trajectory/CMakeFiles/rs-trajectory.dir///third-party/realsense-file/lz4/lz4.c.o
Scanning dependencies of target rs-ar-basic
[ 68%] Building CXX object examples/ar-basic/CMakeFiles/rs-ar-basic.dir/rs-ar-basic.cpp.o
Scanning dependencies of target rs-ar-advanced
[ 68%] Building CXX object examples/ar-advanced/CMakeFiles/rs-ar-advanced.dir/rs-ar-advanced.cpp.o
[ 72%] Built target pyrealsense2
Scanning dependencies of target rs-tracking-and-depth
[ 72%] Building CXX object examples/tracking-and-depth/CMakeFiles/rs-tracking-and-depth.dir/rs-tracking-and-depth.cpp.o
[ 73%] Linking CXX executable rs-trajectory
[ 73%] Built target rs-trajectory
[ 73%] Building CXX object tools/convert/CMakeFiles/rs-convert.dir/rs-convert.cpp.o
[ 73%] Linking CXX shared library librealsense2-gl.so
[ 73%] Linking CXX executable rs-ar-basic
[ 73%] Built target rs-ar-basic
[ 73%] Linking CXX executable rs-enumerate-devices
[ 74%] Linking CXX executable rs-tracking-and-depth
[ 75%] Linking CXX executable rs-ar-advanced
[ 75%] Built target rs-enumerate-devices
[ 75%] Built target realsense2-gl
[ 75%] Linking CXX executable rs-fw-logger
[ 75%] Linking CXX executable rs-terminal
[ 75%] Built target rs-tracking-and-depth
[ 75%] Linking CXX executable rs-record
[ 76%] Built target rs-fw-logger
[ 76%] Built target rs-ar-advanced
[ 77%] Linking CXX executable rs-fw-update
Scanning dependencies of target rs-data-collect
[ 78%] Building CXX object tools/data-collect/CMakeFiles/rs-data-collect.dir/rs-data-collect.cpp.o
[ 79%] Built target rs-terminal
Scanning dependencies of target realsense-viewer
[ 79%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/model-views.cpp.o
[ 80%] Built target rs-record
Scanning dependencies of target rs-depth-quality
[ 80%] Built target rs-fw-update
Scanning dependencies of target rs-rosbag-inspector
[ 81%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/model-views.cpp.o
[ 82%] Building CXX object tools/rosbag-inspector/CMakeFiles/rs-rosbag-inspector.dir/rs-rosbag-inspector.cpp.o
[ 82%] Linking CXX executable rs-convert
[ 82%] Built target rs-convert
Scanning dependencies of target rs-benchmark
[ 82%] Building CXX object tools/benchmark/CMakeFiles/rs-benchmark.dir/rs-benchmark.cpp.o
In file included from /home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/detail/maybe_include.hpp:18:0,
from /home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/detail/function_iterate.hpp:14,
from /home/gbenel/librealsense/third-party/realsense-file/boost/boost/preprocessor/iteration/detail/iter/forward1.hpp:52,
from /home/gbenel/librealsense/third-party/realsense-file/boost/boost/function.hpp:64,
from /home/gbenel/librealsense/third-party/realsense-file/rosbag/roscpp_traits/include/ros/message_event.h:42,
from /home/gbenel/librealsense/tools/rosbag-inspector/../../third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag.h:50,
from /home/gbenel/librealsense/tools/rosbag-inspector/print_helpers.h:12,
from /home/gbenel/librealsense/tools/rosbag-inspector/rs-rosbag-inspector.cpp:30:
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp: In instantiation of ‘void boost::detail::function::basic_vtable1<R, T0>::assign_functor(FunctionObj, boost::detail::function::function_buffer&, mpl_::true_) const [with FunctionObj = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; mpl_::true_ = mpl_::bool_]’:
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:608:27: required from ‘bool boost::detail::function::basic_vtable1<R, T0>::assign_to(FunctionObj, boost::detail::function::function_buffer&, boost::detail::function::function_obj_tag) const [with FunctionObj = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:498:27: required from ‘bool boost::detail::function::basic_vtable1<R, T0>::assign_to(F, boost::detail::function::function_buffer&) const [with F = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:942:7: required from ‘void boost::function1<R, T1>::assign_to(Functor) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:728:7: required from ‘boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral::value>::value, int>::type = int]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:1077:16: required from ‘boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral::value>::value, int>::type = int]’
/home/gbenel/librealsense/tools/rosbag-inspector/rs-rosbag-inspector.cpp:257:73: required from here
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:572:11: warning: placement new constructing an object of type ‘rosbag::TopicQuery’ and size ‘24’ in a region of type ‘char’ and size ‘1’ [-Wplacement-new=]
new (reinterpret_cast<void*>(&functor.data)) FunctionObj(f);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/detail/prologue.hpp:17:0,
from /home/gbenel/librealsense/third-party/realsense-file/boost/boost/function.hpp:24,
from /home/gbenel/librealsense/third-party/realsense-file/rosbag/roscpp_traits/include/ros/message_event.h:42,
from /home/gbenel/librealsense/tools/rosbag-inspector/../../third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag.h:50,
from /home/gbenel/librealsense/tools/rosbag-inspector/print_helpers.h:12,
from /home/gbenel/librealsense/tools/rosbag-inspector/rs-rosbag-inspector.cpp:30:
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp: In instantiation of ‘static void boost::detail::function::functor_manager_common::manage_small(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) [with Functor = rosbag::TopicQuery]’:
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:364:56: required from ‘static void boost::detail::function::functor_manager::manager(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type, mpl_::true_) [with Functor = rosbag::TopicQuery; mpl_::true_ = mpl_::bool_]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:412:18: required from ‘static void boost::detail::function::functor_manager::manager(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type, boost::detail::function::function_obj_tag) [with Functor = rosbag::TopicQuery]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:440:20: required from ‘static void boost::detail::function::functor_manager::manage(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) [with Functor = rosbag::TopicQuery]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:940:13: required from ‘void boost::function1<R, T1>::assign_to(Functor) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:728:7: required from ‘boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral::value>::value, int>::type = int]’
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:1077:16: required from ‘boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral::value>::value, int>::type = int]’
/home/gbenel/librealsense/tools/rosbag-inspector/rs-rosbag-inspector.cpp:257:73: required from here
/home/gbenel/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:318:13: warning: placement new constructing an object of type ‘boost::detail::function::functor_manager_commonrosbag::TopicQuery::functor_type {aka rosbag::TopicQuery}’ and size ‘24’ in a region of type ‘char’ and size ‘1’ [-Wplacement-new=]
new (reinterpret_cast<void*>(&out_buffer.data)) functor_type(*in_functor);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 82%] Linking CXX executable rs-data-collect
[ 82%] Built target rs-data-collect
Scanning dependencies of target rs-gl
[ 82%] Building CXX object examples/gl/CMakeFiles/rs-gl.dir/rs-gl.cpp.o
[ 83%] Building C object tools/benchmark/CMakeFiles/rs-benchmark.dir///third-party/glad/glad.c.o
[ 83%] Linking CXX executable rs-benchmark
[ 83%] Built target rs-benchmark
[ 83%] Building CXX object tools/rosbag-inspector/CMakeFiles/rs-rosbag-inspector.dir///common/os.cpp.o
[ 83%] Linking CXX executable rs-gl
[ 83%] Built target rs-gl
[ 83%] Building C object tools/rosbag-inspector/CMakeFiles/rs-rosbag-inspector.dir///third-party/glad/glad.c.o
[ 83%] Building CXX object tools/rosbag-inspector/CMakeFiles/rs-rosbag-inspector.dir///third-party/imgui/imgui.cpp.o
[ 83%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/notifications.cpp.o
[ 83%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/calibration-model.cpp.o
[ 84%] Building CXX object tools/rosbag-inspector/CMakeFiles/rs-rosbag-inspector.dir///third-party/imgui/imgui_draw.cpp.o
[ 84%] Building CXX object tools/rosbag-inspector/CMakeFiles/rs-rosbag-inspector.dir///third-party/imgui/imgui_impl_glfw.cpp.o
[ 84%] Building C object tools/rosbag-inspector/CMakeFiles/rs-rosbag-inspector.dir///third-party/tinyfiledialogs/tinyfiledialogs.c.o
[ 85%] Linking CXX executable rs-rosbag-inspector
[ 85%] Built target rs-rosbag-inspector
[ 86%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/viewer.cpp.o
/home/gbenel/librealsense/common/calibration-model.cpp:126:2: warning: extra ‘;’ [-Wpedantic]
};
^
[ 86%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/ux-window.cpp.o
[ 87%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/notifications.cpp.o
[ 87%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/ux-alignment.cpp.o
[ 87%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/calibration-model.cpp.o
[ 87%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/opengl3.cpp.o
[ 88%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/rs-config.cpp.o
/home/gbenel/librealsense/common/calibration-model.cpp:126:2: warning: extra ‘;’ [-Wpedantic]
};
^
[ 88%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/os.cpp.o
[ 88%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/fw-update-helper.cpp.o
[ 89%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/metadata-helper.cpp.o
[ 89%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/output-model.cpp.o
[ 89%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/skybox.cpp.o
[ 89%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/viewer.cpp.o
[ 89%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/measurement.cpp.o
[ 90%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/on-chip-calib.cpp.o
[ 90%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/updates-model.cpp.o
[ 90%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/sw-update/http-downloader.cpp.o
[ 91%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/sw-update/dev-updates-profile.cpp.o
[ 91%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/ux-window.cpp.o
[ 91%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/sw-update/versions-db-manager.cpp.o
[ 92%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/ux-alignment.cpp.o
[ 92%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/opengl3.cpp.o
[ 92%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/rs-config.cpp.o
[ 92%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir/rs-depth-quality.cpp.o
[ 93%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/os.cpp.o
[ 93%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/fw-update-helper.cpp.o
[ 93%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir/depth-quality-model.cpp.o
[ 94%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///third-party/imgui/imgui.cpp.o
[ 94%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/metadata-helper.cpp.o
[ 94%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/output-model.cpp.o
[ 95%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/skybox.cpp.o
[ 95%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/measurement.cpp.o
[ 95%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/on-chip-calib.cpp.o
[ 95%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/updates-model.cpp.o
[ 95%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///third-party/imgui/imgui_draw.cpp.o
[ 95%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///third-party/imgui/imgui_impl_glfw.cpp.o
[ 95%] Building C object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///third-party/glad/glad.c.o
[ 96%] Building C object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///third-party/tinyfiledialogs/tinyfiledialogs.c.o
[ 96%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///third-party/easyloggingpp/src/easylogging++.cc.o
[ 97%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/sw-update/http-downloader.cpp.o
[ 97%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/sw-update/dev-updates-profile.cpp.o
[ 97%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///common/sw-update/versions-db-manager.cpp.o
[ 98%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir/realsense-viewer.cpp.o
[ 98%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///third-party/imgui/imgui.cpp.o
[ 98%] Linking CXX executable rs-depth-quality
[ 98%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///third-party/imgui/imgui_draw.cpp.o
[ 98%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///third-party/imgui/imgui_impl_glfw.cpp.o
[ 99%] Building C object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///third-party/glad/glad.c.o
[ 99%] Building C object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///third-party/tinyfiledialogs/tinyfiledialogs.c.o
[ 99%] Building CXX object tools/realsense-viewer/CMakeFiles/realsense-viewer.dir///third-party/easyloggingpp/src/easylogging++.cc.o
[ 99%] Built target rs-depth-quality
[100%] Linking CXX executable realsense-viewer
[100%] Built target realsense-viewer
[sudo] password for gbenel:
[ 1%] Built target fw
[ 7%] Built target realsense-file
[ 44%] Built target realsense2
[ 50%] Built target pybackend2
[ 54%] Built target pyrealsense2
[ 58%] Built target realsense2-gl
[ 59%] Built target rs-hello-realsense
[ 59%] Built target rs-software-device
[ 59%] Built target rs-capture
[ 60%] Built target rs-callback
[ 60%] Built target rs-save-to-disk
[ 61%] Built target rs-multicam
[ 61%] Built target rs-pointcloud
[ 63%] Built target rs-align
[ 64%] Built target rs-align-advanced
[ 65%] Built target rs-sensor-control
[ 65%] Built target rs-measure
[ 65%] Built target rs-depth
[ 66%] Built target rs-color
[ 67%] Built target rs-distance
[ 68%] Built target rs-post-processing
[ 69%] Built target rs-record-playback
[ 70%] Built target rs-motion
[ 70%] Built target rs-gl
[ 71%] Built target rs-pose
[ 72%] Built target rs-pose-predict
[ 72%] Built target rs-pose-and-image
[ 73%] Built target rs-trajectory
[ 73%] Built target rs-ar-basic
[ 74%] Built target rs-ar-advanced
[ 75%] Built target rs-tracking-and-depth
[ 75%] Built target rs-convert
[ 75%] Built target rs-enumerate-devices
[ 76%] Built target rs-fw-logger
[ 77%] Built target rs-terminal
[ 78%] Built target rs-record
[ 79%] Built target rs-fw-update
[ 80%] Built target rs-data-collect
[ 88%] Built target realsense-viewer
[ 96%] Built target rs-depth-quality
[ 99%] Built target rs-rosbag-inspector
[100%] Built target rs-benchmark
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/librealsense2.so.2.36.0
-- Up-to-date: /usr/local/lib/librealsense2.so.2.36
-- Up-to-date: /usr/local/lib/librealsense2.so
-- Up-to-date: /usr/local/include/librealsense2
-- Up-to-date: /usr/local/include/librealsense2/rs_advanced_mode.hpp
-- Up-to-date: /usr/local/include/librealsense2/rs.hpp
-- Up-to-date: /usr/local/include/librealsense2/rs_advanced_mode.h
-- Up-to-date: /usr/local/include/librealsense2/rs.h
-- Up-to-date: /usr/local/include/librealsense2/h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_internal.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_types.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_frame.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_context.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_pipeline.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_device.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_record_playback.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_config.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_terminal_parser.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_advanced_mode_command.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_sensor.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_processing.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_option.h
-- Up-to-date: /usr/local/include/librealsense2/rsutil.h
-- Up-to-date: /usr/local/include/librealsense2/hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_record_playback.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_options.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_context.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_export.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_sensor.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_frame.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_internal.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_pipeline.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_serializable_device.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_device.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_types.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_processing.hpp
-- Up-to-date: /usr/local/lib/cmake/realsense2/realsense2Targets.cmake
-- Installing: /usr/local/lib/cmake/realsense2/realsense2Targets-noconfig.cmake
-- Up-to-date: /usr/local/lib/cmake/realsense2/realsense2Config.cmake
-- Up-to-date: /usr/local/lib/cmake/realsense2/realsense2ConfigVersion.cmake
-- Up-to-date: /usr/local/lib/pkgconfig/realsense2.pc
-- Up-to-date: /usr/local/lib/librealsense-file.a
-- Installing: /usr/local/lib/python2.7/pyrealsense2/pybackend2.so.2.36.0
-- Up-to-date: /usr/local/lib/python2.7/pyrealsense2/pybackend2.so.2
-- Up-to-date: /usr/local/lib/python2.7/pyrealsense2/pybackend2.so
-- Installing: /usr/local/lib/python2.7/pyrealsense2/pyrealsense2.so.2.36.0
-- Up-to-date: /usr/local/lib/python2.7/pyrealsense2/pyrealsense2.so.2.36
-- Up-to-date: /usr/local/lib/python2.7/pyrealsense2/pyrealsense2.so
-- Set runtime path of "/usr/local/lib/python2.7/pyrealsense2/pyrealsense2.so.2.36.0" to ""
-- Up-to-date: /usr/local/lib/cmake/pyrealsense2/pyrealsense2Targets.cmake
-- Installing: /usr/local/lib/cmake/pyrealsense2/pyrealsense2Targets-noconfig.cmake
-- Up-to-date: /usr/local/lib/cmake/pyrealsense2/pyrealsense2Config.cmake
-- Up-to-date: /usr/local/lib/cmake/pyrealsense2/pyrealsense2ConfigVersion.cmake
-- Installing: /usr/local/lib/librealsense2-gl.so.2.36.0
-- Up-to-date: /usr/local/lib/librealsense2-gl.so.2.36
-- Up-to-date: /usr/local/lib/librealsense2-gl.so
-- Set runtime path of "/usr/local/lib/librealsense2-gl.so.2.36.0" to ""
-- Up-to-date: /usr/local/include/librealsense2-gl/rs_processing_gl.h
-- Up-to-date: /usr/local/include/librealsense2-gl/rs_processing_gl.hpp
-- Up-to-date: /usr/local/lib/cmake/realsense2-gl/realsense2-glTargets.cmake
-- Installing: /usr/local/lib/cmake/realsense2-gl/realsense2-glTargets-noconfig.cmake
-- Up-to-date: /usr/local/lib/cmake/realsense2-gl/realsense2-glConfig.cmake
-- Up-to-date: /usr/local/lib/cmake/realsense2-gl/realsense2-glConfigVersion.cmake
-- Up-to-date: /usr/local/lib/pkgconfig/realsense2-gl.pc
-- Installing: /usr/local/bin/rs-hello-realsense
-- Set runtime path of "/usr/local/bin/rs-hello-realsense" to ""
-- Installing: /usr/local/bin/rs-software-device
-- Set runtime path of "/usr/local/bin/rs-software-device" to ""
-- Installing: /usr/local/bin/rs-capture
-- Set runtime path of "/usr/local/bin/rs-capture" to ""
-- Installing: /usr/local/bin/rs-callback
-- Set runtime path of "/usr/local/bin/rs-callback" to ""
-- Installing: /usr/local/bin/rs-save-to-disk
-- Set runtime path of "/usr/local/bin/rs-save-to-disk" to ""
-- Installing: /usr/local/bin/rs-multicam
-- Set runtime path of "/usr/local/bin/rs-multicam" to ""
-- Installing: /usr/local/bin/rs-pointcloud
-- Set runtime path of "/usr/local/bin/rs-pointcloud" to ""
-- Installing: /usr/local/bin/rs-align
-- Set runtime path of "/usr/local/bin/rs-align" to ""
-- Installing: /usr/local/bin/rs-align-advanced
-- Set runtime path of "/usr/local/bin/rs-align-advanced" to ""
-- Installing: /usr/local/bin/rs-sensor-control
-- Set runtime path of "/usr/local/bin/rs-sensor-control" to ""
-- Installing: /usr/local/bin/rs-measure
-- Set runtime path of "/usr/local/bin/rs-measure" to ""
-- Installing: /usr/local/bin/rs-depth
-- Set runtime path of "/usr/local/bin/rs-depth" to ""
-- Installing: /usr/local/bin/rs-color
-- Set runtime path of "/usr/local/bin/rs-color" to ""
-- Installing: /usr/local/bin/rs-distance
-- Set runtime path of "/usr/local/bin/rs-distance" to ""
-- Installing: /usr/local/bin/rs-post-processing
-- Set runtime path of "/usr/local/bin/rs-post-processing" to ""
-- Installing: /usr/local/bin/rs-record-playback
-- Set runtime path of "/usr/local/bin/rs-record-playback" to ""
-- Installing: /usr/local/bin/rs-motion
-- Set runtime path of "/usr/local/bin/rs-motion" to ""
-- Installing: /usr/local/bin/rs-gl
-- Set runtime path of "/usr/local/bin/rs-gl" to ""
-- Installing: /usr/local/bin/rs-pose
-- Set runtime path of "/usr/local/bin/rs-pose" to ""
-- Installing: /usr/local/bin/rs-pose-predict
-- Set runtime path of "/usr/local/bin/rs-pose-predict" to ""
-- Installing: /usr/local/bin/rs-pose-and-image
-- Set runtime path of "/usr/local/bin/rs-pose-and-image" to ""
-- Installing: /usr/local/bin/rs-trajectory
-- Set runtime path of "/usr/local/bin/rs-trajectory" to ""
-- Installing: /usr/local/bin/rs-ar-basic
-- Set runtime path of "/usr/local/bin/rs-ar-basic" to ""
-- Installing: /usr/local/bin/rs-ar-advanced
-- Set runtime path of "/usr/local/bin/rs-ar-advanced" to ""
-- Installing: /usr/local/bin/rs-tracking-and-depth
-- Set runtime path of "/usr/local/bin/rs-tracking-and-depth" to ""
-- Installing: /usr/local/bin/rs-convert
-- Set runtime path of "/usr/local/bin/rs-convert" to ""
-- Installing: /usr/local/bin/rs-enumerate-devices
-- Set runtime path of "/usr/local/bin/rs-enumerate-devices" to ""
-- Installing: /usr/local/bin/rs-fw-logger
-- Set runtime path of "/usr/local/bin/rs-fw-logger" to ""
-- Installing: /usr/local/bin/rs-terminal
-- Set runtime path of "/usr/local/bin/rs-terminal" to ""
-- Installing: /usr/local/bin/rs-record
-- Set runtime path of "/usr/local/bin/rs-record" to ""
-- Installing: /usr/local/bin/rs-fw-update
-- Set runtime path of "/usr/local/bin/rs-fw-update" to ""
-- Installing: /usr/local/bin/rs-data-collect
-- Set runtime path of "/usr/local/bin/rs-data-collect" to ""
-- Installing: /usr/local/bin/realsense-viewer
-- Set runtime path of "/usr/local/bin/realsense-viewer" to ""
-- Installing: /usr/local/bin/rs-depth-quality
-- Set runtime path of "/usr/local/bin/rs-depth-quality" to ""
-- Installing: /usr/local/bin/rs-rosbag-inspector
-- Set runtime path of "/usr/local/bin/rs-rosbag-inspector" to ""
-- Installing: /usr/local/bin/rs-benchmark
-- Set runtime path of "/usr/local/bin/rs-benchmark" to ""
-- Up-to-date: /usr/local/lib/libfw.a

@Fred3D-tech
Copy link

Fred3D-tech commented Jul 30, 2020

a lot of us are using jetson xavier to make mobile devices..
Is it not a time to have a tutorial to make a clean, bullet proof installation ? I really think that is not serious to not take into account the people working on nvidia jetson xavier as it it the best mobile platform to work with realsense products... I have 10 DR400 products and 2 L515 devices.. I really feel very frustrated.

@ev-mp
Copy link
Collaborator

ev-mp commented Jul 30, 2020

@GOBish , what Cmake version are you using, Is it 3.12+? If so then the installation path is derived from ${Python_SITEARCH} variable. This could be the source of the inconsistency between -DPYTHON_EXECUTABLE=/usr/bin/python3 and ${Python_SITEARCH}=python2.7
I'll try to ping @morxa to look into this as well.

@GOBish
Copy link
Author

GOBish commented Jul 30, 2020

cmake --version
cmake version 3.10.2

@GOBish
Copy link
Author

GOBish commented Jul 31, 2020

Raising the issue of Cmake got me thinking. I updated to a newer version of Cmake and rebuilt everything, and it now works with python3!

Here are the steps I took for updating Cmake on the Xavier:

1.wget http://www.cmake.org/files/v3.13/cmake-3.13.0.tar.gz
2. tar xpvf cmake-3.13.0.tar.gz cmake-3.13.0/
3. cd cmake-3.13.0/
4. ./bootstrap --system-curl
5. make -j6
6. echo 'export PATH=/home/nvidia/cmake-3.13.0/bin/:$PATH' >> ~/.bashrc
7. source ~/.bashrc

@RealSenseSupport
Copy link
Collaborator

RealSenseSupport commented Aug 6, 2020

@GOBish, thank you for letting us know t that it works after updating cmake to 3.12+.
We will close this issue unless otherwise. Thank you.

@Drkstr
Copy link

Drkstr commented Oct 21, 2020

Hi @RealSenseSupport @RealSense-Customer-Engineering

I am trying to use the python wrapper on the NX in python3. These are the steps I used to build the wrapper from source.
#6964 (comment) I used librealsense version 2.39

I have tried all the solutions posted here but I am still getting a " "ModuleNotFoundError: No module named 'pyrealsense2'"" error when I try to import into python3.

Do you guys have any other suggestions for me?

@GOBish
Copy link
Author

GOBish commented Oct 21, 2020

Does it work when you try it with just python and not python3?

@Drkstr
Copy link

Drkstr commented Oct 21, 2020

@GOBish nope doesn't work with python or python3

I set DPYTHON_EXECUTABLE=/usr/bin/python3.6

I tried importing from inside the build folder as well. Still no luck.

rakshak@jetsonNx:~/git_repos/librealsense-2.39.0/build$ python
Python 2.7.17 (default, Sep 30 2020, 13:38:04) 
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyrealsense2 as rs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyrealsense2
>>> exit()
rakshak@jetsonNx:~/git_repos/librealsense-2.39.0/build$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyrealsense2 as rs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyrealsense2'

@GOBish
Copy link
Author

GOBish commented Oct 21, 2020

Have you set the pythonpath?

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/pyrealsense2

@Drkstr
Copy link

Drkstr commented Oct 21, 2020

Yup, that was it. I did not have it in my path.

I set it to /usr/local/lib/python3.6/pyrealsense2 for python3

Thanks for that :D

@IquanKoxinga
Copy link

IquanKoxinga commented Nov 12, 2020

@RealSenseSupport @Drkstr @GOBish
Thank you for sharing your solutions. Currently, I can work with python2 but not with python3. I tried to update the CMake, but it is still not working. What is the next step after the CMake update?

@SolidState74
Copy link

SolidState74 commented Nov 14, 2020

@RealSenseSupport @MartyG-RealSense

I am having the exact same issue as @IquanKoxinga. I've tried every single tutorial/git I could find to install pyrealsense2 with python3.6. No matter what I try, I cannot get pyrealsense2 installed into my python3.6 path. I have completely run out of options/ideas.

FWIW, I can get pyrealsense2 to build into python2.7, but I need it to work with python3.6 in order to use my D455. Please help!

@Drkstr
Copy link

Drkstr commented Nov 14, 2020

@IquanKoxinga @SolidState74 what error are you getting?

Did you complete all the steps I have detailed here without error? #6964 (comment)

If you have id try trying again with a fresh install of the OS. I know its probably not what you want to hear, but that's what I ended up needs to do during one of my attempts to get the thing working.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 14, 2020

Hi @SolidState74 If you are using a Jetson: as well as the guide of @Drkstr that has worked for a number of people, there is a new user-contributed Jetson guide that was recently submitted and targets Python 3.6 with its PYTHONPATH.

#7722

@SolidState74
Copy link

SolidState74 commented Nov 14, 2020

@Drkstr @MartyG-RealSense
Thank you for the quick replies. @Drkstr,I had followed your guide yesterday, and everything finished without error, but I couldn't get the pyrealsense2 "stuff" to show up in my python3.6 folder. I am going to try today with a fresh OS flash. I will report back once I have some new info. Thanks again :)

@GOBish
Copy link
Author

GOBish commented Nov 14, 2020

@SolidState74 there was a point where the “stuff” didn’t show up in the python3 folder for me as well but I was still able to use python3 with the correct pythonpath setting

@lieuzhenghong
Copy link

lieuzhenghong commented Nov 15, 2020

Hi @SolidState74 , let me know if the instructions on #7722 work for you! I might have missed something out and want to make sure it's correct before making a PR. @MartyG-RealSense

@SolidState74
Copy link

SolidState74 commented Nov 15, 2020

@Drkstr @MartyG-RealSense

I followed https://github.com/IntelRealSense/librealsense/issues/6964#issuecomment-707501049 after a fresh OS flash, and everything is now working! Thanks again for the help on this. A couple of details:

  1. I did indeed need to install curl to upgrade Cmake
  2. When attempting step 5, I encountered the no CMAKE_CUDA_COMPILER error, fix here: https://github.com/jetsonhacks/buildLibrealsense2TX/issues/13
  3. After fixing above issue, I encountered a missing libxinerama error, which I solved with:
    sudo apt-get install libxinerama-dev
  4. After fixing missing libxinerama issue, I encountered a missing libxcursor error, which I solved with:
    sudo apt-get install libxcursor-dev
  5. After fixing missing libxcursor issue, CMAKE command worked as expected (I omitted the whitespace between the - and DPYTHON_EXECUTABLE)

I was able to complete the rest of the steps without issue, and a test run of a python script in python3 works perfectly.

Thanks again!

@SolidState74
Copy link

SolidState74 commented Nov 15, 2020

Hi @SolidState74 , let me know if the instructions on #7722 work for you! I might have missed something out and want to make sure it's correct before making a PR. @MartyG-RealSense

@lieuzhenghong I did not end up following your instructions in this most recent attempt, but I did the other day (thank you for putting that together). I didn't run into any issues with your steps. In the end, I had to reflash my OS to get things working.

@Drkstr
Copy link

Drkstr commented Nov 15, 2020

@SolidState74 glad you got it working :)

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 16, 2020

Yes @SolidState74 It's great to hear of your success. Thanks for the update :)

@IquanKoxinga
Copy link

IquanKoxinga commented Nov 18, 2020

@MartyG-RealSense
I just solved my problem. My problem was the files for python3 were built in a different folder ( not the same as python2.7): 'usr/bin/lib'. Thanks.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 19, 2020

Hi @IquanKoxinga That's great news - thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants