Start cmake build
Please select build mode [Debug(1)/Release(0)]:0
Is install lib and include files on the workspace, please input [yes(1)/no[0]]:1
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Mode: Release
-- optional:-std=c++11 -Wall
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/jazzy/ldlidar_ws/ldlidar_sdk/sample/linux/build
[ 4%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/ldlidar_driver.cpp.o
[ 8%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/ldlidar_driver_linux.cpp.o
[ 12%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/ldlidar_dataprocess.cpp.o
[ 16%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/ldlidar_protocol.cpp.o
[ 20%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp.o
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp: In member function ‘void LogModule::InitLock()’:
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp:186:3: error: ‘pthread_mutex_init’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
186 | pthread_mutex_init(&mutex_lock_,NULL);
| ^~~~~~~~~~~~~~~~~~
| pthread_mutex_t
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp: In member function ‘void LogModule::RealseLock()’:
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp:194:9: error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
194 | pthread_mutex_unlock(&mutex_lock_);
| ^~~~~~~~~~~~~~~~~~~~
| pthread_mutex_t
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp: In member function ‘void LogModule::Lock()’:
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp:202:9: error: ‘pthread_mutex_lock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
202 | pthread_mutex_lock(&mutex_lock_);
| ^~~~~~~~~~~~~~~~~~
| pthread_mutex_t
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp: In member function ‘void LogModule::UnLock()’:
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp:210:9: error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
210 | pthread_mutex_unlock(&mutex_lock_);
| ^~~~~~~~~~~~~~~~~~~~
| pthread_mutex_t
make[2]: *** [CMakeFiles/ldlidar_driver_static.dir/build.make:132: CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/ldlidar_driver_static.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Start cmake build
Please select build mode [Debug(1)/Release(0)]:0
Is install lib and include files on the workspace, please input [yes(1)/no[0]]:1
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Mode: Release
-- optional:-std=c++11 -Wall
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/jazzy/ldlidar_ws/ldlidar_sdk/sample/linux/build
[ 4%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/ldlidar_driver.cpp.o
[ 8%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/ldlidar_driver_linux.cpp.o
[ 12%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/ldlidar_dataprocess.cpp.o
[ 16%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/ldlidar_protocol.cpp.o
[ 20%] Building CXX object CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp.o
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp: In member function ‘void LogModule::InitLock()’:
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp:186:3: error: ‘pthread_mutex_init’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
186 | pthread_mutex_init(&mutex_lock_,NULL);
| ^~~~~~~~~~~~~~~~~~
| pthread_mutex_t
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp: In member function ‘void LogModule::RealseLock()’:
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp:194:9: error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
194 | pthread_mutex_unlock(&mutex_lock_);
| ^~~~~~~~~~~~~~~~~~~~
| pthread_mutex_t
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp: In member function ‘void LogModule::Lock()’:
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp:202:9: error: ‘pthread_mutex_lock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
202 | pthread_mutex_lock(&mutex_lock_);
| ^~~~~~~~~~~~~~~~~~
| pthread_mutex_t
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp: In member function ‘void LogModule::UnLock()’:
/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp:210:9: error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’?
210 | pthread_mutex_unlock(&mutex_lock_);
| ^~~~~~~~~~~~~~~~~~~~
| pthread_mutex_t
make[2]: *** [CMakeFiles/ldlidar_driver_static.dir/build.make:132: CMakeFiles/ldlidar_driver_static.dir/home/jazzy/ldlidar_ws/ldlidar_sdk/src/log_module.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/ldlidar_driver_static.dir/all] Error 2
make: *** [Makefile:136: all] Error 2