摘要: Get started with CMake Tools on Linux CMake is an open-source, cross-platform tool that uses compiler and platform independent configuration files to 阅读全文
posted @ 2022-10-11 21:31 MasonLee 阅读(722) 评论(0) 推荐(1) 编辑
摘要: 需要引入cc依赖 Cargo.toml [package] name = "rust-call-c" version = "0.1.0" authors = ["ice <bsqql123@163.com>"] build = "build.rs" [dependencies] libc = "0. 阅读全文
posted @ 2022-10-11 17:12 MasonLee 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 刚入坑Rust,因为公司项目需求,需要将libjpeg-turbo移植到Rust中,在使用NDK完成交叉编译后,我对着几个库文件不知所措。国内Rust相关的文章太少,无奈只能到github和Stack Overflow上找答案。这篇文章的内容其实是Rust FFI章节的相关知识,在这里做一下总结。 阅读全文
posted @ 2022-10-11 17:09 MasonLee 阅读(971) 评论(0) 推荐(0) 编辑
摘要: git config --global user.email johndoe@example.com git config --global user.name "John Doe" git config --global credential.helper store 阅读全文
posted @ 2022-10-11 11:08 MasonLee 阅读(27) 评论(0) 推荐(0) 编辑
摘要: spdlog Install ubuntu sudo apt install libspdlog-dev 阅读全文
posted @ 2022-10-11 10:29 MasonLee 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 原因在于版本不统一,之前编译过CMakeLists.txt后,产生了缓存文件CMakeCache.txt, 解决方案:删除CMakeCache.txt文件,解决。 rm -f `find -name CMakeCache.txt` 阅读全文
posted @ 2022-10-11 09:47 MasonLee 阅读(458) 评论(0) 推荐(0) 编辑