Difference between revisions of "Configure PLplot for cygwin"

From PLplotWiki
Jump to: navigation, search
 
Line 4: Line 4:
 
  mkdir buildcygwin
 
  mkdir buildcygwin
 
  cd buildcygwin
 
  cd buildcygwin
  cmake -DCMAKE_INSTALL_PREFIX=install ..
+
  cmake -DCMAKE_INSTALL_PREFIX=install -DENABLE_tk=OFF -DENABLE_tcl=OFF ..
 
  make
 
  make
 
  make install
 
  make install
  
This will build a shared plplot library and install all files into the directory <tt>plplot\buildcygwin\install</tt>. 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 in the moment. The following options are available for cmake:
  
 
* <tt>-DBUILD_SHARED_LIBS=OFF</tt>: static build of plplot
 
* <tt>-DBUILD_SHARED_LIBS=OFF</tt>: static build of plplot
Line 16: Line 16:
 
If you used the <tt>-DBUILD_TEST=ON</tt> option, you need to copy some files in order to run the examples:
 
If you used the <tt>-DBUILD_TEST=ON</tt> option, you need to copy some files in order to run the examples:
  
  cd examples\c
+
  cd examples/c
  copy ..\..\..\data\*.fnt .
+
  cp ../../../data/*.fnt .

Revision as of 03:30, 12 September 2006

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 in the moment. The following options are available for cmake:

  • -DBUILD_SHARED_LIBS=OFF: static build of plplot
  • -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 .