Skip to content

lanbaoshen/dlt-daemon-macos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diagnostic Log and Trace

Based on COVESA/dlt-daemon, it only developed and tested with Ubuntu Linux 16 64-bit / Intel PC.

Because of my poor C/C++ coding skill and only need run it on macOS, I just fix error which raised by cmake or make when execute on my macbook.

Test

  • Test on chip:

    • Apple Silicon
  • Test on macOS version:

    • 12.2.1
    • 12.3
    • 14.2.1

Build and install

cd /path/to/workspace/dlt-daemon
mkdir build
cd build
cmake ..
make
optional: sudo make install
optional: sudo ldconfig # in case you executed make install

Diff

  • src/lib/dlt_user.c:

    • Remove pthread_setname_np first argument
    • Remove pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
  • src/lib/CMakeLists.txt & src/daemon/CMakeLists.txt:

    • Remove ${SOCKET_LIBRARY}, because do not need -lsocket
  • src/offlinelogstorage/dlt_offline_logstorage_behavior.c:

    • Remove return -1; in dlt_logstorage_open_log_output_file
  • src/console/logstorage/CMakeLists.txt:

    • Remove add_definitions(-Werror), because daemon is deprecated on newer macOS

About

Diagnostic Log and Trace. Modify for macOS only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 69.1%
  • C++ 26.6%
  • CMake 2.5%
  • Shell 1.5%
  • Other 0.3%