I've made some changes to Maverik to improve compatibility under cygwin.
You can get all the changed files here. All the files are other-OS friendly, (which the exception of setup which is cygwin specific) and should work in any Maverik-5.4 environment
This change allows use of most image formats with Maverik. See enabling image conversion.
Now that cygwin has a PNG installation Maverik can be compiled with MAV_PNG defined. Use my setup (in the top level Maverik directory) and Makefile (for src/kernel) to activate this.
Download my updated mav_windows.c.gz and gunzip it to src/windows. Add -DMAV_CYGWIN to the CFLAGS line in the top level Maverik Makefile and make. Your windows should now display the name of the executable in the title bar instead of "Maverik".
VRML97 support is now part of 5.3. The previous problems with bison don't apply to the current version of cygwin. Just remember to link your application with -lstdc++
This change allows use of the TR module. See enabling Tile Rendering.
Download my mav_kernel.c.gz. Gunzip it to src/kernel. Add -DMAV_CYGWIN to the CFLAGS line in the top level Maverik Makefile, and make. Maverik will now read the correct hostname and store it in mav_hostName. Currently nothing in the library actually uses this variable, but an application might.
Download my mav_ctorus.c.gz. Gunzip it to src/objects, and make. This makes the circular torus intersection routine behave correctly.
This is where most of the changes for win32 are located. Download my mav_gfxWM.c.gz and gunzip it to src/gfx. You will also need my mav_frame.c.gz which goes in src/kernel.
It contains the following updates:
A quick note on the full screen support: if an application sets mav_opt_fullscreen the file ${HOME}/.mav_fullscreen is searched for, and if found the first three numbers in it are read in for the width, height and bitdepth of the required display mode. If the file isn't found then (conservative) defaults are used. These are stored in MAVLIB_WIDTH, MAVLIB_HEIGHT and MAVLIB_BITS in mav_gfxWM.c. If the display mode can't be set then Maverik reverts to windowed application mode. One other point: outputting text to the bash window during fullscreen mode causes serious slow down - redirect stdout and stderr to files to solve this (e.g. 2>foo >bar).
Some changes which I haven't made yet: