Hi all,
I build the depthai-core with shared lib option and install it using cmake and Visual Studio following the readme recommandations. However, I have some (more than a hundred) linking errors (example below) when I try to use it inside a project.
depthai-core.lib(Resources.obj) : error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl fmt::v7::detail::vformat(class fmt::v7::basic_string_view<char>,struct fmt::v7::format_args)" (?vformat@detail@v7@fmt@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string_view@D@23@Uformat_args@23@@Z)
depthai-core.lib(Initialization.obj) : error LNK2001: unresolved external symbol XLinkInitialize
In order to try something I add all the dependencies inside the folder "lib\cmake\depthai\dependencies\lib" to the "Additionnal Dependencies" in the config and now I have only have one linking error.
XLinkd.lib(win_usb_host.obj) : error LNK2019: unresolved external symbol __imp_PathCchRemoveFileSpec referenced in function usbInitialize_customdir
fatal error LNK1120: 1 unresolved externals
My understanding (and following the readme) is that I should not have to add each dependency .lib file. Only the depthai-core.lib and depthai-resources.lib should be sufficient as I build using the sharelib option.
As any one a clue of what I could have miss during the configuration ?
By the way I build using the tag "v2.28.0".
Thank you all for your help