Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
..\paddle\common.go:20:11: fatal error: paddle_c_api.h: No such file or directory // #include <paddle_c_api.h> ^~~~~~~~~~~~~~~~ compilation terminated.
5条答案
按热度按时间nhaq1z211#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
hmae6n7t2#
请提供完整的代码工程,方便复现问题,谢谢。
du7egjpx3#
@mervyn81
Golang demo的文档和代码都有所更新,请参照最新的中文文档
https://paddle-inference.readthedocs.io/en/latest/quick_start/go_demo.html
其中
paddle_c_api.h
位于预测库文件夹中的这个位置,lyr7nygr4#
@qili93
对不起, 图片我看不到, 但是我已经按照文档那两个步骤:
1.将本章节 第1步 中的 paddle_inference_c_install_dir 移到到 Paddle/go 目录下,并将 paddle_inference_c_install_dir 重命名为 paddle_c
2.本章节 第2步 中下载的模型和数据文件夹 data 移动到 Paddle/go 目录下
包括 : export LD_LIBRARY_PATH=
pwd
/paddle_c/paddle/lib:$LD_LIBRARY_PATH这是windows上的错误信息:
GOROOT=C:\Go #gosetup
GOPATH=C:\Users\Administrator\go #gosetup
C:\Go\bin\go.exe build -o C:\Users\Administrator\AppData\Local\Temp___go_build_mobilenet_go.exe "C:\Users\Administrator\go\Paddle Inference\demo\mobilenet.go" #gosetup
/C/Users/Administrator/go/Paddle_Inference/paddle
..\paddle\common.go:20:11: fatal error: paddle_c_api.h: No such file or directory
// #include <paddle_c_api.h>
^~~~~~~~~~~~~~~~
compilation terminated.
代码的话, 能不能在QQ群里传呢? 太大, GitHub太慢了
iih3973s5#
我也是一样的错误,都是按文档上做的