Windows下VS+Qt+OSG+libtorch 环境配置

发布时间:2022-11-11 20:30

Windows下VS+Qt+OSG+libtorch 环境配置

图片显示配置位置,配置路径在每张图的下方。
Windows下VS+Qt+OSG+libtorch 环境配置_第1张图片
环境:

PATH=F:\libtorch-win-shared-with-deps-debug-1.8.1+cpu\libtorch\lib;%PATH%

Windows下VS+Qt+OSG+libtorch 环境配置_第2张图片

VC++目录
包含目录:

E:\libtorch-win-shared-with-deps-debug-1.9.0+cu111\libtorch\include\torch\csrc\api\include
D:\Qt\Qt5.12.3\5.12.3\msvc2017_64\include

库目录:

E:\libtorch-win-shared-with-deps-debug-1.9.0+cu111\libtorch\lib
D:\Qt\Qt5.12.3\5.12.3\msvc2017_64\lib

Windows下VS+Qt+OSG+libtorch 环境配置_第3张图片

C/C++ 常规
附加包含目录:

E:\libtorch-win-shared-with-deps-debug-1.9.0+cu111\libtorch\include\torch\csrc\api\include
E:\libtorch-win-shared-with-deps-debug-1.9.0+cu111\libtorch\include
F:\OSG\OpenSceneGraph-OpenSceneGraph-3.6.4\build\include

Windows下VS+Qt+OSG+libtorch 环境配置_第4张图片
链接器->常规
附加库目录:

F:\OSG\OpenSceneGraph-OpenSceneGraph-3.6.4\build\lib
E:\libtorch-win-shared-with-deps-debug-1.9.0+cu111\libtorch\lib

Windows下VS+Qt+OSG+libtorch 环境配置_第5张图片
链接器->输入
附加依赖项:

osgd.lib
osgGAd.lib
osgDBd.lib
osgViewerd.lib
osgTextd.lib
osgUtild.lib
osgParticled.lib
osgSimd.lib
OpenThreadsd.lib
osgWidgetd.lib
osgShadowd.lib
osgAnimationd.lib
asmjit.lib
c10.lib
c10d.lib
caffe2_module_test_dynamic.lib
clog.lib
cpuinfo.lib
dnnl.lib
fbgemm.lib
libprotobufd.lib
libprotobuf-lited.lib
libprotocd.lib
mkldnn.lib
torch.lib
torch_cpu.lib
torch_cuda.lib

ItVuer - 免责声明 - 关于我们 - 联系我们

本网站信息来源于互联网,如有侵权请联系:561261067@qq.com

桂ICP备16001015号