Building thedirectshow pluginsrequires a few more stepsthan the console samples.
Here is what I did to build this sample (similar steps are in sample_plugins/readme-dshow-plugins.rtf):
1. Install Microsoft Windows SDK 2. Install Media SDK 3. Check that the DSHOW_BASECLASSES_PATH environment variable is set to the BaseClasses directory (under Windows SDK) -- the Media SDK installer should set this if Windows SDK is present. 4. Build the Media SDK DirectShow BaseClasses 5. Starting from the new install, build sample_filters.sln.
I suspect that something in the h264_enc_filter projectis not quite right -- hopefully starting with a new one (after getting DirectShow set up) will get this working for you.
Pleaselet us know if this does not solve the problem.
Hello Jeff, Thanks for your quick reply.I've checked the 5 steps you listed above and I think Imissed none. Here ismy specific procedure: 1.Install Microsoft Windows SDK 7.0 2.Build the DirectShow BaseClasses.(Successfully got strmbasd.lib in the debug folder) 3.Manually set theDSHOW_BASECLASSES_PATH environment variable to the Windows SDK directory which is C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\multimedia\directshow\baseclasses 4.Build sample_filters.sln(Only build h264_enc_filter). "common,sample_common,utils,video_enc_filter" are built successfully, but "h264_enc_filter" failed.
I tried the steps again but the same situation happened.
Thebuildlog is uploaded here for more information.I wish the Chinese charaters in the log won't bother you much.
Could you try cheking if BaseClasses were built with General->CharacterSet=Use Unicode Character Set setting? The error log points that there's a mismatch in character type and MSDK samples are built with Unicode so other libraries that they link to must have same setting.