Repository: opencv
Issue: Error While Building Opencv 4.7 from source in windows 10
Labels: question (invalid tracker),category: build/install

### System Information

Opencv Version: 4.8
OS: windows 10


### Detailed description

Hi, I'm building opencv 4.7 from source by using cmake gui and visual studio 2017, it get's configured and generated  properly in cmake but giving following errors while building the solution in VS 2017 in 32 bit arch.

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\fast.cpp.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\logos.cpp.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\surf.ocl.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\tbmr.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\vgg.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\xfeatures2d_init.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\pct_signatures_sqfd.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\stardetector.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\surf.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\surf.cuda.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\pct_signatures.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\grayscale_bitmap.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\pct_clusterizer.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\pct_sampler.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\harris_lapace_detector.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\latch.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\lucid.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\msd.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\daisy.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\ellipticKeyPoint.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\freak.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\gms.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\affine_feature2d.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\beblid.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\boostdesc.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall cv::xfeatures2d::VGG::getDefaultName(void)const " (?getDefaultName@VGG@xfeatures2d@cv@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\modules\world\brief.obj	1	
Error	LNK1120	1 unresolved externals	opencv_world	E:\opencv_4.7_building_from_source\opencv_build_4.8\bin\Release\opencv_world481.dll	1	


### Steps to reproduce

1) configure the source code from cmake
2) build the solution from vs2017

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)