- 博客(10)
- 收藏
- 关注
原创 华为Atlas 200 DK在用户HwHiAiUser下加载运行模型出错
华为Atlas 200 DK在用户HwHiAiUser下运行程序,报错:[ERROR] execute model failed, modelId is 1[ERROR] Execute model inference failed[ERROR] Inference model inference output data failed查看模型文件属性:-rwxr-xr-- 1 root root 6560386 Apr 22 02:29 face_detection
2021-04-23 16:22:26 1635
原创 c++类动态注册摸索与理解
#ifndef INC_MODULE_FACTORY2_H#define INC_MODULE_FACTORY2_H#include <string>#include <map>#include <functional>#include <utility> // std::pair#include <iostream> // std::cout#define MODULE_REG(class_name,id,d
2021-04-21 16:21:33 664
原创 关于c/c++头文件的一个注意点
我们在扩展程序的时候,喜欢把某个地方的源文件和头文件拷贝后,再修改使用,但是经常发现新的程序没有跑起来,或者各种异常报错,本人就常常被折腾很久,才发现那个重复出现的陋习。
2021-04-21 14:16:23 97
原创 protobuf编译备忘
1,指定源码包:protobuf-all-3.5.1.tar.gz2,ubuntu18目录:/media/sf_share/03-start/jinxing/07-protoc3,执行解压命令:tar -zxvf protobuf-all-3.5.1.tar.gz ,得到文件:protobuf-3.5.14,在目录/home/HwHiAiUser/06-protobuf下新建文件:mkdir pc_protobuf4,配置安装目录命令./configure --prefix=/home/HwH
2021-04-20 10:24:04 251
原创 编译警告:backslash and newline separated by space
backslash and newline separated by space原因是因为\ 后面多了一个空格检查写的代码中将\后面的空格去掉就可以了.
2021-04-17 12:13:03 6152
转载 ostringstream >>> string >>> char *
c++中c_str()的用法详解// ostringstream::rdbuf#include <string> // std::string#include <iostream> // std::cout#include <sstream> // std::ostringstreamint main () { std::ostringstream oss; oss << "One hundred and on
2021-04-15 23:35:00 582
原创 关于制作tar包的正确姿势
调试好程序的文件夹(包含大量动态依赖库),为了方便整理打包,就把这个文件夹通过scp拷贝到了另外一台电脑,整理好了再tar命令打包,然后分发到其它目标机去执行,此时发现问题:undefined symbol: halMemFree问题卡了半天,后来先就地tar打包,再scp拷贝tar包到其他地方去整理,就没问题了。总结经验:文件夹就地tar打包,再分发使用。打包命令:tar -czvf app.tar.gz app/解压命令:tar -zxvf app.tar.gz...
2021-04-13 11:43:31 491
原创 手动启动或关闭mosquitto服务器
有时候需要随时关掉或启动mosquitto,执行命令:./usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
2021-04-13 09:33:51 1792 2
原创 cmake编译出错:undefined reference to `pthread_create‘
解决办法是,添加pthread动态库target_link_libraries(app pthread)
2021-04-12 22:48:15 559 1
原创 mosquitto发布订阅示例
发布示例:mosquitto_pub -h 192.168.1.130 -p 1813 -t "mqtt" -m "Hello MQTT"订阅示例:mosquitto_sub -h 192.168.1.130 -p 1813 -t "mqtt" -v
2021-04-12 11:38:08 553 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人