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 小时前
Ubuntu Linux Cursor 安装与使用一
linux·运维·ubuntu
一位摩羯座DBA4 小时前
Redhat&Centos挂载镜像
linux·运维·centos
学习3人组4 小时前
CentOS配置网络
linux·网络·centos
weixin_307779135 小时前
Hive集群之间迁移的Linux Shell脚本
大数据·linux·hive·bash·迁移学习
漫步企鹅5 小时前
【蓝牙】Linux Qt4查看已经配对的蓝牙信息
linux·qt·蓝牙·配对
cui_win5 小时前
【网络】Linux 内核优化实战 - net.core.flow_limit_table_len
linux·运维·网络
梦在深巷、5 小时前
MySQL/MariaDB数据库主从复制之基于二进制日志的方式
linux·数据库·mysql·mariadb
冰橙子id6 小时前
linux系统安全
linux·安全·系统安全
stark张宇6 小时前
VMware 虚拟机装 Linux Centos 7.9 保姆级教程(附资源包)
linux·后端
Johny_Zhao6 小时前
Ubuntu系统安装部署Pandawiki智能知识库
linux·mysql·网络安全·信息安全·云计算·shell·yum源·系统运维·itsm·pandawiki