Hi Guo If you are using Visual Studio 2008, almost all libs are avaible for DirectShow. Only the Null Output Video Sink, necessary for proper work of Video Sampler Grabber, need some trick to work, the trick is copy the content of the header file of Null Video to a new file and remove the COM interfaces of DirectX9 surfaces, these interfaces need another headers that only avaible on DirectX SDK.
You are able to find these tricks on CodeGuru site, searching for "Video Capture"
This way saves one or two gigabytes of DirectX SDK.
"...I indeed install directx 9.0c.so it can ..." :: '.so'? you are
using cygwin or something like it?
Other hint: ptbuildopts.h is generated by config application, sometimes config.in file need some attention to see if a positive search rule is not overlapping a negative rule. Other times you need to 'force' the config application passing hints to it like:
--enable-ipv6 or --disable-ssh
Again, see config.in for the rules they are using.
If you manage to compile your code after some modification, dont forget to send back to this list ;)
regards.
----- Jogue RPG, alimente o lado criativo!