FastDeploy icon indicating copy to clipboard operation
FastDeploy copied to clipboard

编译后打开编译代码,引入都报错了

Open chfeizy opened this issue 2 years ago • 8 comments

git clone https://github.com/PaddlePaddle/FastDeploy.git cd FastDeploy mkdir build && cd build cmake .. -DENABLE_ORT_BACKEND=ON
-DENABLE_PADDLE_BACKEND=ON
-DENABLE_OPENVINO_BACKEND=ON
-DCMAKE_INSTALL_PREFIX=${PWD}/compiled_fastdeploy_sdk
-DENABLE_VISION=ON
-DENABLE_TEXT=ON make -j12 make install

按照以上执行后打开compiled_fastdeploy_sdk里的代码 image 引入都报错的

chfeizy avatar Nov 08 '22 04:11 chfeizy

image opencv用的3.4.16 的这个版本太低了现在基本都用4.5 的了

chfeizy avatar Nov 08 '22 05:11 chfeizy

你这里指的报错,是指编译出错了吗? 能否贴一下错误日志

jiangjiajun avatar Nov 08 '22 05:11 jiangjiajun

直接打开编译生成里的example文件,是引用有问题

chfeizy avatar Nov 08 '22 05:11 chfeizy

是指IDE里面的显示问题吗? 你的IDE是VS Code吗?

jiangjiajun avatar Nov 08 '22 06:11 jiangjiajun

clion

chfeizy avatar Nov 08 '22 06:11 chfeizy

感觉是库的引用有问题,结构里代码都有的

chfeizy avatar Nov 08 '22 06:11 chfeizy

知道了是例子要单独再引入刚才编译的 sdk

chfeizy avatar Nov 08 '22 06:11 chfeizy

image /Users/also/www/FastDeploy/examples/vision/matting/rvm/cpp/build/infer_demo infer_demo(25161,0x7ff84c6be4c0) malloc: Attempted to register zone more than once: 0x10ebe2160 [INFO] fastdeploy/runtime.cc(513)::Init Runtime initialized with Backend::OPENVINO in Device::CPU. Visualized result save in ./visualized_result.jpg and ./visualized_result_fg.jpg infer_demo(25161,0x7ff84c6be4c0) malloc: *** error for object 0x111931b40: pointer being freed was not allocated infer_demo(25161,0x7ff84c6be4c0) malloc: *** set a breakpoint in malloc_error_break to debug Signal: SIGABRT (signal SIGABRT) Terminated due to signal 6

Process finished with exit code 6

运行测试会进入断点

chfeizy avatar Nov 08 '22 08:11 chfeizy

+1

wuhongsheng avatar Mar 16 '23 07:03 wuhongsheng