Configure PLplot for MinGW/CLI

From PLplotWiki
Revision as of 00:35, 11 September 2006 by Smekal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You need a working MinGW installation. Start the command line interface (NOT MSYS) and issue the following commands:

cd plplot
mkdir buildmingw
cd buildmingw
cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=install ..
mingw32-make
mingw32-make install

This will build a shared plplot library and install all files into the directory plplot\buildmingw\install. 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

  • mingw32-make
  • optional to test library:
  • cd examples\c
  • copy ..\..\..\data\*.fnt .
  • shared: copy ..\..\src\libplplotd.dll .
  • shared: copy "..\..\bindings\c++\libplplotcxxd.dll" .
  • shared: copy ..\..\lib\csa\libcsirocsa.dll .
  • wxwidgets: copy %WXWIN%\lib\gcc_dll\wxmsw26d_gcc_custom.dll .
  • agg: copy ..\..\lib\agg\libagg.dll .
  • x01c.exe