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

修复编译器警告 #35

Open
leonhartyao opened this issue Jun 1, 2023 · 0 comments
Open

修复编译器警告 #35

leonhartyao opened this issue Jun 1, 2023 · 0 comments

Comments

@leonhartyao
Copy link

请修复编译器警告

Starting >>> ydlidar_sdk
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:49 (cmake_policy):
  The OLD behavior for policy CMP0053 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:52 (cmake_policy):
  The OLD behavior for policy CMP0037 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:55 (cmake_policy):
  The OLD behavior for policy CMP0043 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) 
-- Found PythonInterp: /usr/bin/python3.10 (found version "3.10.6") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found version "3.10.6") 
-- Found GTest: /usr/lib/x86_64-linux-gnu/cmake/GTest/GTestConfig.cmake (found version "1.11.0")  
CMake Deprecation Warning at core/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at samples/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- build test is ON.....
CMake Deprecation Warning at cmake/install_package.cmake:216 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:167 (install_package)


================ installing and exporting lib in /home/developer/bcr2/ros_ws/install/ydlidar_sdk/lib/ydlidar_sdk =============
-- 
-- +===========================================================================+
-- |         Resulting configuration for                             |
-- +===========================================================================+
--  _________________________ PLATFORM _____________________________
--  Host                        : Linux5.15.0-46-genericx86_64
--  Is the system big endian?   :  No 
--  Word size (32/64 bit)       : 64
--  CMake version               : 3.22.1
--  CMake generator             : Unix Makefiles
--  CMake build tool            : /usr/bin/gmake
--  Compiler                    : GNU
--  Configuration               : Release
-- C++ flags (Release):      -std=c++11 -O3 -DNDEBUG
-- 
--  __________________________ OPTIONS _____________________________
--  Build YDLidar-SDK as a shared library?   : Yes 
--  Build Examples?               : Yes 
--  Build C Sharp API?             :  No 
--  Build TEST?  			    : Yes 
-- 
--  _________________________ INSTALL _____________________
--  Install prefix                    : /home/developer/bcr2/ros_ws/install/ydlidar_sdk
-- 
--  _______________________ WRAPPERS/BINDINGS ______________________
--  Python bindings (pyydlidar)   :  No 
--   - dep: Swig found?       :  No [Version: ]
--   - dep: PythonLibs found?  : Yes [Version: 3.10.6]
-- 
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CATKIN_INSTALL_INTO_PREFIX_ROOT
    CATKIN_SYMLINK_INSTALL


-- Build files have been written to: /home/developer/bcr2/ros_ws/build/ydlidar_sdk
[  3%] Building C object CMakeFiles/ydlidar_sdk.dir/core/serial/impl/unix/lock.c.o
[  6%] Building CXX object CMakeFiles/ydlidar_sdk.dir/core/network/PassiveSocket.cpp.o
[ 10%] Building CXX object CMakeFiles/ydlidar_sdk.dir/core/common/ydlidar_def.cpp.o
[ 13%] Building CXX object CMakeFiles/ydlidar_sdk.dir/src/CYdLidar.cpp.o
[ 16%] Building CXX object CMakeFiles/ydlidar_sdk.dir/core/network/ActiveSocket.cpp.o
[ 20%] Building CXX object CMakeFiles/ydlidar_sdk.dir/src/ETLidarDriver.cpp.o
[ 23%] Building CXX object CMakeFiles/ydlidar_sdk.dir/core/base/timer.cpp.o
[ 26%] Building CXX object CMakeFiles/ydlidar_sdk.dir/core/serial/serial.cpp.o
[ 30%] Building CXX object CMakeFiles/ydlidar_sdk.dir/core/serial/impl/unix/unix_serial.cpp.o
[ 33%] Building CXX object CMakeFiles/ydlidar_sdk.dir/src/GS2LidarDriver.cpp.o
[ 36%] Building CXX object CMakeFiles/ydlidar_sdk.dir/src/YDlidarDriver.cpp.o
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c: In function ‘fhs_lock’:
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c:243:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  243 |   write(fd, lockinfo, 11);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c: In function ‘uucp_lock’:
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c:328:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  328 |   write(fd, lockinfo, 11);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c: In function ‘is_device_locked’:
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c:773:5: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  773 |     read(fd, pid_buffer, 11);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
[ 40%] Building CXX object CMakeFiles/ydlidar_sdk.dir/src/filters/NoiseFilter.cpp.o
[ 43%] Building CXX object CMakeFiles/ydlidar_sdk.dir/src/ydlidar_sdk.cpp.o
[ 46%] Building CXX object CMakeFiles/ydlidar_sdk.dir/core/network/SimpleSocket.cpp.o
In file included from ../../src/ydlidar/YDLidar-SDK/src/CYdLidar.cpp:33:
../../src/ydlidar/YDLidar-SDK/core/common/ydlidar_help.h: In member function ‘void CYdLidar::handleVersionInfoByPackage(const LaserDebug&)’:
../../src/ydlidar/YDLidar-SDK/core/common/ydlidar_help.h:917:67: warning: ‘__builtin___sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]
  917 |       sprintf(reinterpret_cast<char *>(value.serialnum + 8), "%08d", Number);
      |                                                                   ^
