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
)
相关推荐
拾贰_C42 分钟前
【Linux | Windows | Terminal Command】 Linux---grep | Windows--- findstr
linux·运维·服务器
阿华hhh2 小时前
Linux系统编程(标准io)
linux·开发语言·c++
石像鬼₧魂石2 小时前
Kali Linux 网络端口深度扫描
linux·运维·网络
alengan2 小时前
linux上面写python3日志服务器
linux·运维·服务器
Rose sait3 小时前
【环境配置】Linux配置虚拟环境pytorch
linux·人工智能·python
叶之香4 小时前
CentOS/RHEL 7、8安装exfat和ntfs文件系统
linux·运维·centos
一世琉璃白_Y4 小时前
pg配置国内数据源安装
linux·python·postgresql·centos
不过普通话一乙不改名4 小时前
Linux 内核开发入门:从环境配置到 Hello World 实战
linux·运维
乖乖是干饭王4 小时前
Linux 内核 Kbuild 中的 ld 调用机制
linux·c·makefile