WxWidgets

From PLplotWiki
Revision as of 08:35, 24 January 2008 by Smekal (Talk | contribs) (New page: = wxWidgets = == Description == 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...)

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

wxWidgets

Description

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. Surf 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.

Instructions for Mac OS X

Mac OS X 10.5.1

The wxWidgets library version 2.8.4 is already installed on Mac OS X 10.5.1.


Instructions for Windows

  • Download wxWidgets 2.6.3 library as zip (exe installer is also available, wxWidgets 2.8.0 has problems with MinGW in the moment)
  • Unzip the wxMSW-2.6.3.zip package in a suitable place
  • 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 cmake-2.4.5\share\modules\FindwxWidgets.cmake for the options for your special wxWidgets library.
  • Cd into wxWidgets-2.6.3\build\msw
  • Than for MinGW:
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release
  • set environment variables (MinGW)
set WXWIN=C:\wxWidgets-2.6.3
set PATH=%WXWIN%\lib\gcc_dll;%PATH%
  • Or for Visual C++:
nmake -f makefile.vc SHARED=0 UNICODE=1 BUILD=release
  • set environment variables (Visual C++)
set WXWIN=C:\wxWidgets-2.6.3
set PATH=%WXWIN%\lib\vc_dll;%PATH%

CMake is now able to find the wxWidgets library and headers, if you additionally set the following cmake options for MinGW:

 -DwxWidgets_LIB_DIR=%WXWIN%/lib/gcc_dll -DwxWidgets_CONFIGURATION=mswu -DENABLE_MIX_CXX=ON

and for Visual C++:

 -DwxWidgets_LIB_DIR=%WXWIN%/lib/vc_dll -DwxWidgets_CONFIGURATION=mswu -DENABLE_MIX_CXX=ON