文章分类 -  linux / clion

摘要:# 生成 compile_commands.json ```shell # 否则会报 wrapper: failed with: gRPC call failed: Socket closed export no_proxy=localhost bear -- make ARCH=arm CROSS 阅读全文
posted @ 2023-08-25 01:48 chumoath 阅读(388) 评论(0) 推荐(0)
摘要:# bear 报错 ```shell # 初次安装bear时由于提前使用了 $ export https_proxy=http://127.0.0.1:8889 命令,导致了该问题。使用如下命令可以解决: export no_proxy=localhost ``` 阅读全文
posted @ 2023-08-25 01:42 chumoath 阅读(93) 评论(0) 推荐(0)
摘要:# cmake 生成模块依赖图片 ```shell # CMKAE_SOURCE_DIR 目录 / 其他有 CMakeLists.txt 的目录 cmake --graphviz=dp.dot . sudo apt install graphviz dot -Tpng -odp.png -Gdpi= 阅读全文
posted @ 2023-08-16 22:32 chumoath 阅读(374) 评论(0) 推荐(0)
摘要:# 内建变量 ```cmake # cmake -S source_dir -B build_dir CMAKE_MINIMUM_REQUIRED(VERSION 3.14) CMAKE_SOURCE_DIR # 顶层 CMakeLists.txt 所在目录 CMAKE_BINARY_DIR # b 阅读全文
posted @ 2023-08-16 22:16 chumoath 阅读(544) 评论(2) 推荐(0)
摘要:# 步骤 1. 将 Makefile 重命名 2. 删除 .idea 3. File -> Invalidate Caches 即可 阅读全文
posted @ 2023-08-16 21:43 chumoath 阅读(187) 评论(0) 推荐(0)
摘要:# 各个界面 1. Structure View -> Tool Windows -> Structure / Hierarchy / Debug / Messages / TODO 2. 回退工具按钮 View -> Apperance -> ToolBar / StatusBar / other 阅读全文
posted @ 2023-08-16 02:29 chumoath 阅读(113) 评论(0) 推荐(0)
摘要:# clion setting ``` 1.setting -> build -> cmake -> cmake options -DCMAKE_TOOLCHAIN_FILE=./build/arch/arm-linux-cross-compile.cmake -DCMAKE_INSTALL_PRE 阅读全文
posted @ 2023-08-16 02:07 chumoath 阅读(217) 评论(0) 推荐(0)