In file included from /usr/include/stdio.h:894,
                 from ../../src/ydlidar/YDLidar-SDK/core/base/datatype.h:5,
                 from ../../src/ydlidar/YDLidar-SDK/core/base/v8stdint.h:3,
                 from ../../src/ydlidar/YDLidar-SDK/core/common/DriverInterface.h:2,
                 from ../../src/ydlidar/YDLidar-SDK/src/CYdLidar.h:48,
                 from ../../src/ydlidar/YDLidar-SDK/src/CYdLidar.cpp:29:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:34: note: ‘__builtin___sprintf_chk’ output 9 bytes into a destination of size 8
   38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
../../src/ydlidar/YDLidar-SDK/src/GS2LidarDriver.cpp: In member function ‘result_t ydlidar::GS2LidarDriver::waitPackage(node_info*, uint32_t)’:
../../src/ydlidar/YDLidar-SDK/src/GS2LidarDriver.cpp:912:83: warning: taking address of packed member of ‘node_info’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  912 |             angTransform((*node).distance_q2, package_Sample_Index, &sampleAngle, &(*node).distance_q2);
      |                                                                                   ^~~~~~~~~~~~~~~~~~~~
[ 50%] Building CXX object CMakeFiles/ydlidar_sdk.dir/core/serial/impl/unix/list_ports_linux.cpp.o
[ 53%] Linking CXX shared library libydlidar_sdk.so
[ 53%] Built target ydlidar_sdk
[ 56%] Building CXX object samples/CMakeFiles/et_test.dir/et_test.cpp.o
[ 60%] Building CXX object samples/CMakeFiles/tmini_test.dir/tmini_test.cpp.o
[ 63%] Building CXX object samples/CMakeFiles/tof_test.dir/tof_test.cpp.o
[ 66%] Building CXX object samples/CMakeFiles/gs_test.dir/gs_test.cpp.o
[ 70%] Building C object samples/CMakeFiles/lidar_c_api_test.dir/lidar_c_api_test.c.o
[ 73%] Building CXX object samples/CMakeFiles/tri_test.dir/tri_test.cpp.o
[ 76%] Building CXX object test/CMakeFiles/lidar_test.dir/lidar_test.cpp.o
cc1: warning: command-line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
[ 80%] Linking CXX executable ../et_test
[ 83%] Linking CXX executable ../tmini_test
[ 86%] Linking CXX executable lidar_test
[ 90%] Linking CXX executable ../tof_test
[ 93%] Linking CXX executable ../tri_test
[ 96%] Linking C executable ../lidar_c_api_test
[100%] Linking CXX executable ../gs_test
[100%] Built target tri_test
[100%] Built target tof_test
[100%] Built target gs_test
[100%] Built target tmini_test
[100%] Built target et_test
[100%] Built target lidar_c_api_test
[100%] Built target lidar_test
-- Install configuration: "Release"
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/lib/libydlidar_sdk.so
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/cmake_uninstall.cmake.in
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/FindPackage.cmake.in
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/PackageConfig.cmake.in
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/common
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/common/ydlidar_parse.cmake
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/common/ydlidar_base.cmake
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/install_package.cmake
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/PkgConfig.pc.in
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/PackageConfigVersion.cmake.in
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/script_show_final_summary.cmake
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/LICENSE.txt
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/README.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/YDLidar-SDK-Communication-Protocol.html
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/Dataset.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/YDLidar-SDK-Communication-Protocol.pdf
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/YDLidar_SDK_Communication_Protocol.pdf
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/Diagram.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/Tutorials.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/README.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/how_to_create_a_pull.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/how_to_solve_slow_pull_from_cn.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/README.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/how_to_create_a_udev_rules.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/how_to_build_and_install.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/how_to_create_a_csharp_project.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/ydlidar_lidar_monitor.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/csharp_build.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/sequence.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/csharp_library.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/csharp_project.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/vscode
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/vscode/run_tasks.jpg
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/vscode/tasks.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/csharp_running.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/sdk_scanning.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/ttyUSB1.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/cpack.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/ttyUSB0.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/sdk_init.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/images/csharp_exception.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/how_to_gerenrate_vs_project_by_cmake.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/howto/how_to_build_and_debug_using_vscode.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/FAQs
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/FAQs/Hardware_FAQs.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/FAQs/README.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/FAQs/Hardware_FAQs_cn.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/FAQs/General_FAQs.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/FAQs/Software_FAQs_cn.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/FAQs/General_FAQs_cn.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/FAQs/Software_FAQs.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/YDLidar-SDK-Communication-Protocol.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/quickstart
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/quickstart/README.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/quickstart/ydlidar_sdk_software_installation_guide.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/sequence.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/YDLidar.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/system_workflow.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/frame_intensity.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/YDLidar.jpg
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/FlowChart.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/communication_mechanism.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/sdk_architecture.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/sdk_scanning.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/angle_q2.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/EAI.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/sdk_init.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/images/frame.png
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/tutorials
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/tutorials/writing_lidar_tutorial_python.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/tutorials/writing_lidar_tutorial_c.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/tutorials/writing_lidar_network_adapter_tutorial_c++.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/tutorials/examine_the_simple_lidar_tutorial.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/tutorials/writing_lidar_tutorial_c++.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/YDLIDAR_SDK_API_for_Developers.md
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/share/YDLIDAR_SDK/doc/SDK.pdf
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/startup/initenv.sh
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/et_test
-- Set runtime path of "/home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/et_test" to ""
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/gs_test
-- Set runtime path of "/home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/gs_test" to ""
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/tmini_test
-- Set runtime path of "/home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/tmini_test" to ""
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/tof_test
-- Set runtime path of "/home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/tof_test" to ""
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/tri_test
-- Set runtime path of "/home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/tri_test" to ""
-- Installing: /home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/lidar_c_api_test
-- Set runtime path of "/home/developer/bcr2/ros_ws/install/ydlidar_sdk/bin/lidar_c_api_test" to ""
--- stderr: ydlidar_sdk
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at CMakeLists.txt:49 (cmake_policy):
  The OLD behavior for policy CMP0053 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:52 (cmake_policy):
  The OLD behavior for policy CMP0037 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:55 (cmake_policy):
  The OLD behavior for policy CMP0043 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at core/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at samples/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at cmake/install_package.cmake:216 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:167 (install_package)


