I have this strange problem that when trying to configure compilation for wxWidget, the configure script would hang randomly at different places. The problem only happens on one of my 3 computers. After some searching, it is found to be caused by the Logitech Monitor Process, lvprcsrv.exe. The PC with the Logitech web cam attached is the one having the problem. After killing the process, the configure script completed successfully.
Google says "disabling this process has no affect on the webcam functionality other than not being able to use the Video Effects feature".
I am still puzzled why MingW has anything to do with webcam though.