Configure PLplot for Visual CXX CLI

From PLplotWiki
Revision as of 03:02, 12 September 2006 by Smekal (Talk | contribs)

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

You need a working Visual C++ installation. Start the command line interface and issue the following commands:

cd plplot
mkdir buildnmake
cd buildnmake
cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=install ..
nmake
nmake install

This will build a shared plplot library and install all files into the directory plplot\buildnmake\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)
  • Configuration of wxWidgets driver

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

cd examples\c
copy ..\..\..\data\*.fnt .

and additionally some dlls for a shared plplot built:

copy ..\..\src\plplotd.dll .
copy "..\..\bindings\c++\plplotcxxd.dll" . (for c++ examples)
copy ..\..\lib\csa\csirocsa.dll . (if library was built)

and for the wxWidgets driver (if wxWidgets library is shared):

copy %WXWIN%\lib\gcc_dll\wxmsw26d_vc_custom.dll .

if this dll is not in the path.