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

[BUG] Build errors when building package #14

Open
mvanlobensels opened this issue Aug 24, 2021 · 18 comments
Open

[BUG] Build errors when building package #14

mvanlobensels opened this issue Aug 24, 2021 · 18 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mvanlobensels
Copy link

mvanlobensels commented Aug 24, 2021

Bug report

Required information:

  • Operating system and version:
    Ubuntu 18.04 L4T, Jetpack 4.6
  • This repo installation type:
    Installed from source, running in a Docker
  • This repo version or commit hash
    Noetic branch, c83d27b
  • ROS distribution and version:
    Melodic
  • ROS installation type:
    From source

Description of the bug

I managed to install Cupoch from source and it is found by cupoch_conversions. However, I am now running into errors without clear explanation of what the error is.

Dependencies were missing so I first installed libglfw3-dev, libglew-dev, ros-melodic-pcl-ros, ros-melodic-pcl-conversions via apt and spdlog from source.

Then ran:

export GPUAC_COMPILE_WITH_CUDA=1
catkin_make -j5 -DCMAKE_BUILD_TYPE=Release

Expected behavior

Build success

Actual behavior

Error as shown below

Screenshots

image

Additional information

As I am using ROS Melodic, I am wondering if I should use ROS Noetic. I am using Melodic since the docs mentioned Ubuntu 18.04+. Does this package only support Noetic and Foxy?

@mvanlobensels mvanlobensels added the bug Something isn't working label Aug 24, 2021
@ZhenshengLee
Copy link
Owner

ZhenshengLee commented Aug 25, 2021

Thanks for your reporting.

Could you provide the full log with a log file, so I can search the item with "Error:"

You can give it a search to see error msgs too.

As I am using ROS Melodic, I am wondering if I should use ROS Noetic. I am using Melodic since the docs mentioned Ubuntu 18.04+. Does this package only support Noetic and Foxy?

Melodic is supported usually. It seems that the compiling error is not about ROS but for cupoch.

@ZhenshengLee ZhenshengLee added this to the PR1 milestone Aug 25, 2021
@ZhenshengLee
Copy link
Owner

@mvanlobensels

Hi, I add this guide https://github.com/ZhenshengLee/perception_cupoch/blob/noetic/cupoch_conversions/docs/tutorial.md ang gave it tests in jetson xavier jetpack 4.4.1.

Please try this and report issues.

@mvanlobensels
Copy link
Author

Thank you for your help @ZhenshengLee. I will try this. Where would I be able to find the log file you mentioned?

@ZhenshengLee
Copy link
Owner

Thank you for your help @ZhenshengLee. I will try this. Where would I be able to find the log file you mentioned?

From current terminal, there are too many lines and may be flushed, you could pipe it to a logfile like this.

catkin_make > build_log.log

@mvanlobensels
Copy link
Author

Thank tou @ZhenshengLee. I have followed your guide and installed cupoch-fat from source. The initial error I get when building perception-cupoch is the following, where math_functions.hpp cannot be found:
build_log.log

This can be resolved as explained here.

Then the issue is the same as described earlier:
build_log2.log

Your help would be much appreciated.

@ZhenshengLee
Copy link
Owner

Thank tou @ZhenshengLee. I have followed your guide and installed cupoch-fat from source. The initial error I get when building perception-cupoch is the following, where math_functions.hpp cannot be found:
build_log.log

This can be resolved as explained here.

Then the issue is the same as described earlier:
build_log2.log

Your help would be much appreciated.

No useful info in log file, I am afraid I cannot check the reason.

@mvanlobensels
Copy link
Author

Would it be possible for you to provide the Jetson Nano Docker image in which you tested this? I appreciate your help!

@ZhenshengLee
Copy link
Owner

@mvanlobensels sorry for late.

I have followed your guide and installed cupoch-fat from source. The initial error I get when building perception-cupoch is the following, where math_functions.hpp cannot be found:

Please upgrade eigen to 3.3.7

# 1804
sudo apt install libopenblas-dev freeglut3-dev libglew-dev libadolc-dev libcholmod3 libumfpack5 libmetis-dev libspqr2 libsparsehash-dev libmpfr-dev libmpfrc++-dev libfftw3-dev
# jetson
sudo apt install libopenblas-dev freeglut3-dev libglew-dev libadolc-dev libcholmod3.0.6 libumfpack5.7.1 libmetis-dev libspqr2.0.2 libsparsehash-dev libmpfr-dev libmpfrc++-dev libfftw3-dev

cmake .. -DCMAKE_INSTALL_PREFIX=/usr
sudo make install

@ZhenshengLee
Copy link
Owner

Would it be possible for you to provide the Jetson Nano Docker image in which you tested this? I appreciate your help!

Sorry I can't because my machine is lack of jetson container environment.

If you have compiling issues, feel free to report here.

Thanks.

@mvanlobensels
Copy link
Author

Thank you for your reply @ZhenshengLee,

I installed the packages you suggested. However, the #jetson command did not work and packages were not found, the #1804 command did work.
I cloned the repo and installed from source using cmake .. -DCMAKE_INSTALL_PREFIX=/usr, which succeeds, and then sudo make install. The last command fails and gives the same error as in the initial post, where in the initial post catkin_make was used

@ZhenshengLee
Copy link
Owner

However, the #jetson command did not work and packages were not found, the #1804 command did work.

It depends on your jetpack version. It worked in my version of jetpack 4.4.1

I cloned the repo and installed from source using cmake .. -DCMAKE_INSTALL_PREFIX=/usr, which succeeds

you should prefer to download the release package here https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz

The last command fails and gives the same error as in the initial post, where in the initial post catkin_make was used

did you remove the folder devel build ?

@ZhenshengLee
Copy link
Owner

@mvanlobensels

Install this dependicies before compiling.

sudo apt install nasm
sudo apt-get --yes install xorg-dev libglu1-mesa-dev libgl1-mesa-glx libglew-dev libglfw3-dev libeigen3-dev libpng-dev libpng16-16  libsdl2-dev python-dev python-tk python3-dev python3-tk  libtbb-dev  libglu1-mesa-dev  libc++-7-dev  libc++abi-7-dev  ninja-build  libxi-dev
sudo apt install libfmt-dev pybind11-dev libqhull-dev libglfw3-dev liblapacke-dev

Thanks.

@ZhenshengLee
Copy link
Owner

@mvanlobensels

Please follow guides here https://github.com/ZhenshengLee/perception_cupoch/blob/noetic/cupoch_conversions/res/patch/readme.md to fix compiling issue with cuda and boost

thanks.

@OrcunCanDeniz
Copy link

@mvanlobensels

Please follow guides here https://github.com/ZhenshengLee/perception_cupoch/blob/noetic/cupoch_conversions/res/patch/readme.md to fix compiling issue with cuda and boost

thanks.

Did this. Still get

Errors     << cupoch_conversions:make /home/orcun/test_ws/logs/cupoch_conversions/build.make.010.log                                                                                  
In file included from /usr/include/eigen3/Eigen/Core:42:0,
                 from /opt/cupoch/cupoch/include/cupoch/camera/pinhole_camera_intrinsic.h:23,
                 from /opt/cupoch/cupoch/include/cupoch/cupoch.h:3,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/include/cupoch_conversions/cupoch_conversions.h:19,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/src/cupoch_conversions.cu:15:
/usr/local/cuda-11.1/include/math_functions.hpp:54:2: warning: #warning "crt/math_functions.hpp is an internal header file and must not be used directly.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
 #warning "crt/math_functions.hpp is an internal header file and must not be used directly.  Please use cuda_runtime_api.h or cuda_runtime.h instead."
  ^~~~~~~
In file included from /usr/local/cuda-11.1/include/cuda_runtime.h:115:0,
                 from <command-line>:0:
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/cupoch/cupoch/include/cupoch/geometry/kdtree_flann.h:133:0,
                 from /opt/cupoch/cupoch/include/cupoch/cupoch.h:12,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/include/cupoch_conversions/cupoch_conversions.h:19,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/src/cupoch_conversions.cu:15:
/opt/cupoch/cupoch/include/cupoch/geometry/kdtree_flann.inl:22:0: warning: "FLANN_USE_CUDA" redefined
 #define FLANN_USE_CUDA
 
<command-line>:0:0: note: this is the location of the previous definition
CMake Error at cupoch_conversions_generated_cupoch_conversions.cu.o.Release.cmake:220 (message):
  Error generating
  /home/orcun/test_ws/build/cupoch_conversions/CMakeFiles/cupoch_conversions.dir/src/./cupoch_conversions_generated_cupoch_conversions.cu.o


