error building opencv in visual studio 2013

asked 2014-06-28 21:18:36 -0500

SKU gravatar image

i am using win 7 as my knowledge i have configured opencv with visual studio 2013 but i am getting following error

1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(355,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.

1> Source.cpp 1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'

please help

edit retag flag offensive close merge delete

Comments

Hi, i think you should rebulid again.

wuling gravatar imagewuling ( 2014-06-28 22:44:02 -0500 )edit

the problem still exists,... is it anything to do with windows sdk???

SKU gravatar imageSKU ( 2014-06-28 23:38:49 -0500 )edit

mmm...i don't know,but i try some times and finally success.

wuling gravatar imagewuling ( 2014-06-29 00:49:21 -0500 )edit
1

Remove the cmake cache and rebuild starting with cmake. Take care of any discrepancies reported by cmake before building.

unxnut gravatar imageunxnut ( 2014-06-29 08:19:28 -0500 )edit