Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

头文件包含问题 #46

Closed
xinsuinizhuan opened this issue Oct 8, 2021 · 1 comment
Closed

头文件包含问题 #46

xinsuinizhuan opened this issue Oct 8, 2021 · 1 comment

Comments

@xinsuinizhuan
Copy link

我另外一个工程要调用lite.ai.toolkit库时,我仍然需要包含onnxruntime mnn和ncnn库的头文件,其实,调用的时候,我只需要接口即可,可不可以尽量把onnxruntime mnn和ncnn库头文件目录的包含只限制到lite.ai.toolkit里面,其他程序调用lite.ai.toolkit时,不需要包含onnxruntime mnn和ncnn库头文件??

@DefTruth
Copy link
Owner

DefTruth commented Oct 8, 2021

我另外一个工程要调用lite.ai.toolkit库时,我仍然需要包含onnxruntime mnn和ncnn库的头文件,其实,调用的时候,我只需要接口即可,可不可以尽量把onnxruntime mnn和ncnn库头文件目录的包含只限制到lite.ai.toolkit里面,其他程序调用lite.ai.toolkit时,不需要包含onnxruntime mnn和ncnn库头文件??

  1. 现在不太建议使用MNN和NCNN支持的版本,因为目前支持的模型很少,但是如果启用ENABLE_MNN=ON和EANABLE_NCNN=ON的话,就需要包含NCNN和MNN进来,有点得不偿失。
  2. 目前暂时还没有整合所有头文件的计划,👍但是你的建议挺好的,确实可以把所有的头文件都整合到lite.ai.toolkit的include里面,这样就不用额外设置依赖库的头文件了。需要在CMakelists.txt增加一些自动整合的逻辑,之后可以添加进来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants