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

Build fails on Jetson AGX with Jetpack 5.0 #3

Open
cordu69 opened this issue Apr 27, 2022 · 2 comments
Open

Build fails on Jetson AGX with Jetpack 5.0 #3

cordu69 opened this issue Apr 27, 2022 · 2 comments

Comments

@cordu69
Copy link

cordu69 commented Apr 27, 2022

Error description :

Hello,
I've created a new workspace containing only the isaac_ros_common and isaac_ros_image_pipeline packages but the build fails on the isaac_ros_image_proc node.

System setup :

ROS Distro - Foxy
Hardware - Nvidia Jetson AGX
Ubuntu - 20.04
Jetpack version - 5.0.0

Error message :

/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp: In function ‘cv::Mat {anonymous}::GetConvertedMat(VPIImageImpl*&, VPIImageImpl*&, VPIStreamImpl*&, const cv::Mat&, uint32_t, std::__cxx11::string, std::__cxx11::string)’:
/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:68:5: error: ‘vpiImageCreateOpenCVMatWrapper’ was not declared in this scope
     vpiImageCreateOpenCVMatWrapper(
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/xavier/test/install/isaac_ros_common/include/isaac_ros_common/vpi_utilities.hpp:20:25: note: in definition of macro ‘CHECK_STATUS’
     VPIStatus status = (STMT); \
                         ^~~~
/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:68:5: note: suggested alternative: ‘vpiImageCreateWrapper’
     vpiImageCreateOpenCVMatWrapper(
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/xavier/test/install/isaac_ros_common/include/isaac_ros_common/vpi_utilities.hpp:20:25: note: in definition of macro ‘CHECK_STATUS’
     VPIStatus status = (STMT); \
                         ^~~~
/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:81:61: error: too many arguments to function ‘VPIStatus vpiImageLock(VPIImage, VPILockMode)’
   CHECK_STATUS(vpiImageLock(output, VPI_LOCK_READ, &out_data));
                                                             ^
/home/xavier/test/install/isaac_ros_common/include/isaac_ros_common/vpi_utilities.hpp:20:25: note: in definition of macro ‘CHECK_STATUS’
     VPIStatus status = (STMT); \
                         ^~~~
In file included from /home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:28:
/opt/nvidia/vpi2/include/vpi/Image.h:556:22: note: declared here
 VPI_PUBLIC VPIStatus vpiImageLock(VPIImage img, VPILockMode mode);
                      ^~~~~~~~~~~~
/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:82:31: error: ‘VPIImageData’ {aka ‘struct VPIImageDataRec’} has no member named ‘planes’
   cv::Mat output_mat{out_data.planes[0].height, out_data.planes[0].width,
                               ^~~~~~
/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:82:58: error: ‘VPIImageData’ {aka ‘struct VPIImageDataRec’} has no member named ‘planes’
   cv::Mat output_mat{out_data.planes[0].height, out_data.planes[0].width,
                                                          ^~~~~~
/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:83:54: error: ‘VPIImageData’ {aka ‘struct VPIImageDataRec’} has no member named ‘planes’
     g_str_to_channels.at(encoding_desired), out_data.planes[0].data,
                                                      ^~~~~~
/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:84:34: error: ‘VPIImageData’ {aka ‘struct VPIImageDataRec’} has no member named ‘planes’
     static_cast<size_t>(out_data.planes[0].pitchBytes)};
                                  ^~~~~~
/home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:84:55: error: no matching function for call to ‘cv::Mat::Mat(<brace-enclosed initializer list>)’
     static_cast<size_t>(out_data.planes[0].pitchBytes)};
                                                       ^
In file included from /usr/include/opencv4/opencv2/core.hpp:58,
                 from /usr/include/opencv4/opencv2/core/core.hpp:48,
                 from /opt/ros/foxy/include/cv_bridge/cv_bridge.h:43,
                 from /home/xavier/test/src/isaac_ros_image_pipeline/isaac_ros_image_proc/src/image_format_converter_node.cpp:20:
/usr/include/opencv4/opencv2/core/mat.hpp:2091:5: note: candidate: ‘cv::Mat::Mat(cv::Mat&&)’
     Mat(Mat&& m);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:2091:5: note:   candidate expects 1 argument, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:1051:14: note: candidate: ‘cv::Mat::Mat(const cv::cuda::GpuMat&)’
     explicit Mat(const cuda::GpuMat& m);
              ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1051:14: note:   candidate expects 1 argument, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:1048:37: note: candidate: ‘template<class _Tp> cv::Mat::Mat(const cv::MatCommaInitializer_<_Tp>&)’
     template<typename _Tp> explicit Mat(const MatCommaInitializer_<_Tp>& commaInitializer);
                                     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1048:37: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:1044:37: note: candidate: ‘template<class _Tp> cv::Mat::Mat(const cv::Point3_<_Tp>&, bool)’
     template<typename _Tp> explicit Mat(const Point3_<_Tp>& pt, bool copyData=true);
                                     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1044:37: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:1040:37: note: candidate: ‘template<class _Tp> cv::Mat::Mat(const cv::Point_<_Tp>&, bool)’
     template<typename _Tp> explicit Mat(const Point_<_Tp>& pt, bool copyData=true);
                                     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1040:37: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:1036:51: note: candidate: ‘template<class _Tp, int m, int n> cv::Mat::Mat(const cv::Matx<_Tp, m, n>&, bool)’
     template<typename _Tp, int m, int n> explicit Mat(const Matx<_Tp, m, n>& mtx, bool copyData=true);
                                                   ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1036:51: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:1032:44: note: candidate: ‘template<class _Tp, int n> cv::Mat::Mat(const cv::Vec<_Tp, m>&, bool)’
     template<typename _Tp, int n> explicit Mat(const Vec<_Tp, n>& vec, bool copyData=true);
                                            ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1032:44: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:1028:49: note: candidate: ‘template<class _Tp, long unsigned int _Nm> cv::Mat::Mat(const std::array<_Tp, _Nm>&, bool)’
     template<typename _Tp, size_t _Nm> explicit Mat(const std::array<_Tp, _Nm>& arr, bool copyData=false);
                                                 ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1028:49: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:1024:37: note: candidate: ‘template<class _Tp> cv::Mat::Mat(std::initializer_list<int>, std::initializer_list<_Tp>)’
     template<typename _Tp> explicit Mat(const std::initializer_list<int> sizes, const std::initializer_list<_Tp> list);
                                     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1024:37: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:1020:14: note: candidate: ‘template<class _Tp, class> cv::Mat::Mat(std::initializer_list<_Tp>)’
     explicit Mat(const std::initializer_list<_Tp> list);
              ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1020:14: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:1015:37: note: candidate: ‘template<class _Tp> cv::Mat::Mat(const std::vector<BufferT>&, bool)’
     template<typename _Tp> explicit Mat(const std::vector<_Tp>& vec, bool copyData=false);
                                     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:1015:37: note:   template argument deduction/substitution failed:
/usr/include/opencv4/opencv2/core/mat.hpp:997:5: note: candidate: ‘cv::Mat::Mat(const cv::Mat&, const std::vector<cv::Range>&)’
     Mat(const Mat& m, const std::vector<Range>& ranges);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:997:5: note:   candidate expects 2 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:987:5: note: candidate: ‘cv::Mat::Mat(const cv::Mat&, const cv::Range*)’
     Mat(const Mat& m, const Range* ranges);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:987:5: note:   candidate expects 2 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:977:5: note: candidate: ‘cv::Mat::Mat(const cv::Mat&, const Rect&)’
     Mat(const Mat& m, const Rect& roi);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:977:5: note:   candidate expects 2 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:967:5: note: candidate: ‘cv::Mat::Mat(const cv::Mat&, const cv::Range&, const cv::Range&)’
     Mat(const Mat& m, const Range& rowRange, const Range& colRange=Range::all());
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:967:5: note:   candidate expects 3 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:955:5: note: candidate: ‘cv::Mat::Mat(const std::vector<int>&, int, void*, const size_t*)’
     Mat(const std::vector<int>& sizes, int type, void* data, const size_t* steps=0);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:955:5: note:   candidate expects 4 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:941:5: note: candidate: ‘cv::Mat::Mat(int, const int*, int, void*, const size_t*)’
     Mat(int ndims, const int* sizes, int type, void* data, const size_t* steps=0);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:941:5: note:   conversion of argument 1 would be ill-formed:
/usr/include/opencv4/opencv2/core/mat.hpp:926:5: note: candidate: ‘cv::Mat::Mat(cv::Size, int, void*, size_t)’
     Mat(Size size, int type, void* data, size_t step=AUTO_STEP);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:926:5: note:   candidate expects 4 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:910:5: note: candidate: ‘cv::Mat::Mat(int, int, int, void*, size_t)’
     Mat(int rows, int cols, int type, void* data, size_t step=AUTO_STEP);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:910:5: note:   conversion of argument 1 would be ill-formed:
/usr/include/opencv4/opencv2/core/mat.hpp:894:5: note: candidate: ‘cv::Mat::Mat(const cv::Mat&)’
     Mat(const Mat& m);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:894:5: note:   candidate expects 1 argument, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:884:5: note: candidate: ‘cv::Mat::Mat(const std::vector<int>&, int, const Scalar&)’
     Mat(const std::vector<int>& sizes, int type, const Scalar& s);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:884:5: note:   candidate expects 3 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:874:5: note: candidate: ‘cv::Mat::Mat(int, const int*, int, const Scalar&)’
     Mat(int ndims, const int* sizes, int type, const Scalar& s);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:874:5: note:   candidate expects 4 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:863:5: note: candidate: ‘cv::Mat::Mat(const std::vector<int>&, int)’
     Mat(const std::vector<int>& sizes, int type);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:863:5: note:   candidate expects 2 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:856:5: note: candidate: ‘cv::Mat::Mat(int, const int*, int)’
     Mat(int ndims, const int* sizes, int type);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:856:5: note:   candidate expects 3 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:848:5: note: candidate: ‘cv::Mat::Mat(cv::Size, int, const Scalar&)’
     Mat(Size size, int type, const Scalar& s);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:848:5: note:   candidate expects 3 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:837:5: note: candidate: ‘cv::Mat::Mat(int, int, int, const Scalar&)’
     Mat(int rows, int cols, int type, const Scalar& s);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:837:5: note:   candidate expects 4 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:826:5: note: candidate: ‘cv::Mat::Mat(cv::Size, int)’
     Mat(Size size, int type);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:826:5: note:   candidate expects 2 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:818:5: note: candidate: ‘cv::Mat::Mat(int, int, int)’
     Mat(int rows, int cols, int type);
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:818:5: note:   candidate expects 3 arguments, 5 provided
/usr/include/opencv4/opencv2/core/mat.hpp:810:5: note: candidate: ‘cv::Mat::Mat()’
     Mat() CV_NOEXCEPT;
     ^~~
/usr/include/opencv4/opencv2/core/mat.hpp:810:5: note:   candidate expects 0 arguments, 5 provided
make[2]: *** [CMakeFiles/image_format_converter_node.dir/build.make:63: CMakeFiles/image_format_converter_node.dir/src/image_format_converter_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:168: CMakeFiles/image_format_converter_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< isaac_ros_image_proc [15.8s, exited with code 2]
Aborted  <<< isaac_ros_stereo_image_proc [1min 4s]                                        

Am i missing any dependency ?
Thank you in advance !

@hemalshahNV
Copy link
Member

hemalshahNV commented Oct 11, 2022 via email

@omerts
Copy link

omerts commented May 2, 2023

anyone running into this, this is an old outdated repo, use this instead: git@github.com:NVIDIA-ISAAC-ROS/isaac_ros_image_pipeline.git

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

No branches or pull requests

3 participants