You need a working cygwin installation. Start cygwin and issue the following commands:
cd plplot
mkdir buildcygwin
cd buildcygwin
cmake -DCMAKE_INSTALL_PREFIX=install ../
make
make install
This will build a shared plplot library and install all files into the directory plplot\buildcygwin\install. The following options are available for cmake:
The Cygwin platform allows both shared libraries and dynamic drivers, making it almost equivalent to a regular Linux platform in this respect. However:
They have the extension .dll instead of .so
If the PATH environment variable gives access to native Windows compilers before the Cygwin-specific compilers, you need to either reset the PATH variable or specify the Cygwin-specific compilers explicitly.
Note on Tk:
Since the version of Tk that is available from the Cywin distribution uses the X11 Window System, you need to prepare the system before running CMake:
X &
export DISPLAY=:0.0
Note that the wingcc device driver is also available under Cygwin just as under plain Windows. This means that you can use both device drivers, though the xwin driver requires the X Window server to be running and the wingcc driver does not require anything specific.
The content of this page is available under the GNU Free Documentation License 1.2.