Skip to content

Instantly share code, notes, and snippets.

@Hpmason
Created August 30, 2021 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hpmason/38132971b27982b4b395d5b7f6ff862a to your computer and use it in GitHub Desktop.
Save Hpmason/38132971b27982b4b395d5b7f6ff862a to your computer and use it in GitHub Desktop.
error: linking with `link.exe` failed: exit code: 1120
|
= note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.0.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.1.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.2.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.3.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.4.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.5.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.6.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.7.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.8.rcgu.o" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.video_capture.cdqdkw2l-cgu.9.rcgu.o" "/OUT:C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.exe" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\examples\\video_capture.3xevgi0awe6yn5f6.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\deps" "/LIBPATH:C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\build\\opencv-6d18315bf2ff2fc0\\out" "/LIBPATH:C:\\tools\\opencv-4.5.3\\build\\install\\x64\\vc15\\lib"
"/LIBPATH:C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\deps\\libopencv-8579c76e595dcd51.rlib" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\deps\\liblibc-15196f83809c1a0d.rlib" "C:\\Users\\hpmas\\Documents\\Projects\\Misc\\opencv-rust\\target\\debug\\deps\\libnum_traits-e59e3836008bc571.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-7d8f1d3120dc2b31.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-00b4871c13b6f72d.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-38300272c9518b1b.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-008ea074760d3d54.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-5d102da67e495133.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-108ed3dcf248b873.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-bc9246c93f49e49a.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-7ca234fdcd728c26.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-e328514fb4ed0383.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-5d0a4c6a1ffa6373.rlib"
"C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-d379e9227cab087f.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-825774e96423c2c5.rlib" "C:\\Users\\hpmas\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-d5d1908505fa83bc.rlib" "opencv_world453.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib"
= note: libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: void __cdecl cv::img_hash::ImgHashBase::compute(class cv::_InputArray const &,class cv::_OutputArray const &)" (?compute@ImgHashBase@img_hash@cv@@QEAAXAEBV_InputArray@3@AEBV_OutputArray@3@@Z) referenced in function cv_img_hash_ImgHashBase_compute_const__InputArrayR_const__OutputArrayR
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: double __cdecl cv::img_hash::ImgHashBase::compare(class cv::_InputArray const &,class cv::_InputArray const &)const " (?compare@ImgHashBase@img_hash@cv@@QEBANAEBV_InputArray@3@0@Z) referenced in function cv_img_hash_ImgHashBase_compare_const_const__InputArrayR_const__InputArrayR
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: static struct cv::Ptr<class cv::img_hash::AverageHash> __cdecl cv::img_hash::AverageHash::create(void)" (?create@AverageHash@img_hash@cv@@SA?AU?$Ptr@VAverageHash@img_hash@cv@@@3@XZ) referenced in function cv_img_hash_AverageHash_create
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "void __cdecl cv::img_hash::averageHash(class cv::_InputArray const &,class cv::_OutputArray const &)" (?averageHash@img_hash@cv@@YAXAEBV_InputArray@2@AEBV_OutputArray@2@@Z) referenced in function cv_img_hash_averageHash_const__InputArrayR_const__OutputArrayR
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: void __cdecl cv::img_hash::BlockMeanHash::setMode(int)" (?setMode@BlockMeanHash@img_hash@cv@@QEAAXH@Z) referenced in function cv_img_hash_BlockMeanHash_setMode_int
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: class std::vector<double,class std::allocator<double> > __cdecl cv::img_hash::BlockMeanHash::getMean(void)const " (?getMean@BlockMeanHash@img_hash@cv@@QEBA?AV?$vector@NV?$allocator@N@std@@@std@@XZ) referenced in function
cv_img_hash_BlockMeanHash_getMean_const
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: static struct cv::Ptr<class cv::img_hash::BlockMeanHash>
__cdecl cv::img_hash::BlockMeanHash::create(int)" (?create@BlockMeanHash@img_hash@cv@@SA?AU?$Ptr@VBlockMeanHash@img_hash@cv@@@3@H@Z) referenced in function cv_img_hash_BlockMeanHash_create_int
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "void __cdecl cv::img_hash::blockMeanHash(class cv::_InputArray const &,class cv::_OutputArray const &,int)" (?blockMeanHash@img_hash@cv@@YAXAEBV_InputArray@2@AEBV_OutputArray@2@H@Z) referenced in function cv_img_hash_blockMeanHash_const__InputArrayR_const__OutputArrayR_int
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: static struct cv::Ptr<class cv::img_hash::ColorMomentHash> __cdecl cv::img_hash::ColorMomentHash::create(void)" (?create@ColorMomentHash@img_hash@cv@@SA?AU?$Ptr@VColorMomentHash@img_hash@cv@@@3@XZ) referenced in function
cv_img_hash_ColorMomentHash_create
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "void __cdecl cv::img_hash::colorMomentHash(class cv::_InputArray
const &,class cv::_OutputArray const &)" (?colorMomentHash@img_hash@cv@@YAXAEBV_InputArray@2@AEBV_OutputArray@2@@Z) referenced in function cv_img_hash_colorMomentHash_const__InputArrayR_const__OutputArrayR
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: float __cdecl cv::img_hash::MarrHildrethHash::getAlpha(void)const " (?getAlpha@MarrHildrethHash@img_hash@cv@@QEBAMXZ) referenced in function cv_img_hash_MarrHildrethHash_getAlpha_const
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: float __cdecl cv::img_hash::MarrHildrethHash::getScale(void)const " (?getScale@MarrHildrethHash@img_hash@cv@@QEBAMXZ) referenced in function cv_img_hash_MarrHildrethHash_getScale_const
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: void __cdecl cv::img_hash::MarrHildrethHash::setKernelParam(float,float)" (?setKernelParam@MarrHildrethHash@img_hash@cv@@QEAAXMM@Z) referenced in function cv_img_hash_MarrHildrethHash_setKernelParam_float_float
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: static struct cv::Ptr<class cv::img_hash::MarrHildrethHash> __cdecl cv::img_hash::MarrHildrethHash::create(float,float)" (?create@MarrHildrethHash@img_hash@cv@@SA?AU?$Ptr@VMarrHildrethHash@img_hash@cv@@@3@MM@Z) referenced in function cv_img_hash_MarrHildrethHash_create_float_float
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "void __cdecl cv::img_hash::marrHildrethHash(class cv::_InputArray const &,class cv::_OutputArray const &,float,float)" (?marrHildrethHash@img_hash@cv@@YAXAEBV_InputArray@2@AEBV_OutputArray@2@MM@Z) referenced in function cv_img_hash_marrHildrethHash_const__InputArrayR_const__OutputArrayR_float_float
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: static struct cv::Ptr<class cv::img_hash::PHash> __cdecl
cv::img_hash::PHash::create(void)" (?create@PHash@img_hash@cv@@SA?AU?$Ptr@VPHash@img_hash@cv@@@3@XZ) referenced in function cv_img_hash_PHash_create
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "void __cdecl cv::img_hash::pHash(class cv::_InputArray const &,class cv::_OutputArray const &)" (?pHash@img_hash@cv@@YAXAEBV_InputArray@2@AEBV_OutputArray@2@@Z) referenced in function cv_img_hash_pHash_const__InputArrayR_const__OutputArrayR
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: static struct cv::Ptr<class cv::img_hash::RadialVarianceHash> __cdecl cv::img_hash::RadialVarianceHash::create(double,int)" (?create@RadialVarianceHash@img_hash@cv@@SA?AU?$Ptr@VRadialVarianceHash@img_hash@cv@@@3@NH@Z) referenced in function cv_img_hash_RadialVarianceHash_create_double_int
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: int __cdecl cv::img_hash::RadialVarianceHash::getNumOfAngleLine(void)const " (?getNumOfAngleLine@RadialVarianceHash@img_hash@cv@@QEBAHXZ) referenced in function cv_img_hash_RadialVarianceHash_getNumOfAngleLine_const
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: double __cdecl cv::img_hash::RadialVarianceHash::getSigma(void)const " (?getSigma@RadialVarianceHash@img_hash@cv@@QEBANXZ) referenced in function cv_img_hash_RadialVarianceHash_getSigma_const
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: void __cdecl cv::img_hash::RadialVarianceHash::setNumOfAngleLine(int)" (?setNumOfAngleLine@RadialVarianceHash@img_hash@cv@@QEAAXH@Z) referenced in function cv_img_hash_RadialVarianceHash_setNumOfAngleLine_int
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: void __cdecl cv::img_hash::RadialVarianceHash::setSigma(double)" (?setSigma@RadialVarianceHash@img_hash@cv@@QEAAXN@Z) referenced in function cv_img_hash_RadialVarianceHash_setSigma_double
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: class std::vector<double,class std::allocator<double> > __cdecl cv::img_hash::RadialVarianceHash::getFeatures(void)" (?getFeatures@RadialVarianceHash@img_hash@cv@@QEAA?AV?$vector@NV?$allocator@N@std@@@std@@XZ) referenced
in function cv_img_hash_RadialVarianceHash_getFeatures
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: class cv::Mat __cdecl cv::img_hash::RadialVarianceHash::getHash(void)" (?getHash@RadialVarianceHash@img_hash@cv@@QEAA?AVMat@3@XZ) referenced in function cv_img_hash_RadialVarianceHash_getHash
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: class cv::Mat __cdecl cv::img_hash::RadialVarianceHash::getPixPerLine(class cv::Mat const &)" (?getPixPerLine@RadialVarianceHash@img_hash@cv@@QEAA?AVMat@3@AEBV43@@Z) referenced in function cv_img_hash_RadialVarianceHash_getPixPerLine_const_MatR
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "public: class cv::Mat __cdecl cv::img_hash::RadialVarianceHash::getProjection(void)" (?getProjection@RadialVarianceHash@img_hash@cv@@QEAA?AVMat@3@XZ) referenced in function cv_img_hash_RadialVarianceHash_getProjection
libopencv-8579c76e595dcd51.rlib(img_hash.o) : error LNK2019: unresolved external symbol "void __cdecl cv::img_hash::radialVarianceHash(class cv::_InputArray const &,class cv::_OutputArray const &,double,int)" (?radialVarianceHash@img_hash@cv@@YAXAEBV_InputArray@2@AEBV_OutputArray@2@NH@Z) referenced in function cv_img_hash_radialVarianceHash_const__InputArrayR_const__OutputArrayR_double_int
C:\Users\hpmas\Documents\Projects\Misc\opencv-rust\target\debug\examples\video_capture.exe : fatal error LNK1120: 27 unresolved externals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment