Compile and Run WxWidgets ArcGIS Engine samples on Windows

Last Published: April 25, 2020


Instructions provided describe how to set up environmental variables to run Esri's WxWidget C++ samples on Windows.


  1. Browse to \Program Files\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MakefileUtilities and open the 'mk.Windows' file in a text editor.
  2. In mk.Windows provide a value for WXDIR as the installation directory of WXWidgets.


    WXDIR = C:\wxWidgets-2.8.7

  3. In mk.Windows add /I"$(AGSENGINEJAVA)\bin" to WXCPPFLAGS

    WXCPPFLAGS = /I$(WXDIR)\include /I$(WXDIR)\include\msvc /Zc:wchar_t- /I"$(AGSENGINEJAVA)\bin"

  4. Set the environmental variables for the system.

    Add Path to following directories.

    a) \Program Files\ArcGIS\Engine10.0\bin
    b) \Program Files\ArcGIS\Desktop10.0\Bin
    c) \Program Files\ArcGIS\DeveloperKit10.0\include\CatIDs
    d) \wxWidgets-2.8.7\lib\vc_dll\wxWidgets-2.8.7\include
  5. Open a Visual Studio command prompt and browse to Esri's C++ samples folder.
    Example (ArcGIS 10.0):
    \Program Files\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MapTocToolbar\Wx_Cpp

  6. Run nmake –f NMakefile.mak to compile the sample.
  7. After the sample is compiled, run the executable.

Article ID:000011060

  • ArcMap
  • ArcGIS Engine

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic