
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.miscdebris.net/plplot_wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Altendky</id>
		<title>PLplotWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.miscdebris.net/plplot_wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Altendky"/>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Special:Contributions/Altendky"/>
		<updated>2026-05-03T18:29:11Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.4</generator>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=Using_PLplot&amp;diff=2113</id>
		<title>Using PLplot</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Using_PLplot&amp;diff=2113"/>
				<updated>2009-02-16T21:13:29Z</updated>
		
		<summary type="html">&lt;p&gt;Altendky: /* C/C++ */ Added links to win32 wx-config binaries&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The next step after you have successfully managed to configure and build the PLplot library is to build your own program using PLplot. Basically one has to tell the compiler where to find the include files and the library. This depends on the programming language you use and the platform you are working one. It&amp;#039;s always a good idea to have a look in the &amp;lt;tt&amp;gt;Makefiles&amp;lt;/tt&amp;gt; which on Linux are based in &amp;lt;tt&amp;gt;/usr/local/share/plplot/examples/language&amp;lt;/tt&amp;gt; if you installed PLplot in the standard location.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
=== C/C++ ===&lt;br /&gt;
If the &amp;lt;tt&amp;gt;pkg-config&amp;lt;/tt&amp;gt; is available and CMake found it during the configuration stage than programs might be compiled for C via:&lt;br /&gt;
 gcc `pkg-config --cflags --libs plplotd` prog.c -o prog&lt;br /&gt;
For C++:&lt;br /&gt;
 g++ `pkg-config --cflags --libs plplotd-c++` prog.cpp -o prog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
