Ask Your Question
0

Problem with kernel32.lib

asked 2013-04-22 11:18:05 -0600

bikekowal gravatar image

HI, Hi,

I am starting using OPENCV. Because I have good experience with using MATLAB I am trying to use OPENCV with MATLAB. I have prebuilt version 2.4.5 of OpenCV. I have set all the parameters up and during the compilation I receive a following error:

LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'

I use MS Visual Studio 2010 x86. I've heard about changing the Windows SDK in VS but it doesn't work. Do you have any suggestions?

regards, bikekowal

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-22 14:02:12 -0600

Basically your Matlab does not find the library files. Are you sure you configured all settings correctly? Are your mex options set correctly? Does your system path variable has a refer to the libraries dll folder?

edit flag offensive delete link more

Comments

Yes, I'm aware what is going on. The problem is that I did everything according to instructions. Matlab itself has no problems with compiling mex files.

bikekowal gravatar imagebikekowal ( 2013-04-23 01:24:53 -0600 )edit

Kernel32.lib is your windows system library that cannot be loaded... I think this has close to nothing to do with OpenCV.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-23 02:10:17 -0600 )edit

Check this link: http://stackoverflow.com/questions/9821700/visual-studio-2010-express-win-sdk-cannot-open-input-file-kernel32-lib. This is for Visual Studio, but I am guessing something similar is happening. Try to configure your Matlab environment to use the x64 bit SDK version.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-23 02:11:43 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-04-22 11:18:05 -0600

Seen: 2,810 times

Last updated: Apr 22 '13