Having trouble compiling ROS node (inc cuda) using catkin_make?

asked 2018-01-25 19:16:08 -0500

lgLeo gravatar image

updated 2018-02-01 00:05:42 -0500

I would like to compile CUDA on Ros. However, when I add find_package (PCL REQUIRED) inside cmakelist,then will appear error:

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:202

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:248

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:293

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:332

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:382

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:444

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:562

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:651

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CUDASampLib_generated_basic.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/CUDASampLib_generated_basic.cu.o.cmake:79:705

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Removing /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/./CUDASampLib_generated_basic.cu.o
/usr/bin/cmake -E remove /home/ubuntu/lw/roscuda/build/velodyne_lidar/CMakeFiles/CUDASampLib.dir/src/./CUDASampLib_generated_basic.cu.o
[  4%] Built target geometry_msgs_generate_messages_nodejs
[  4%] Built ...
(more)
edit retag flag offensive close merge delete

Comments

1

Please edit you question to provide enough information to reproduce your problem otherwise it will be hard to help you. You appear to have one error and one warning. wiki.ros.org/Support

tfoote gravatar image tfoote  ( 2018-01-31 12:15:07 -0500 )edit

I have already edit my question, and I hope you answer. Thanks very much!!!

lgLeo gravatar image lgLeo  ( 2018-01-31 22:25:24 -0500 )edit

@lgLeo please use the preformatted text (101010) button to properly format your text and make it more legible.

jayess gravatar image jayess  ( 2018-01-31 23:01:58 -0500 )edit

This is my first time to use it, please forgive me. And I will remember next time.

lgLeo gravatar image lgLeo  ( 2018-01-31 23:32:55 -0500 )edit

The CMakeLists.txt you posted doesn't match the package name or the file name in your error message. You may be looking for your error in the wrong place.

ahendrix gravatar image ahendrix  ( 2018-01-31 23:43:42 -0500 )edit

The CMakeLists.txt is what I used to test before, now I have edit all error and CMakeLists.txt. Hope your help. Thanks very much!!!

lgLeo gravatar image lgLeo  ( 2018-02-01 00:08:00 -0500 )edit

The only thing that looks obviously weird in your CMakeLists.txt is the manipulation of vtk_flags that you're doing. Everything else looks relatively normal.

ahendrix gravatar image ahendrix  ( 2018-02-01 02:20:51 -0500 )edit

This is my search solution, but useless. link text

lgLeo gravatar image lgLeo  ( 2018-02-01 02:29:32 -0500 )edit