This topic describes how to install and configure the SKIRT code on Microsoft Windows using the Microsoft Visual Studio software development environment. Note that you will still need a command prompt window to actually run the SKIRT command line program.
This topic contains the following sections:
The SKIRT code has been tested with Microsoft Visual Studio 2019 running on Windows 10. Earlier versions may not support all the required capabilities. In general, later versions should work fine.
https://github.com/SKIRT/SKIRT9.git
, and the directory path for the local clone, i.e. ~\SKIRT\git
, where the tilde is replaced with the absolute path to some directory in your home folder.After cloning the repository, the default build type is Debug, which will result in slower execution. To configure a faster Release build, proceed as follows:
~\SKIRT\release
, where the tilde is replaced with an absolute path so that the release
directory is next to the git
directory.To adjust build options (see Use the SKIRT build options (all platforms) for a list of options):
Because of size limitations in GitHub repositories, the resource data files needed by the SKIRT code are hosted elsewhere (on the Ghent University science faculty data server) and must be downloaded separately. The resource files are organized in resource packs, i.e. ZIP archives containing related resource data. The "Core" resource pack is required for the basic operation of SKIRT; other resource packs are optional and must be installed only if the corresponding SKIRT functionality is actually being used. The SKIRT source code repository does contain a list of the names and version numbers of the resource packs that should (or could) be downloaded. To view this list, locate and open the file ~\SKIRT\git\SKIRT\resources\ExpectedResources.txt
.
On Windows there is no automated resource download procedure. Instead, proceed as follows:
~\SKIRT\resources
, again replacing the tilde with an absolute path so that the resources
directory is next to the git
directory.The files extracted from the archive should now have been placed in a subdirectory of the resources
directory. The file history.txt
inside that subdirectory offers brief historical release notes for the corresponding resource pack.
To verify your installation of the SKIRT project:
git
directory, e.g. ~\SKIRT\run
, where the tilde is again replaced with an absolute path.cd
) to the working directory you just created...\release\SKIRT\main\skirt.exe
without any command-line arguments. If the SKIRT project has been successfully installed, SKIRT should display its welcome message and ask for the name of the ski file to be created, without complaining about missing resources.