Having trouble compiling ROS node (inc cuda) using catkin_make?
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 ...
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
I have already edit my question, and I hope you answer. Thanks very much!!!
@lgLeo please use the preformatted text (
101010
) button to properly format your text and make it more legible.This is my first time to use it, please forgive me. And I will remember next time.
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.
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!!!
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.This is my search solution, but useless. link text