I got an Error Code LNK2019
I got an error code LNK2019 when building Opencv using ALL_BUILD in visual studio 2017. Can i know how to solve this error?
error LNK2019: unresolved external symbol __imp__H5open referenced in function "public: __thiscall cv::hdf::HDF5Impl::HDF5Impl(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0HDF5Impl@hdf@cv@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
error LNK2019: unresolved external symbol __imp__H5check_version referenced in function "public: __thiscall cv::hdf::HDF5Impl::HDF5Impl(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0HDF5Impl@hdf@cv@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
error LNK2019: unresolved external symbol __imp__H5Tcreate referenced in function "public: virtual void __thiscall cv::hdf::HDF5Impl::kpcreate(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,int)const " (?kpcreate@HDF5Impl@hdf@cv@@UBEXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HH@Z)
which version of libhdf5 do you have ?
have a look here
maybe you'll find, that you don't need the hdf module at all, in this case you could disable it by adding
to your cmake cmdline
I am unsure of this hdf? I dont think i have it in my pc.
it must have found hdf5 headers, else cmake would have excluded it from the build
again, find out if you need hdf support (ppl rarely do ..), if not so, disable it, rerun cmake.
i am using cmake-gui and i do not have the option BUILD_opencv_hdf
what, you don't ??? o_O
please add the cmake output to your question (yes it's long, but we neeed all of it !)
i remove hdf but now another error appears C:\Users\bryan\anaconda3\libs\python37.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64' 109>D:\OpenCV\build\lib\python3\Release\cv2.cp37-win_amd64.pyd : fatal error LNK1120: 77 unresolved externals
ahhhhhrrrrgggg. that's where it likely found the botched hdf5 version
you're either need to build 64bit opencv libs or reinstall a 32bit python version
also note, that you can only build python bindings in RELEASE mode, since there is no debug python lib
my python is 32 bit. 3.7