PLOG安装

Plog可以通过以下命令安装

cpp 复制代码
    cd ~ && git clone https://github.com/SergiusTheBest/plog.git
    cd plog && mkdir build
    cd build && cmake ..
    make && sudo make install
    cd ~ && sudo rm -rf ./plog

若无法科学上网,可使用git clone https://gitee.com/sofronio/plog.git

如果报错:

CMake Error at /usr/share/cmake-3.23/Modules/ExternalProject.cmake:2650 (message):

URL_HASH is set to

复制代码
SHA256=0e21928b3bcc4f9bcaf7333fb1c8c0299d97e2ec9e13e3faa2c5a7ac8a3bc573;DOWNLOAD_EXTRACT_TIMESTAMP;TRUE

but must be ALGO=value where ALGO is

复制代码
MD5|SHA1|SHA224|SHA256|SHA384|SHA512|SHA3_224|SHA3_256|SHA3_384|SHA3_512

and value is a hex string.

Call Stack (most recent call first):

/usr/share/cmake-3.23/Modules/ExternalProject.cmake:3640 (_ep_add_download_command)

CMakeLists.txt:15 (ExternalProject_Add)

-- Configuring incomplete, errors occurred!

解决方式:

plog/sample/FreeRTOS/Cmakelists里的这部分内容改成这个

Download FreeRTOS-Kernel sources

复制代码
FetchContent_Declare(
    freertos_kernel
 GIT_REPOSITORY https://github.com/FreeRTOS/FreeRTOS-Kernel.git
# Note: 最好使用特定的 Git 哈希或标签版本
GIT_TAG main
)
相关推荐
心灵宝贝2 分钟前
CentOS 7 安装 unzip-6.0-21.el7.x86_64.rpm 步骤详解(附安装包)
linux·服务器·centos
q***13344 分钟前
在linux(Centos)中Mysql的端口修改保姆级教程
linux·mysql·centos
Starry_hello world8 分钟前
Linux 文件缓冲区
linux
牢七28 分钟前
操作系统。
linux
SongYuLong的博客1 小时前
openwrt源码编译环境搭建-安装Luci
linux·嵌入式硬件
熙客1 小时前
Linux:监控命令
linux·运维
飞鱼&1 小时前
Linux 常用命令
linux·运维·服务器
偶像你挑的噻1 小时前
4-Linux驱动开发-字符设备驱动
linux·运维·驱动开发
遇见火星2 小时前
Linux 网络性能测试实战:用 iperf3 精准测出真实带宽与丢包率
linux·网络·php·iperf3
赖small强2 小时前
【Linux驱动开发】Linux块设备驱动开发详解
linux·驱动开发·块设备·字符设备