摘要:
注1:参考代码取自 grpc 源码目录下的 examples\cpp\helloworld 注2:操作系统 Ubuntu 16.04 1. 安装 protoc 工具 下载 Grpc_v1.43.0_SetupFile.zip 文件,解压到任意目录下载链接:https://pan.baidu.com/
阅读全文
posted @ 2022-02-17 10:56
青叶煮酒
阅读(408)
推荐(0)
摘要:
1. 参考官方文档 https://grpc.io/docs/languages/cpp/quickstart/,执行编译相关命令。如下所示: export MY_INSTALL_DIR=$HOME/grpc_v1.43.0 mkdir -p $MY_INSTALL_DIR export PATH=
阅读全文
posted @ 2022-02-16 15:20
青叶煮酒
阅读(478)
推荐(0)
摘要:
1. 参考官方文档 https://grpc.io/docs/languages/cpp/quickstart/,执行编译相关命令。如下所示: export MY_INSTALL_DIR=$HOME/grpc_v1.43.0 mkdir -p $MY_INSTALL_DIR export PATH=
阅读全文
posted @ 2022-02-09 16:27
青叶煮酒
阅读(244)
推荐(0)
摘要:
gcc 是 GNU Compiler Collection(GNU 编译器套件),也可以简单认为是编译器,它可以编译很多种编程语言(包括 C、C++、Objective-C、Fortran、Java 等)。 当你的程序只有一个源文件时,可以直接用 gcc 命令编译它。 但是当你的程序包含很多个源文件
阅读全文
posted @ 2022-02-07 16:15
青叶煮酒
阅读(397)
推荐(0)
摘要:
切换到新的分支 git checkout --orphan latest_branch 缓存所有文件(除了.gitignore中声明排除的) git add -A 提交跟踪过的文件 git commit -am "first commit" 删除 main 分支 git branch -D main
阅读全文
posted @ 2022-01-25 11:31
青叶煮酒
阅读(98)
推荐(0)
摘要:
示例代码如下: string chmodCmdStr = "chmod +x ./AEConsole_GatewayService"; Process process = new Process(); process.StartInfo.UseShellExecute = false; proces
阅读全文
posted @ 2022-01-21 13:24
青叶煮酒
阅读(2298)
推荐(1)
摘要:
示例代码如下: if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { // Windows 相关逻辑 } else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { //
阅读全文
posted @ 2022-01-11 11:08
青叶煮酒
阅读(3705)
推荐(1)
摘要:
方式一:通过 nm -D xxx.so | grep XX 命令 注:nm -D 命令的输出可读性不好,通过比较其与 nm -C 命令的输出(同一地址的为同一个函数),可精确定位想要的函数。示例如下: nm -D libcyusb.so | grep cyusb // 显示动态符号 nm -C li
阅读全文
posted @ 2021-12-20 17:41
青叶煮酒
阅读(3506)
推荐(1)
摘要:
1. 安装 libusb 库 sudo apt-get install libusb-dev sudo apt-get install libusb-1.0-0-dev 2. 安装 qt4 sudo apt-get install build-essential sudo apt-get insta
阅读全文
posted @ 2021-12-17 15:28
青叶煮酒
阅读(691)
推荐(0)
摘要:
原理:通过 Google.Protobuf 的 MessageParser 对 gRpc 的 message 进行解析 示例如下(PllClockInfo 为 xxx.proto 文件中自定义的 message): using Google.Protobuf; PllClockInfo pllClo
阅读全文
posted @ 2021-12-15 17:42
青叶煮酒
阅读(736)
推荐(0)