=== C/C++ ===&lt;br /&gt;
&lt;br /&gt;
Although &amp;lt;tt&amp;gt;pkg-config&amp;lt;/tt&amp;gt; is not a standard Windows utility, there is a win32 binary available from [http://www.gtk.org/download-windows.html GTK] [http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-0.23-2.zip (Direct link)].  Be sure to set the &amp;lt;tt&amp;gt;PKG_CONFIG_PATH&amp;lt;/tt&amp;gt; variable to the &amp;lt;tt&amp;gt;&amp;lt;PLplot install&amp;gt;\lib\pkgconfig&amp;lt;/tt&amp;gt; directory so it can find the PLplot files.  You will still not be able to call &amp;lt;tt&amp;gt;pkg-config&amp;lt;/tt&amp;gt; directly from the gcc/g++ command since the Windows CLI does not support `` (backticks), but at least you can copy and paste the options.&lt;br /&gt;
&lt;br /&gt;
If you built PLplot with the wxWidgets driver, a win32 binary of [http://wxconfig.googlepages.com/ wx-config] [http://wx-config-win.googlecode.com/svn/binary/wx-config.exe (Direct link)] may also be useful.&lt;br /&gt;
&lt;br /&gt;
== Mac OS X ==&lt;br /&gt;
=== C/C++ ===&lt;/div&gt;</summary>
		<author><name>Altendky</name></author>	</entry>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=Using_PLplot&amp;diff=2112</id>
		<title>Using PLplot</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Using_PLplot&amp;diff=2112"/>
				<updated>2009-02-16T21:08:39Z</updated>
		
		<summary type="html">&lt;p&gt;Altendky: /* C/C++ */ Added links to a win32 pkg-config binary and comments on how to use&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The next step after you have successfully managed to configure and build the PLplot library is to build your own program using PLplot. Basically one has to tell the compiler where to find the include files and the library. This depends on the programming language you use and the platform you are working one. It&amp;#039;s always a good idea to have a look in the &amp;lt;tt&amp;gt;Makefiles&amp;lt;/tt&amp;gt; which on Linux are based in &amp;lt;tt&amp;gt;/usr/local/share/plplot/examples/language&amp;lt;/tt&amp;gt; if you installed PLplot in the standard location.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
=== C/C++ ===&lt;br /&gt;
If the &amp;lt;tt&amp;gt;pkg-config&amp;lt;/tt&amp;gt; is available and CMake found it during the configuration stage than programs might be compiled for C via:&lt;br /&gt;
 gcc `pkg-config --cflags --libs plplotd` prog.c -o prog&lt;br /&gt;
For C++:&lt;br /&gt;
 g++ `pkg-config --cflags --libs plplotd-c++` prog.cpp -o prog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
=== C/C++ ===&lt;br /&gt;
&lt;br /&gt;
Although &amp;lt;tt&amp;gt;pkg-config&amp;lt;/tt&amp;gt; is not a standard Windows utility, there is a win32 binary available from [http://www.gtk.org/download-windows.html GTK] [http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-0.23-2.zip (Direct link)].  Be sure to set the &amp;lt;tt&amp;gt;PKG_CONFIG_PATH&amp;lt;/tt&amp;gt; variable to the &amp;lt;tt&amp;gt;&amp;lt;PLplot install&amp;gt;\lib\pkgconfig&amp;lt;/tt&amp;gt; directory so it can find the PLplot files.  You will still not be able to call &amp;lt;tt&amp;gt;pkg-config&amp;lt;/tt&amp;gt; directly from the gcc/g++ command since the Windows CLI does not support `` (backticks), but at least you can copy and paste the options.&lt;br /&gt;
&lt;br /&gt;
== Mac OS X ==&lt;br /&gt;
=== C/C++ ===&lt;/div&gt;</summary>
		<author><name>Altendky</name></author>	</entry>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=Configuration_of_wxWidgets_driver&amp;diff=2111</id>
		<title>Configuration of wxWidgets driver</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Configuration_of_wxWidgets_driver&amp;diff=2111"/>
				<updated>2009-02-16T20:57:43Z</updated>
		
		<summary type="html">&lt;p&gt;Altendky: /* CMake Options */ Created section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== CMake Options ==&lt;br /&gt;
&lt;br /&gt;
The following options let you specify to the CMake build system what options you used to compile your wxWidgets libraries:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;-DwxWidgets_LIB_DIR=%WXWIN%\lib\gcc_lib&amp;lt;/tt&amp;gt;: correct for your wxWidgets root directory and static vs. dynamic libraries&lt;br /&gt;
* &amp;lt;tt&amp;gt;-DwxWidgets_CONFIGURATION=mswu&amp;lt;/tt&amp;gt;: msw -&amp;gt; MicroSoft Windows; u -&amp;gt; Unicode; d -&amp;gt; Debug&lt;br /&gt;
* &amp;lt;tt&amp;gt;-DwxWidgets_MONOLITHIC=ON&amp;lt;/tt&amp;gt;: monolithic as opposed to individual libraries&lt;br /&gt;
* &amp;lt;tt&amp;gt;-DwxWidgets_USE_UNICODE=ON&amp;lt;/tt&amp;gt;: compiled with Unicode support&lt;br /&gt;
&lt;br /&gt;
For more options refer to FindwxWidgets.cmake in your CMake installation.&lt;br /&gt;
&lt;br /&gt;
More may be required for a successful Unicode build.  Depending, incorrect Unicode configuration may result in errors during PLplot compilation or may not show up until later when compiling your actual application.  Example errors are as follows:&lt;br /&gt;
&lt;br /&gt;
 [ 60%] Building CXX object bindings/wxwidgets/CMakeFiles/plplotwxwidgetsd.dir/wx&lt;br /&gt;
 PLplotwindow.obj&lt;br /&gt;
 Linking CXX shared library ..\..\dll\libplplotwxwidgetsd.dll&lt;br /&gt;
 Creating library file: ..\..\dll\libplplotwxwidgetsd.dll.a&lt;br /&gt;
 CMakeFiles\plplotwxwidgetsd.dir\wxPLplotwindow.obj:wxPLplotwindow.cpp:(.text$_ZN&lt;br /&gt;
 12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x27): undefined r&lt;br /&gt;
 eference to `_imp___ZN12wxStringBase8InitWithEPKcjj&amp;#039;&lt;br /&gt;
 collect2: ld returned 1 exit status&lt;br /&gt;
&lt;br /&gt;
 D:\Projects\wxWidgetsTest\Libraries\plplot-5.9.2\buildmingw\install\lib/libplplotd.a(wxwidgets.obj):wxwidgets.cpp:(.text+0xd2a):&lt;br /&gt;
 undefined reference to `wxStringBase::InitWith(char const*, unsigned&lt;br /&gt;
 int, unsigned int)&amp;#039;&lt;br /&gt;
 D:\Projects\wxWidgetsTest\Libraries\plplot-5.9.2\buildmingw\install\lib/libplplotd.a(wxwidgets.obj):wxwidgets.cpp:(.text+0xd6e):&lt;br /&gt;
 undefined reference to `wxStringBase::InitWith(char const*, unsigned&lt;br /&gt;
 int, unsigned int)&amp;#039;&lt;br /&gt;
 - followed by a bunch more undefined references&lt;br /&gt;
&lt;br /&gt;
Note that in both cases the errors do not specify a Unicode error but are string or character related.  The follow was mentioned on the maillist and worked for me:&lt;br /&gt;
&lt;br /&gt;
 This is due a bug FindwxWidgets.cmake, either add&lt;br /&gt;
 &lt;br /&gt;
 add_definitions(-D_UNICODE)&lt;br /&gt;
 &lt;br /&gt;
 to CMakeLists.txt in the plplot main file. Or look for wxUNICODE in gcc_dll/mswu/setup.h&lt;br /&gt;
 (or similar) and set it to 1. This flag is always 0 even if you compiled wxWidgets with &lt;br /&gt;
 UNICODE=1, you have to do it on your own, or set the _UNICODE flag on the command line.&lt;br /&gt;
&lt;br /&gt;
== Antialiasing ==&lt;br /&gt;
&lt;br /&gt;
The wxwidgets driver provides antialzing support, which can be turned on with the option antialized=1.&lt;br /&gt;
&lt;br /&gt;
Output of example 1 with antializing OFF:&lt;br /&gt;
[[Image:non_antialized.png|800px|non antialized]]&lt;br /&gt;
&lt;br /&gt;
Output of example 1 with antializing ON:&lt;br /&gt;
[[Image:antialized.png|800px|antialized]]&lt;/div&gt;</summary>
		<author><name>Altendky</name></author>	</entry>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=Install_3rd_party_libraries&amp;diff=2110</id>
		<title>Install 3rd party libraries</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Install_3rd_party_libraries&amp;diff=2110"/>
				<updated>2009-02-16T20:36:22Z</updated>
		
		<summary type="html">&lt;p&gt;Altendky: /* wxWidgets Library */ Added link to wxWidgets specific page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In opposition to Linux, where installing development files for certain 3rd party libraries is only a matter of seconds (depending on the distribution), in Windows much more work needs to be done. In the following we provide extensive instructions how to install 3rd party libraries with the corresponding development files so that the plplot library can use them.&lt;br /&gt;
&lt;br /&gt;
You actually need none of these libraries to get PLplot compiled - they are needed for drivers or some features which are not available than.&lt;br /&gt;
&lt;br /&gt;
== QHull Library ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
QHull is a library/program to determine the convex hull of a set of &lt;br /&gt;
points in n dimensions. The CSIRO library that is part of PLplot uses this for certain&lt;br /&gt;
interpolation methods (convex hulls in n dimensions are related to Voronoi&lt;br /&gt;
diagrams and Delaunay triangulations in n-1 dimensions). For further information visi http://www.qhull.org/ .&lt;br /&gt;
&lt;br /&gt;
=== Instructions ===&lt;br /&gt;
&lt;br /&gt;
* Download [http://www.qhull.org/download/qhull-2003.1.zip QHull for windows]&lt;br /&gt;
* Unzip qhull-2003.1.zip package in a suitable place&lt;br /&gt;
* Copy the custom &amp;lt;tt&amp;gt;CMakeLists.txt&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;plplot\cmake\external\libqhull&amp;lt;/tt&amp;gt; into the new directory (qhull-2003.1)&lt;br /&gt;
* Cd into the new directory&lt;br /&gt;
* Than (e.g. for MSVC):&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 cmake -G &amp;quot;NMake Makefiles&amp;quot; -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=local ..&lt;br /&gt;
 nmake install&lt;br /&gt;
* a static library will be built and the library and the include files will copied into &amp;lt;tt&amp;gt;build\local\lib&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;build\local\include&amp;lt;/tt&amp;gt; respectively - a shared library can only be build with MinGW or Cygwin&lt;br /&gt;
* set environment variables&lt;br /&gt;
 set QHULLDIR=path-to\qhull-2003.1\build\local&lt;br /&gt;
 set CMAKE_INCLUDE_PATH=%QHULLDIR%\include&lt;br /&gt;
 set CMAKE_LIBRARY_PATH=%QHULLDIR%\lib&lt;br /&gt;
&lt;br /&gt;
CMake is now able to find the qhull library and headers.&lt;br /&gt;
&lt;br /&gt;
== AGG Library ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
The AGG (Anti-Grain Graphics) Library is used by the wxWidgets driver (so there is no need for this library, if you don&amp;#039;t use this driver) to display the plots nicely antialized. Note, that from Version 2.5 on, the AGG library is now GPL, so for the time being Version 2.4 should be used for binary packages of PLplot, which is free also for commercial applications. Visit http://www.antigrain.com for further information.&lt;br /&gt;
&lt;br /&gt;
=== Instructions ===&lt;br /&gt;
* Download [http://www.antigrain.com/agg-2.4.zip AGG v2.4 Windows]&lt;br /&gt;
* Unzip agg-2.4.zip package in a suitable place&lt;br /&gt;
* Copy the custom &amp;lt;tt&amp;gt;CMakeLists.txt&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;plplot\cmake\external\libagg&amp;lt;/tt&amp;gt; into the new directory (agg-2.4)&lt;br /&gt;
* Cd into the new directory&lt;br /&gt;
* Than (e.g. for MSVC):&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 cmake -G &amp;quot;NMake Makefiles&amp;quot; -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=local ..&lt;br /&gt;
 nmake install&lt;br /&gt;
* a static library will be built and the library and the include files will copied into &amp;lt;tt&amp;gt;build\local\lib&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;build\local\include&amp;lt;/tt&amp;gt; respectively - a shared library can only be build with MinGW or Cygwin&lt;br /&gt;
* set environment variables&lt;br /&gt;
 set AGGDIR=path-to\agg-2.4\build\local&lt;br /&gt;
 set CMAKE_INCLUDE_PATH=%AGGDIR%\include&lt;br /&gt;
 set CMAKE_LIBRARY_PATH=%AGGDIR%\lib&lt;br /&gt;
&lt;br /&gt;
CMake is now able to find the agg library and headers.&lt;br /&gt;
&lt;br /&gt;
== CD Library ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
The CD library is needed for the cgm driver. The CGM format is vector-based and is widely used as an interchange format between drawing and plotting programs.&lt;br /&gt;
&lt;br /&gt;
=== Instructions ===&lt;br /&gt;
* Download [http://prdownloads.sourceforge.net/plplot/cd1.3.tar.gz?download CD library]&lt;br /&gt;
* Untar cd1.3.tar.gz package in a suitable place&lt;br /&gt;
* Copy the custom &amp;lt;tt&amp;gt;CMakeLists.txt&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;plplot\cmake\external\libcd&amp;lt;/tt&amp;gt; into the new directory (cd1.3)&lt;br /&gt;
* Cd into the new directory&lt;br /&gt;
* Than (e.g. for MSVC):&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 cmake -G &amp;quot;NMake Makefiles&amp;quot; -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=local ..&lt;br /&gt;
 nmake install&lt;br /&gt;
* a static library will be built and the library and the include files will copied into &amp;lt;tt&amp;gt;build\local\lib&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;build\local\include&amp;lt;/tt&amp;gt; respectively - a shared library can only be build with MinGW or Cygwin&lt;br /&gt;
* set environment variables&lt;br /&gt;
 set CDDIR=path-to\cd1.3\build\local&lt;br /&gt;
 set CMAKE_INCLUDE_PATH=%CDDIR%\include&lt;br /&gt;
 set CMAKE_LIBRARY_PATH=%CDDIR%\lib&lt;br /&gt;
&lt;br /&gt;
CMake is now able to find the cd library and headers.&lt;br /&gt;
&lt;br /&gt;
== GD Libary ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
The gd library is needed by the gd driver of PLplot to produce png, jpeg or gif files. See http://www.boutell.com/gd/ for details.&lt;br /&gt;
&lt;br /&gt;
=== Instructions ===&lt;br /&gt;
&lt;br /&gt;
* Download the gd library for Windows from http://www.boutell.com/gd/ . The latest version is [http://www.boutell.com/gd/http/gdwin32.zip 2.0.33] (Windows dll).&lt;br /&gt;
* Unzip the archive to a suitable place.&lt;br /&gt;
* The package provides a dll and an import library for the MinGW compiler. To obtain an import library for the MSVC compiler run the &amp;lt;tt&amp;gt;makemsvcimport.bat&amp;lt;/tt&amp;gt; batch file in a CLI with the correct environment settings for MSVC.&lt;br /&gt;
* In order to let cmake find the gd library files you need to set environment variables (best in batch file - see above), e.g.&lt;br /&gt;
 set GDLIBDIR=C:\DevZone\gdwin32&lt;br /&gt;
 set CMAKE_INCLUDE_PATH=%GDLIBDIR%&lt;br /&gt;
 set CMAKE_LIBRARY_PATH=%GDLIBDIR%&lt;br /&gt;
&lt;br /&gt;
CMake should than be able to find the gd library and headers and the gd driver (png, gif, jpeg) will be automatically compiled into the library.&lt;br /&gt;
&lt;br /&gt;
== Freetype Library ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font conversion tools, text image generation tools, and many other products as well. http://www.freetype.org reveals more information.&lt;br /&gt;
&lt;br /&gt;
=== Instructions ===&lt;br /&gt;
&lt;br /&gt;
* Download [http://download.savannah.gnu.org/releases/freetype/ft221.zip Freetype library]&lt;br /&gt;
* Unzip the ft221.zip package in a suitable place&lt;br /&gt;
* Cd into the new directory&lt;br /&gt;
* Than for MinGW (call &amp;lt;tt&amp;gt;mingw32.make&amp;lt;/tt&amp;gt; twice!):&lt;br /&gt;
 mingw32-make&lt;br /&gt;
 mingw32-make&lt;br /&gt;
 copy objs\freetype.a objs\libfreetype.a&lt;br /&gt;
* Or for Visual C++ (you need to use GNU-Make not nmake - download it from http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.tar.gz?download or http://gnuwin32.sourceforge.net/packages/make.htm):&lt;br /&gt;
 path_to_gnu_make\mingw32-make setup visualc&lt;br /&gt;
 path_to_gnu_make\mingw32-make&lt;br /&gt;
* For Visual C++ 2005 you need to change line 69 of &amp;lt;tt&amp;gt;freetype-2.2.1\builds\compiler\visualc.mk&amp;lt;/tt&amp;gt; to&lt;br /&gt;
    CFLAGS ?= /nologo /c /Ox /W3 /WX /D_CRT_SECURE_NO_DEPRECATE&lt;br /&gt;
* set environment variables&lt;br /&gt;
 set FREETYPEDIR=C:\freetype-2.2.1&lt;br /&gt;
 set CMAKE_INCLUDE_PATH=%FREETYPEDIR%\include&lt;br /&gt;
 set CMAKE_LIBRARY_PATH=%FREETYPEDIR%\objs&lt;br /&gt;
&lt;br /&gt;
CMake is now able to find the freetype library and headers.&lt;br /&gt;
&lt;br /&gt;
== wxWidgets Library ==&lt;br /&gt;
&lt;br /&gt;
See [[wxWidgets]] for other instructions.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
wxWidgets is a cross platform GUI toolkit which also provides other common classes as wxString, wxMap etc. and is known to work well on Windows, Linux and MacOSX. The wxWidgets toolkit is used for the wxWidgets driver. Version 2.6.x and 2.8.x of wxWidgets can be used for the wxWidgets driver. Surf to http://www.wxwidgets.org for more information.&lt;br /&gt;
&lt;br /&gt;
=== Instructions ===&lt;br /&gt;
&lt;br /&gt;
* Download [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.6.3.zip wxWidgets 2.6.3 library as zip] (exe installer is also available, wxWidgets 2.8.0 has problems with MinGW in the moment)&lt;br /&gt;
* Unzip the wxMSW-2.6.3.zip package in a suitable place&lt;br /&gt;
* The following instructions will build a shared, unicode, release version of wxWidgets. If you use plplot within your wxWidgets application you have already a wxWidgets library ready for use - see &amp;lt;tt&amp;gt;cmake-2.4.5\share\modules\FindwxWidgets.cmake&amp;lt;/tt&amp;gt; for the options for your special wxWidgets library.&lt;br /&gt;
* Cd into &amp;lt;tt&amp;gt;wxWidgets-2.6.3\build\msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Than for MinGW:&lt;br /&gt;
 mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release&lt;br /&gt;
* set environment variables (MinGW)&lt;br /&gt;
 set WXWIN=C:\wxWidgets-2.6.3&lt;br /&gt;
 set PATH=%WXWIN%\lib\gcc_dll;%PATH%&lt;br /&gt;
* Or for Visual C++:&lt;br /&gt;
 nmake -f makefile.vc SHARED=0 UNICODE=1 BUILD=release&lt;br /&gt;
* set environment variables (Visual C++)&lt;br /&gt;
 set WXWIN=C:\wxWidgets-2.6.3&lt;br /&gt;
 set PATH=%WXWIN%\lib\vc_dll;%PATH%&lt;br /&gt;
&lt;br /&gt;
CMake is now able to find the wxWidgets library and headers, if you additionally set the following cmake options for MinGW:&lt;br /&gt;
  -DwxWidgets_LIB_DIR=%WXWIN%/lib/gcc_dll -DwxWidgets_CONFIGURATION=mswu -DENABLE_MIX_CXX=ON&lt;br /&gt;
and for Visual C++:&lt;br /&gt;
  -DwxWidgets_LIB_DIR=%WXWIN%/lib/vc_dll -DwxWidgets_CONFIGURATION=mswu -DENABLE_MIX_CXX=ON&lt;/div&gt;</summary>
		<author><name>Altendky</name></author>	</entry>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=WxWidgets&amp;diff=2109</id>
		<title>WxWidgets</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=WxWidgets&amp;diff=2109"/>
				<updated>2009-02-16T20:31:04Z</updated>
		
		<summary type="html">&lt;p&gt;Altendky: /* MinGW command line tools */ Added caution regarding search methods used by CMake to find wxWidgets&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
&lt;br /&gt;
wxWidgets is a cross platform GUI toolkit which also provides other common classes as wxString, wxMap etc. and is known to work well on Windows, Linux and Mac OS X. The wxWidgets toolkit is used for the wxWidgets driver. Version 2.6.x and 2.8.x of wxWidgets can be used for the wxWidgets driver. Go to http://www.wxwidgets.org for more information. The display quality can be enhanced by additionally compile the [[Freetype]] library and the [[AGG]] library into the driver.&lt;br /&gt;
&lt;br /&gt;
== Instructions for Mac OS X ==&lt;br /&gt;
&lt;br /&gt;
=== Mac OS X 10.5 ===&lt;br /&gt;
The wxWidgets library version 2.8.4 is already installed on Mac OS X 10.5.1 and later. This version is known to work well with the wxWidgets driver, therefore just run cmake as described on the [[Main Page]]. The wxWidgets library should be discovered automatically. This can be checked at the end of the cmake output:&lt;br /&gt;
&lt;br /&gt;
 Language Bindings:&lt;br /&gt;
 ENABLE_f77:		OFF		ENABLE_f95:		OFF&lt;br /&gt;
 ENABLE_cxx:		ON		ENABLE_java:		ON&lt;br /&gt;
 ENABLE_python:		ON		ENABLE_octave:		OFF&lt;br /&gt;
 ENABLE_tcl:		ON		ENABLE_itcl:		OFF&lt;br /&gt;
 ENABLE_tk:		ON		ENABLE_itk:		OFF&lt;br /&gt;
 ENABLE_pdl:		OFF		ENABLE_wxwidgets:	ON&lt;br /&gt;
 ENABLE_gnome2:		OFF		ENABLE_pygcw:		OFF&lt;br /&gt;
 ENABLE_ada:		OFF&lt;br /&gt;
&lt;br /&gt;
== Instructions for Linux ==&lt;br /&gt;
The simplest way to install the wxWidgets (wxGTK) library and development files is to install the corresponding packages for your distribution, e.g. in Ubuntu Hardy Heron install the libwxgtk2.8-dev package, which dependes on libwxbase2.8-0, libwxbase2.8-dev, libwxgtk2.8-0 and wx2.8-headers.&lt;br /&gt;
&lt;br /&gt;
== Instructions for Windows ==&lt;br /&gt;
&lt;br /&gt;
* Download [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.9.zip wxWidgets 2.8.9 library as zip] (exe installer is also available)&lt;br /&gt;
* Unzip the wxMSW-2.8.9.zip package in a suitable place&lt;br /&gt;
* Set the WXWIN environment variable (either system wide or only for your CLI session), e.g.&lt;br /&gt;
 set WXWIN=C:\wxWidgets-2.8.9&lt;br /&gt;
* The following instructions will build a shared, unicode, release version of wxWidgets. If you use plplot within your wxWidgets application you have already a wxWidgets library ready for use - see &amp;lt;tt&amp;gt;cmake-path\share\modules\FindwxWidgets.cmake&amp;lt;/tt&amp;gt; for the options for your special wxWidgets library.&lt;br /&gt;
&lt;br /&gt;
=== MinGW command line tools ===&lt;br /&gt;
* To compile wxWidgets with the MinGW compiler run&lt;br /&gt;
 cd %WXWIN%\build\msw&lt;br /&gt;
 mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release&lt;br /&gt;
* set environment variables&lt;br /&gt;
 set PATH=%WXWIN%\lib\gcc_dll;%PATH%&lt;br /&gt;
CMake is now able to find the wxWidgets library and headers, if you additionally set the following cmake options for MinGW:&lt;br /&gt;
  -DwxWidgets_LIB_DIR=%WXWIN%/lib/gcc_dll -DwxWidgets_CONFIGURATION=mswu -DENABLE_MIX_CXX=ON&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;CAUTION:&amp;#039;&amp;#039;&amp;#039; If you have used other guides to compile wxWidgets ([http://wiki.wxwidgets.org/Eclipse,_CDT_%26_MingW_%26_MSYS_Setup_Guide Eclipse, CDT &amp;amp; MingW &amp;amp; MSYS Setup Guide] in my case), be aware that there is a significant difference between having compiled wxWidgets with ./configure in MSYS and the above commands using [http://www.cmake.org/ CMake].  Although both result in Windows libraries, they will not place them in the same paths.  The location of build.cfg may also be a significant factor.  [http://www.cmake.org/ CMake], as is used by PLplot, can search for wxWidgets via two independent methods labeled &amp;#039;unix&amp;#039; and &amp;#039;win32&amp;#039;.  The ./configure method is not compatible with the &amp;#039;win32&amp;#039; search method.&lt;br /&gt;
&lt;br /&gt;
=== VisualC command line tools ===&lt;br /&gt;
* To compile wxWidgets with the Visual C++ command line toolset run&lt;br /&gt;
 cd %WXWIN%\build\msw&lt;br /&gt;
 nmake -f makefile.vc SHARED=1 UNICODE=1 BUILD=release USE_GDIPLUS=1&lt;br /&gt;
This builds a shared, unicode release library of wxWidgets with GDI+ support for wxGraphicsContext included.&lt;br /&gt;
* Open the file &amp;lt;tt&amp;gt;%WXWIN%\lib\vc_dll\mswu\wx\setup.h&amp;lt;/tt&amp;gt; and change&lt;br /&gt;
 #define wxUSE_GRAPHICS_CONTEXT 0&lt;br /&gt;
to&lt;br /&gt;
 #define wxUSE_GRAPHICS_CONTEXT 1&lt;br /&gt;
* set environment variables (Visual C++)&lt;br /&gt;
 set PATH=%WXWIN%\lib\vc_dll;%PATH%&lt;br /&gt;
* CMake is now able to find the wxWidgets library and headers, if you additionally set the following cmake options for Visual C++:&lt;br /&gt;
  -DwxWidgets_LIB_DIR=%WXWIN%/lib/vc_dll -DwxWidgets_CONFIGURATION=mswu -DENABLE_MIX_CXX=ON&lt;/div&gt;</summary>
		<author><name>Altendky</name></author>	</entry>

	</feed>