================ installing and exporting lib in /home/developer/bcr2/ros_ws/install/ydlidar_sdk/lib/ydlidar_sdk =============
CMake Warning:
  Manually-specified variables were not used by the project:

    CATKIN_INSTALL_INTO_PREFIX_ROOT
    CATKIN_SYMLINK_INSTALL


../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c: In function ‘fhs_lock’:
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c:243:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  243 |   write(fd, lockinfo, 11);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c: In function ‘uucp_lock’:
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c:328:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  328 |   write(fd, lockinfo, 11);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c: In function ‘is_device_locked’:
../../src/ydlidar/YDLidar-SDK/core/serial/impl/unix/lock.c:773:5: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  773 |     read(fd, pid_buffer, 11);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../src/ydlidar/YDLidar-SDK/src/CYdLidar.cpp:33:
../../src/ydlidar/YDLidar-SDK/core/common/ydlidar_help.h: In member function ‘void CYdLidar::handleVersionInfoByPackage(const LaserDebug&)’:
../../src/ydlidar/YDLidar-SDK/core/common/ydlidar_help.h:917:67: warning: ‘__builtin___sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]
  917 |       sprintf(reinterpret_cast<char *>(value.serialnum + 8), "%08d", Number);
      |                                                                   ^
In file included from /usr/include/stdio.h:894,
                 from ../../src/ydlidar/YDLidar-SDK/core/base/datatype.h:5,
                 from ../../src/ydlidar/YDLidar-SDK/core/base/v8stdint.h:3,
                 from ../../src/ydlidar/YDLidar-SDK/core/common/DriverInterface.h:2,
                 from ../../src/ydlidar/YDLidar-SDK/src/CYdLidar.h:48,
                 from ../../src/ydlidar/YDLidar-SDK/src/CYdLidar.cpp:29:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:34: note: ‘__builtin___sprintf_chk’ output 9 bytes into a destination of size 8
   38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
../../src/ydlidar/YDLidar-SDK/src/GS2LidarDriver.cpp: In member function ‘result_t ydlidar::GS2LidarDriver::waitPackage(node_info*, uint32_t)’:
../../src/ydlidar/YDLidar-SDK/src/GS2LidarDriver.cpp:912:83: warning: taking address of packed member of ‘node_info’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  912 |             angTransform((*node).distance_q2, package_Sample_Index, &sampleAngle, &(*node).distance_q2);
      |                                                                                   ^~~~~~~~~~~~~~~~~~~~
cc1: warning: command-line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
---
Finished <<< ydlidar_sdk [6.94s]

Summary: 1 package finished [7.27s]
  1 package had stderr output: ydlidar_sdk

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

1 participant