shensunbo Blog

「离开世界之前 一切都是过程」

bazel learn

bazel 基本规则 BUILD 文件: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 // 编译依赖项 cc_library( name = "test"...

将qnx编译方式由qcc修改为gcc

qnx.nto.toolchain.cmake, 在这个文件中 1 2 3 set(CMAKE_C_COMPILER ${QNX_HOST}/usr/bin/qcc) set(CMAKE_CXX_COMPILER ${QNX_HOST}/usr/bin/q++) set(CMAKE_ASM_COMPILER ${QNX_HOST}/usr/bin/qcc) c...

blender 注意事项

blender在导出fbx的时候,会自动将属性一模一样的材质合并 导出fbx blender中模型的z轴坐标为0,但导出fbx后使用assimp加载,一直是y轴坐标是0。 forward: -Z; Up: Y; 取消勾选Use Space Transform; TODO blender 中的部件有两个层级object和mesh,但其他...

gcov todo

// GCOVR_EXCL_LINE //GCOVR_EXCL_START //GCOVR_EXCL_STOP

english corner organized by me record

20250411 travel experiences 20250418 the book you want to recommend 20250425 good and bad feelings this week

delay Record

使用ffmpeg实现的一个预录制,用于保存开始录制之前的一段时间的视频 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 5...

json.hpp

常用操作 读取数组 1 2 3 4 "ceer_color": [1.0, 1.0, 0.0, 0.3], std::vector<int> color = block.at("color").get<std::vector<int>>(); tmp_block.color = glm::vec3(color.at(0), color.at(1), co...

memcpy优化失败

尝试了多种方式,仍然无法明显优化memcpy的拷贝速度,memcpy应该是已经高度优化过的了 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 ...

修改gerrit的review意见

直接在网页上修改 使用git修改 git fetch origin [git checkout <change-id>] git add . git commit --amend git push origin HEAD:refs/for/branch

LINUX 调试栈

info proc mappings 打印内存映射信息 ``` (gdb) info proc mappings process 104188 Mapped address spaces: 1 2 3 4 5 Start Addr End Addr Size Offset objfile 0x400000 ...