make[2]: *** [CMakeFiles/cupoch_conversions.dir/src/cupoch_conversions_generated_cupoch_conversions.cu.o] Error 1
make[1]: *** [CMakeFiles/cupoch_conversions.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
                 from /opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:42,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/tool/pcl_conversions_test_node.cpp:2:
/home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/tool/pcl_conversions_test_node.cpp: In function ‘void points_callback(const PointCloud2ConstPtr&)’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘std::vector<pcl::PointXYZ, Eigen::aligned_allocator<pcl::PointXYZ> >::size_type {aka long unsigned int}’ [-Wformat=]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
 #define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                       ^~~~~~~
/home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/tool/pcl_conversions_test_node.cpp:35:5: note: in expansion of macro ‘ROS_INFO’
     ROS_INFO("this msg has %d points", cloud->points.size());
     ^
make: *** [all] Error 2

@mvanlobensels
Copy link
Author

@mvanlobensels
Please follow guides here https://github.com/ZhenshengLee/perception_cupoch/blob/noetic/cupoch_conversions/res/patch/readme.md to fix compiling issue with cuda and boost
thanks.

Did this. Still get

Errors     << cupoch_conversions:make /home/orcun/test_ws/logs/cupoch_conversions/build.make.010.log                                                                                  
In file included from /usr/include/eigen3/Eigen/Core:42:0,
                 from /opt/cupoch/cupoch/include/cupoch/camera/pinhole_camera_intrinsic.h:23,
                 from /opt/cupoch/cupoch/include/cupoch/cupoch.h:3,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/include/cupoch_conversions/cupoch_conversions.h:19,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/src/cupoch_conversions.cu:15:
/usr/local/cuda-11.1/include/math_functions.hpp:54:2: warning: #warning "crt/math_functions.hpp is an internal header file and must not be used directly.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
 #warning "crt/math_functions.hpp is an internal header file and must not be used directly.  Please use cuda_runtime_api.h or cuda_runtime.h instead."
  ^~~~~~~
In file included from /usr/local/cuda-11.1/include/cuda_runtime.h:115:0,
                 from <command-line>:0:
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
/usr/local/cuda-11.1/include/crt/common_functions.h:74:24: note: in definition of macro ‘__CUDACC_VER__’
 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/cupoch/cupoch/include/cupoch/geometry/kdtree_flann.h:133:0,
                 from /opt/cupoch/cupoch/include/cupoch/cupoch.h:12,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/include/cupoch_conversions/cupoch_conversions.h:19,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/src/cupoch_conversions.cu:15:
/opt/cupoch/cupoch/include/cupoch/geometry/kdtree_flann.inl:22:0: warning: "FLANN_USE_CUDA" redefined
 #define FLANN_USE_CUDA
 
<command-line>:0:0: note: this is the location of the previous definition
CMake Error at cupoch_conversions_generated_cupoch_conversions.cu.o.Release.cmake:220 (message):
  Error generating
  /home/orcun/test_ws/build/cupoch_conversions/CMakeFiles/cupoch_conversions.dir/src/./cupoch_conversions_generated_cupoch_conversions.cu.o


make[2]: *** [CMakeFiles/cupoch_conversions.dir/src/cupoch_conversions_generated_cupoch_conversions.cu.o] Error 1
make[1]: *** [CMakeFiles/cupoch_conversions.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
                 from /opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:42,
                 from /home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/tool/pcl_conversions_test_node.cpp:2:
/home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/tool/pcl_conversions_test_node.cpp: In function ‘void points_callback(const PointCloud2ConstPtr&)’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘std::vector<pcl::PointXYZ, Eigen::aligned_allocator<pcl::PointXYZ> >::size_type {aka long unsigned int}’ [-Wformat=]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
 #define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                       ^~~~~~~
/home/orcun/test_ws/src/perception_cupoch/cupoch_conversions/tool/pcl_conversions_test_node.cpp:35:5: note: in expansion of macro ‘ROS_INFO’
     ROS_INFO("this msg has %d points", cloud->points.size());
     ^
make: *** [all] Error 2

I have the same error. In the end, I decided to use Cupoch with Python bindings

@ZhenshengLee
Copy link
Owner

@OrcunCanDeniz

Did you upgrade your eigen to 3.3.7?

cmake .. -DCMAKE_INSTALL_PREFIX=/usr
sudo make install

@OrcunCanDeniz
Copy link

@OrcunCanDeniz

Did you upgrade your eigen to 3.3.7?

cmake .. -DCMAKE_INSTALL_PREFIX=/usr
sudo make install

it is already 3.3.7

@ZhenshengLee
Copy link
Owner

Any updates? I am ready to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants