Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6482 Discussions

How can I compile a static openvino library?

xiaoxiongli
Beginner
2,641 Views

Hi, Dear all, 

      Please help me...

      I wanna to compile a static openvino library in windows 10(Visual Studio verison is 16.11.3
),  and I use version 'releases/2021/3', my step is: 

 

1) cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..

2) cmake --build . --config Release --verbose -j8

 

and then a lot of compile error occur:

 

ngraph_reference.lib(eval_helpers.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::elemen
t::Type::operator enum ngraph::element::Type_t(void)const " (__imp_??BType@element@ngraph@@QEBA?AW4Type_t@12@XZ),函数 "cl
ass std::vector<__int64,class std::allocator<__int64> > __cdecl host_tensor_2_vector<__int64>(class std::shared_ptr<cla
ss ngraph::runtime::HostTensor>)" (??$host_tensor_2_vector@_J@@YA?AV?$vector@_JV?$allocator@_J@std@@@std@@V?$shared_ptr
@VHostTensor@runtime@ngraph@@@1@@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference
_engine_transformations.vcxproj]
ngraph_reference.lib(loop.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class ngraph::Dimension
__cdecl ngraph::Dimension::dynamic(void)" (__imp_?dynamic@Dimension@ngraph@@SA?AV12@XZ),函数 "void __cdecl ngraph::runti
me::reference::loop(class std::shared_ptr<class ngraph::Function> const &,class std::vector<class std::shared_ptr<class
ngraph::op::util::SubGraphOp::OutputDescription>,class std::allocator<class std::shared_ptr<class ngraph::op::util::Su
bGraphOp::OutputDescription> > > const &,class std::vector<class std::shared_ptr<class ngraph::op::util::SubGraphOp::In
putDescription>,class std::allocator<class std::shared_ptr<class ngraph::op::util::SubGraphOp::InputDescription> > > co
nst &,struct ngraph::op::v5::Loop::SpecialBodyPorts const &,class std::vector<class std::shared_ptr<class ngraph::runti
me::HostTensor>,class std::allocator<class std::shared_ptr<class ngraph::runtime::HostTensor> > > const &,class std::ve
ctor<class std::shared_ptr<class ngraph::runtime::HostTensor>,class std::allocator<class std::shared_ptr<class ngraph::
runtime::HostTensor> > > const &)" (?loop@reference@runtime@ngraph@@YAXAEBV?$shared_ptr@VFunction@ngraph@@@std@@AEBV?$v
ector@V?$shared_ptr@VOutputDescription@SubGraphOp@util@op@ngraph@@@std@@V?$allocator@V?$shared_ptr@VOutputDescription@S
ubGraphOp@util@op@ngraph@@@std@@@2@@5@AEBV?$vector@V?$shared_ptr@VInputDescription@SubGraphOp@util@op@ngraph@@@std@@V?$
allocator@V?$shared_ptr@VInputDescription@SubGraphOp@util@op@ngraph@@@std@@@2@@5@AEBUSpecialBodyPorts@Loop@v5@op@3@AEBV
?$vector@V?$shared_ptr@VHostTensor@runtime@ngraph@@@std@@V?$allocator@V?$shared_ptr@VHostTensor@runtime@ngraph@@@std@@@
2@@5@4@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vc
xproj]
已定义且可能匹配的符号上的提示:
"__declspec(dllimport) public: static class ngraph::PartialShape __cdecl ngraph::PartialShape::dynamic(class ngra
ph::Dimension)" (__imp_?dynamic@PartialShape@ngraph@@SA?AV12@VDimension@2@@Z)
ngraph_builders.lib(reshape.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::bfloat16::bf
loat16(float)" (__imp_??0bfloat16@ngraph@@QEAA@M@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\i
nference_engine_transformations.vcxproj]
ngraph_builders.lib(split.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::bfloat16::bflo
at16(float)" (__imp_??0bfloat16@ngraph@@QEAA@M@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inf
erence_engine_transformations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::bfloat16:
:bfloat16(float)" (__imp_??0bfloat16@ngraph@@QEAA@M@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformation
s\inference_engine_transformations.vcxproj]
ngraph_reference.lib(loop.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::bfloat16::bflo
at16(float)" (__imp_??0bfloat16@ngraph@@QEAA@M@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inf
erence_engine_transformations.vcxproj]
ngraph_builders.lib(autobroadcast.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::bfloat
16::bfloat16(float)" (__imp_??0bfloat16@ngraph@@QEAA@M@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformat
ions\inference_engine_transformations.vcxproj]
ngraph_builders.lib(make_constant.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::bfloat
16::bfloat16(float)" (__imp_??0bfloat16@ngraph@@QEAA@M@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformat
ions\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::bfloat16::bfloa
t16(float)" (__imp_??0bfloat16@ngraph@@QEAA@M@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\infe
rence_engine_transformations.vcxproj]
ngraph_reference.lib(loop.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl ngraph::op::v0::P
arameter::set_partial_shape(class ngraph::PartialShape const &)" (__imp_?set_partial_shape@Parameter@v0@op@ngraph@@QEAA
XAEBVPartialShape@4@@Z),函数 "void __cdecl ngraph::runtime::reference::loop(class std::shared_ptr<class ngraph::Function>
const &,class std::vector<class std::shared_ptr<class ngraph::op::util::SubGraphOp::OutputDescription>,class std::allo
cator<class std::shared_ptr<class ngraph::op::util::SubGraphOp::OutputDescription> > > const &,class std::vector<class
std::shared_ptr<class ngraph::op::util::SubGraphOp::InputDescription>,class std::allocator<class std::shared_ptr<class
ngraph::op::util::SubGraphOp::InputDescription> > > const &,struct ngraph::op::v5::Loop::SpecialBodyPorts const &,class
std::vector<class std::shared_ptr<class ngraph::runtime::HostTensor>,class std::allocator<class std::shared_ptr<class
ngraph::runtime::HostTensor> > > const &,class std::vector<class std::shared_ptr<class ngraph::runtime::HostTensor>,cla
ss std::allocator<class std::shared_ptr<class ngraph::runtime::HostTensor> > > const &)" (?loop@reference@runtime@ngrap
h@@YAXAEBV?$shared_ptr@VFunction@ngraph@@@std@@AEBV?$vector@V?$shared_ptr@VOutputDescription@SubGraphOp@util@op@ngraph@
@@std@@V?$allocator@V?$shared_ptr@VOutputDescription@SubGraphOp@util@op@ngraph@@@std@@@2@@5@AEBV?$vector@V?$shared_ptr@@
VInputDescription@SubGraphOp@util@op@ngraph@@@std@@V?$allocator@V?$shared_ptr@VInputDescription@SubGraphOp@util@op@ngra
ph@@@std@@@2@@5@AEBUSpecialBodyPorts@Loop@v5@op@3@AEBV?$vector@V?$shared_ptr@VHostTensor@runtime@ngraph@@@std@@V?$alloc
ator@V?$shared_ptr@VHostTensor@runtime@ngraph@@@std@@@2@@5@4@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\inference-engine\s
rc\transformations\inference_engine_transformations.vcxproj]
ngraph_reference.lib(loop.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::vector<class std::s
hared_ptr<class ngraph::op::v0::Result>,class std::allocator<class std::shared_ptr<class ngraph::op::v0::Result> > > co
nst & __cdecl ngraph::Function::get_results(void)const " (__imp_?get_results@Function@ngraph@@QEBAAEBV?$vector@V?$share
d_ptr@VResult@v0@op@ngraph@@@std@@V?$allocator@V?$shared_ptr@VResult@v0@op@ngraph@@@std@@@2@@std@@XZ),函数 "void __cdecl
ngraph::runtime::reference::loop(class std::shared_ptr<class ngraph::Function> const &,class std::vector<class std::sha
red_ptr<class ngraph::op::util::SubGraphOp::OutputDescription>,class std::allocator<class std::shared_ptr<class ngraph:
:op::util::SubGraphOp::OutputDescription> > > const &,class std::vector<class std::shared_ptr<class ngraph::op::util::S
ubGraphOp::InputDescription>,class std::allocator<class std::shared_ptr<class ngraph::op::util::SubGraphOp::InputDescri
ption> > > const &,struct ngraph::op::v5::Loop::SpecialBodyPorts const &,class std::vector<class std::shared_ptr<class
ngraph::runtime::HostTensor>,class std::allocator<class std::shared_ptr<class ngraph::runtime::HostTensor> > > const &,
class std::vector<class std::shared_ptr<class ngraph::runtime::HostTensor>,class std::allocator<class std::shared_ptr<c
lass ngraph::runtime::HostTensor> > > const &)" (?loop@reference@runtime@ngraph@@YAXAEBV?$shared_ptr@VFunction@ngraph@@
@std@@AEBV?$vector@V?$shared_ptr@VOutputDescription@SubGraphOp@util@op@ngraph@@@std@@V?$allocator@V?$shared_ptr@VOutput
Description@SubGraphOp@util@op@ngraph@@@std@@@2@@5@AEBV?$vector@V?$shared_ptr@VInputDescription@SubGraphOp@util@op@ngra
ph@@@std@@V?$allocator@V?$shared_ptr@VInputDescription@SubGraphOp@util@op@ngraph@@@std@@@2@@5@AEBUSpecialBodyPorts@Loop
@v5@op@3@AEBV?$vector@V?$shared_ptr@VHostTensor@runtime@ngraph@@@std@@V?$allocator@V?$shared_ptr@VHostTensor@runtime@ng
raph@@@std@@@2@@5@4@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_trans
formations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: void * __cdecl ngraph::op
::v0::Constant::get_data_ptr_nc(void)" (__imp_?get_data_ptr_nc@Constant@v0@op@ngraph@@IEAAPEAXXZ) [D:\SR\openvino_2021_
3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(split.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: void * __cdecl ngraph::op::
v0::Constant::get_data_ptr_nc(void)" (__imp_?get_data_ptr_nc@Constant@v0@op@ngraph@@IEAAPEAXXZ) [D:\SR\openvino_2021_3\
build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: void * __cdecl ngraph:
:op::v0::Constant::get_data_ptr_nc(void)" (__imp_?get_data_ptr_nc@Constant@v0@op@ngraph@@IEAAPEAXXZ) [D:\SR\openvino_20
21_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_reference.lib(loop.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: void * __cdecl ngraph::op::
v0::Constant::get_data_ptr_nc(void)" (__imp_?get_data_ptr_nc@Constant@v0@op@ngraph@@IEAAPEAXXZ) [D:\SR\openvino_2021_3\
build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(autobroadcast.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: void * __cdecl ngra
ph::op::v0::Constant::get_data_ptr_nc(void)" (__imp_?get_data_ptr_nc@Constant@v0@op@ngraph@@IEAAPEAXXZ) [D:\SR\openvino
_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(make_constant.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: void * __cdecl ngra
ph::op::v0::Constant::get_data_ptr_nc(void)" (__imp_?get_data_ptr_nc@Constant@v0@op@ngraph@@IEAAPEAXXZ) [D:\SR\openvino
_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: void * __cdecl ngraph::op::v
0::Constant::get_data_ptr_nc(void)" (__imp_?get_data_ptr_nc@Constant@v0@op@ngraph@@IEAAPEAXXZ) [D:\SR\openvino_2021_3\b
uild\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(split.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<class n
graph::Node>::Output<class ngraph::Node>(void)" (__imp_??0?$Output@VNode@ngraph@@@ngraph@@QEAA@XZ) [D:\SR\openvino_2021
_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<cl
ass ngraph::Node>::Output<class ngraph::Node>(void)" (__imp_??0?$Output@VNode@ngraph@@@ngraph@@QEAA@XZ) [D:\SR\openvino
_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(autobroadcast.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output
<class ngraph::Node>::Output<class ngraph::Node>(void)" (__imp_??0?$Output@VNode@ngraph@@@ngraph@@QEAA@XZ) [D:\SR\openv
ino_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(make_constant.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output
<class ngraph::Node>::Output<class ngraph::Node>(void)" (__imp_??0?$Output@VNode@ngraph@@@ngraph@@QEAA@XZ) [D:\SR\openv
ino_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<class ng
raph::Node>::Output<class ngraph::Node>(void)" (__imp_??0?$Output@VNode@ngraph@@@ngraph@@QEAA@XZ) [D:\SR\openvino_2021_
3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<class
ngraph::Node>::Output<class ngraph::Node>(void)" (__imp_??0?$Output@VNode@ngraph@@@ngraph@@QEAA@XZ) [D:\SR\openvino_20
21_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(autobroadcast.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output
<class ngraph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> const &)" (__imp_??0?$Output@
VNode@ngraph@@@ngraph@@QEAA@AEBV01@@Z),函数 "public: __cdecl std::vector<class ngraph::Output<class ngraph::Node>,class s
td::allocator<class ngraph::Output<class ngraph::Node> > >::vector<class ngraph::Output<class ngraph::Node>,class std::
allocator<class ngraph::Output<class ngraph::Node> > >(class std::vector<class ngraph::Output<class ngraph::Node>,class
std::allocator<class ngraph::Output<class ngraph::Node> > > const &)" (??0?$vector@V?$Output@VNode@ngraph@@@ngraph@@V?
$allocator@V?$Output@VNode@ngraph@@@ngraph@@@std@@@std@@QEAA@AEBV01@@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\inference-
engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<class ng
raph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> const &)" (__imp_??0?$Output@VNode@ngr
aph@@@ngraph@@QEAA@AEBV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transf
ormations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<class
ngraph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> const &)" (__imp_??0?$Output@VNode@
ngraph@@@ngraph@@QEAA@AEBV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_tra
nsformations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<cl
ass ngraph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> const &)" (__imp_??0?$Output@VNo
de@ngraph@@@ngraph@@QEAA@AEBV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_
transformations.vcxproj]
ngraph_builders.lib(split.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<class n
graph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> &&)" (__imp_??0?$Output@VNode@ngraph@
@@ngraph@@QEAA@$$QEAV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transfor
mations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<cl
ass ngraph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> &&)" (__imp_??0?$Output@VNode@ng
raph@@@ngraph@@QEAA@$$QEAV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_tra
nsformations.vcxproj]
ngraph_builders.lib(autobroadcast.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output
<class ngraph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> &&)" (__imp_??0?$Output@VNode
@ngraph@@@ngraph@@QEAA@$$QEAV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_
transformations.vcxproj]
ngraph_builders.lib(make_constant.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output
<class ngraph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> &&)" (__imp_??0?$Output@VNode
@ngraph@@@ngraph@@QEAA@$$QEAV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_
transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<class ng
raph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> &&)" (__imp_??0?$Output@VNode@ngraph@@
@ngraph@@QEAA@$$QEAV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transform
ations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl ngraph::Output<class
ngraph::Node>::Output<class ngraph::Node>(class ngraph::Output<class ngraph::Node> &&)" (__imp_??0?$Output@VNode@ngrap
h@@@ngraph@@QEAA@$$QEAV01@@Z) [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transf
ormations.vcxproj]
ngraph_builders.lib(autobroadcast.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph
::op::v1::Broadcast::~Broadcast(void)" (__imp_??1Broadcast@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ng
raph::op::v1::Broadcast::`scalar deleting destructor'(unsigned int)" (??_GBroadcast@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号
[D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v0:
:Abs::~Abs(void)" (__imp_??1Abs@v0@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v0::Abs::`scalar
deleting destructor'(unsigned int)" (??_GAbs@v0@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\inference-
engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v1:
:Add::~Add(void)" (__imp_??1Add@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v1::Add::`scalar
deleting destructor'(unsigned int)" (??_GAdd@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\inference-
engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::
v1::Add::~Add(void)" (__imp_??1Add@v1@op@ngraph@@UEAA@XZ) [D:\SR\openvino_2021_3\build\inference-engine\src\transformat
ions\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v0:
:Convert::~Convert(void)" (__imp_??1Convert@v0@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v0::C
onvert::`scalar deleting destructor'(unsigned int)" (??_GConvert@v0@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_202
1_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::o
p::v0::Convert::~Convert(void)" (__imp_??1Convert@v0@op@ngraph@@UEAA@XZ) [D:\SR\openvino_2021_3\build\inference-engine\
src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v1:
:Maximum::~Maximum(void)" (__imp_??1Maximum@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v1::M
aximum::`scalar deleting destructor'(unsigned int)" (??_GMaximum@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_202
1_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v1:
:Multiply::~Multiply(void)" (__imp_??1Multiply@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v1
::Multiply::`scalar deleting destructor'(unsigned int)" (??_GMultiply@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvin
o_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::o
p::v1::Multiply::~Multiply(void)" (__imp_??1Multiply@v1@op@ngraph@@UEAA@XZ) [D:\SR\openvino_2021_3\build\inference-engi
ne\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v1:
:Power::~Power(void)" (__imp_??1Power@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v1::Power::
`scalar deleting destructor'(unsigned int)" (??_GPower@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\
inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v1:
:ReduceSum::~ReduceSum(void)" (__imp_??1ReduceSum@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op:
:v1::ReduceSum::`scalar deleting destructor'(unsigned int)" (??_GReduceSum@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\op
envino_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::o
p::v1::ReduceSum::~ReduceSum(void)" (__imp_??1ReduceSum@v1@op@ngraph@@UEAA@XZ) [D:\SR\openvino_2021_3\build\inference-e
ngine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(norm.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v0:
:Sqrt::~Sqrt(void)" (__imp_??1Sqrt@v0@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v0::Sqrt::`sca
lar deleting destructor'(unsigned int)" (??_GSqrt@v0@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\infer
ence-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::
v1::ReduceProd::~ReduceProd(void)" (__imp_??1ReduceProd@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngrap
h::op::v1::ReduceProd::`scalar deleting destructor'(unsigned int)" (??_GReduceProd@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [
D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reduce_ops.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::o
p::v1::ReduceProd::~ReduceProd(void)" (__imp_??1ReduceProd@v1@op@ngraph@@UEAA@XZ) [D:\SR\openvino_2021_3\build\inferenc
e-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::
v1::Reshape::~Reshape(void)" (__imp_??1Reshape@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v1
::Reshape::`scalar deleting destructor'(unsigned int)" (??_GReshape@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_
2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::
v0::Squeeze::~Squeeze(void)" (__imp_??1Squeeze@v0@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v0
::Squeeze::`scalar deleting destructor'(unsigned int)" (??_GSqueeze@v0@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_
2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::
v1::Transpose::~Transpose(void)" (__imp_??1Transpose@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::
op::v1::Transpose::`scalar deleting destructor'(unsigned int)" (??_GTranspose@v1@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR
\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::
v1::VariadicSplit::~VariadicSplit(void)" (__imp_??1VariadicSplit@v1@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cd
ecl ngraph::op::v1::VariadicSplit::`scalar deleting destructor'(unsigned int)" (??_GVariadicSplit@v1@op@ngraph@@UEAAPEA
XI@Z) 中引用了该符号 [D:\SR\openvino_2021_3\build\inference-engine\src\transformations\inference_engine_transformations.vcxpro
j]
ngraph_builders.lib(split.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::v1
::VariadicSplit::~VariadicSplit(void)" (__imp_??1VariadicSplit@v1@op@ngraph@@UEAA@XZ) [D:\SR\openvino_2021_3\build\infe
rence-engine\src\transformations\inference_engine_transformations.vcxproj]
ngraph_builders.lib(reshape.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl ngraph::op::
v0::Range::~Range(void)" (__imp_??1Range@v0@op@ngraph@@UEAA@XZ),函数 "public: virtual void * __cdecl ngraph::op::v0::Rang
e::`scalar deleting destructor'(unsigned int)" (??_GRange@v0@op@ngraph@@UEAAPEAXI@Z) 中引用了该符号 [D:\SR\openvino_2021_3\bui
ld\inference-engine\src\transformations\inference_engine_transformations.vcxproj]

 

0 Kudos
6 Replies
Peh_Intel
Moderator
2,559 Views

Hi XiaoXiong,


Thanks for reaching out to us.


We are still investigating this issue and will get back to you at the earliest.



Regards,

Peh


0 Kudos
xiaoxiongli
Beginner
2,554 Views

Hi, @Peh_Intel 

Thank you for your reply!

 

it seems very hard to compile a pure static openvino library now, I use version 'releases/2021/3'.

 

And I find that the openvino use a conception named "plugin", for example, for "GPU" device, it use a plugin named "clDNNPlugin.dll", in the openvino code, it hard code that  load clDNNPlugin.dll, but what I want is that it should be have a static library named  clDNNPlugin.lib,  I do not want use clDNNPlugin.dll because it is so big (about 7M+ Bytes),  such a big dll, it is not allowed in my product, So please help...

 

Regards,

shaoxiong

0 Kudos
Peh_Intel
Moderator
2,524 Views

Hi shaoxiong,

 

Thanks for your patience.

 

I’ve checked with our development teams about compiling static library. We are sorry to inform you that currently compiling static library is not possible. They are still working this in progress.

 

 

Regards,

Peh


0 Kudos
xiaoxiongli
Beginner
2,496 Views

Hi, @Peh_Intel 

Thank you for your reply!

 

I really want this feature:  static link the openvino library,  so if this feature is release in the future, please let me know...

 

Regards,

shaoxiong

0 Kudos
Peh_Intel
Moderator
2,437 Views

Hi shaoxiong,


Okay. We will update you once this feature is available.



Regards,

Peh


0 Kudos
Peh_Intel
Moderator
2,364 Views

Hi shaoxiong,


Thank you for your question. If you need any additional information from Intel, please submit a new question as this thread is no longer being monitored. 


However, we will keep tracking on the updates and update you in this thread once compiling OpenVINO™ as static library is available.



Regards,

Peh


0 Kudos
Reply