English

How To: Compile and Run WxWidgets ArcGIS Engine samples on Windows

Summary

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

Procedure

  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.

    Example:

    WXDIR = C:\wxWidgets-2.8.7

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

    Example:
    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.

Related Information