Use Cygwin, a large collection of GNU and Open Source tools providing functionality similar to Linux, to build and run SETSM on Windows.
- Download the appropriate installer from https://cygwin.com/install.html
- setup-x86.exe for 32-bit versions of Windows
- setup-x86_64.exe for 64-bit versions of Windows
- Run installer
- Choose "Install from Internet" as the download source. Then click next.
- Select root Install directory and then click next.
- Type in the path to the directory you want Cygwin installed under "Root Directory" (or use the default)
- Select "All Users (RECOMMENDED)" if Cygwin will be available to all users of the system.
- Select "Just Me" if you lack Administrator privileges or have specific needs.
- Type in or browse for the path where you want Cygwin downloaded under "Local Package Directory". Then click next.
- Select "Direct Connection" for internet connection. Then click next.
- Choose a download site out of the available sites (does not matter which one you pick). Then click next.
- Select the following packages by clicking skip and checking Bin (put an X in selected box) for each:
- Search packages for gcc
- In Devel category, select to install the gcc-core package (and gcc-g++ package if desired)
- Search Packages for bin
- In Devel category, select to install binutils
- Search packages for make
- In Devel category, select to install make
- If wget is required, select to install wget from the Web category
- Search packages for gcc
- Click next to allow for installation
- Download SETSM onto your system in a location you can access it with Cygwin (nearly anywhere on your system).
- Set up the TIFF/GeoTIFF libraries on your system as needed following the instructions in the SETSM README.md under Prerequisites.
- Use the Makefile with gcc (or another compiler if you have downloaded it) to build SETSM according to the SETSM README.md
- Change the TIFFPATH and uncomment those 3 lines if the TIFF library is in a different location.
- Change the GEOTIFFPATH and uncomment those 3 lines if the GeoTIFF library is in a different location.
- Make sure your images and their corresponding header files (*.xml) have the same filename and are in the same directory.
- Run SETSM according to the SETSM User Manual. (The example below is out of date.)
./setsm [image1(*.raw|*.tif)] [image2(*.raw|*.tif)] [outputpath/name] [-options]
For more SETSM options, refer to the SETSM User Manual or run ./setsm -help