Is there anything I need before I get started?
Unfortunately, yes - molscript requires bison to interpret command
input and a compiler (with OpenGL support) in order to generate the
binaries. Windows (by default) includes neither. Many tend to use cygwin to satisfy these requirements,
but I haven't tried it (although it should compile in a
straightforward fashion in this case). My preference is to use a
minimalist approach that doesn't rely on 3rd party DLLs - thusly, I
recommend MinGW to satisfy the
compiler/linker necessity, and the GnuWin32 tools to
supply bison. In all, you'll need:
- the MinGW install (approx. 10Mb) - the molscript Makefile assumes
this is installed to c:\mingw - if not, be sure to edit the Makefile
appropriately.
- bison
(installed in c:\usr as well)
- libintl
- required by bison
- libiconv
- required by bison
- patch -
to apply the povscript+ patches
- the OpenGL headers (if you don't want OpenGL support, skip this
step), available either in bzip format from the cygwin page, or just grab a local
copy here. Once
unzipping, you only need to copy the .h files to the include folder of
the MinGW install. (so in the end, you should have a
c:\mingw\include\GL which contains all the necessary header files)
How do I install it?
Once installing all the necessities above, unzip the original
molscript sources and the povscript+ patches into the same directory.
Before actually compiling, make sure all the MinGW/bison commands are
in your PATH ("echo %PATH%", or just "set PATH=%PATH%;c:\mingw\bin").
Then fire up a command prompt under windows, and cd to the molscript
directory. To compile the binaries, type:
win_pov_setup.bat
make (might be "mingw32-make")
And you should now have a (hopefully) working version of povscript+
for windows! (along with a free C compiler to boot) By default, this
version only includes support for OpenGL, postscript and povray
output, but if you'd like, its also possible to download the necessary
libraries to allow png or jpeg output (which are also available as
part of the GnuWin32 packages) - just be sure to edit the Makefile.
Finally, I've only tried my install on WindowsXP - so I'm not sure
how/if this will work on other Windows releases.
Go back to the povscript+ home page