Difference between revisions of "Configure PLplot for cygwin"

From PLplotWiki
Jump to: navigation, search
Line 8: Line 8:
 
  make install
 
  make install
  
This will build a shared plplot library and install all files into the directory <tt>plplot\buildcygwin\install</tt>. Tcl/Tk bindings and driver need to be disabled (<tt>-DENABLE_tk=OFF -DENABLE_tcl=OFF</tt>), since they won't compile on cygwin in the moment. The following options are available for cmake:
+
This will build a shared plplot library and install all files into the directory <tt>plplot\buildcygwin\install</tt>. Tcl/Tk bindings and driver need to be disabled (<tt>-DENABLE_tk=OFF -DENABLE_tcl=OFF</tt>), since they won't compile on cygwin at the moment. The following options are available for cmake:
  
* <tt>-DBUILD_SHARED_LIBS=OFF</tt>: static build of plplot
 
 
* <tt>-DCMAKE_VERBOSE_MAKEFILE=ON</tt>: makefiles provide verbose informations
 
* <tt>-DCMAKE_VERBOSE_MAKEFILE=ON</tt>: makefiles provide verbose informations
 
* <tt>-DBUILD_TEST=ON</tt>: all examples will be built also (for test purposes)
 
* <tt>-DBUILD_TEST=ON</tt>: all examples will be built also (for test purposes)
Line 18: Line 17:
 
  cd examples/c
 
  cd examples/c
 
  cp ../../../data/*.fnt .
 
  cp ../../../data/*.fnt .
 +
 +
The Cygwin platform allows both shared libraries and dynamic drivers, making it almost equivalent to
 +
a regular Linux platform in this respect. However:
 +
 +
* The shared libraries will be installed in the bin directory, not in the lib directory, in accordance with the Windows conventions
 +
* They have the extension .dll instead of .so
 +
* For the Fortran 77 and Fortran 95 bindings the <tt>plparseopts</tt> routine does not work yet. This is due to the properties of the available compilers.
 +
* 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.

Revision as of 12:47, 20 November 2007

You need a working cygwin installation. Start cygwin and issue the following commands:

cd plplot
mkdir buildcygwin
cd buildcygwin
cmake -DCMAKE_INSTALL_PREFIX=install -DENABLE_tk=OFF -DENABLE_tcl=OFF ..
make
make install

This will build a shared plplot library and install all files into the directory plplot\buildcygwin\install. Tcl/Tk bindings and driver need to be disabled (-DENABLE_tk=OFF -DENABLE_tcl=OFF), since they won't compile on cygwin at the moment. The following options are available for cmake:

  • -DCMAKE_VERBOSE_MAKEFILE=ON: makefiles provide verbose informations
  • -DBUILD_TEST=ON: all examples will be built also (for test purposes)

If you used the -DBUILD_TEST=ON option, you need to copy some files in order to run the examples:

cd examples/c
cp ../../../data/*.fnt .

The Cygwin platform allows both shared libraries and dynamic drivers, making it almost equivalent to a regular Linux platform in this respect. However:

  • The shared libraries will be installed in the bin directory, not in the lib directory, in accordance with the Windows conventions
  • They have the extension .dll instead of .so
  • For the Fortran 77 and Fortran 95 bindings the plparseopts routine does not work yet. This is due to the properties of the available compilers.
  • 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.