#CygWIN: mplayer/DOCS/tech/cygwin.txt This is the text for a document explaining how to setup your cygwin environment to be able to compile MPlayer/MEncoder. This is not supported by the original authors, and any questions should be directed to the author of this document, SycOtiC Smith . Minimum Requirements: - Most any system that CygWin will run on should work, as always, YMMV with each system. - CygWin should be current version, minimum of 2.218.x should suffice. - MPlayer sources from CVS. - SDL 1.2 - Preferably you should install CVS version, but 1.2.x also works. - CygWin/XFree86 4.2 (not neccessarily needed, but helpful for several other vo's). - libavcodec from ffmpeg CVS copied as in the *NIX documentation. Recommended System: - All of the above. - P2/3 500 Mhz or better. - Wind*ws NT4, 2K, or XP (only tested under NT4 at this time). - 256MB RAM (minimum). - Current CygWin setup (at time of writing, 2.249.2.3). - CygWin/XFree86 4.2. - Curses/NCurses 5.x (needs to be installed from CygWin setup). - Current AAlib CVS. Compiling: Command to get a working install: ./configure --disable-win32 --disable-gl There are several changes that need to be made to the 'config.mak' file after running configure. Line 52 should read: SDL_LIB = -L/usr/local/lib -lSDLmain -lSDL -mwindows -mcygwin Line 73 should read: SDL_INC = -I/usr/local/include -I/usr/local/include/SDL -Dmain=SDL_main -DWIN32 -Uunix - If you have installed AAlib, ncurses and CygWin/XFree86 as well, another change may be needed. Line 54 should read: AA_LIB = -laa -lncurses -lX11 Remember, line numbers may vary after running configure, and these changes ARE NOT SUPPORTED by the original authors of MPlayer/MEncoder, so please DO NOT bug report them to the lists. Once these changes are made, do the usual 'make' and 'make install' and if you get any errors, be SURE to read them carefully, you may need more libraries installed, or may need to close other programs. Optional Libs: - AAlib (cvs) - RealPlayer8linux dll's, in /usr/lib/real - GGI-lib (not tested as of this writing) - OGG/Vorbis (libogg, libvorbis, etc) - Glib, GTK+ 1.2 (for GUI, currently not working correctly) Cons/Drawbacks: As any of the authors will tell you, MPlayer/MEncoder is designed as a Linux/BSD/*NIX player/encoder, so there are a few limitations to using this software under a Wind*ws platform. Most are due to needing several third-party software packages that can cost lots of money, or you have to pull teeth to find. Many vo's are not available due to system limitations, for example there is currently no FBdev, SVGAlib, VESA, etc support. Pros/Goods: Personally, since I have no access to a Linux box at work, I can use CygWin to use my favorite movie player, MPlayer, on my Wind*ws NT4 machine with almost as many options as I do at home on my console. Let me know if you have any problems with these instructions. - SycOtiC Smith