I'm trying to configure
Cygwin to work together. Any ideas on how I can do that?
Try building a cygwin port of OpenCV instead of using the windows one. Go to Cygwin ports, follow their instructions & download the "opencv" package (listed under graphics in "setup.exe"), make sure to select the "src?" checkbox. Build it. That's it.