Create a Cragcross base directory and an environment variable as a reference
The Cragcross executables will be installed in the same base directory.
Some of the Cragcross applications will require a refence to this base direcory:
this reference will be implemented by means of an environment variable named CRAGCROSS_DIR.
Create a base directory for the Cragcross applications
Choose a suitable location for the installation of the Cragcross applications.
It is recommended to use either C:\Cragcross or D:\Cragcross.\
Below, it will be assumed that C:\Cragcross was chosen.
Create an environment variable that points to the Cragcross directory
Follow these steps to create an environment variable that points to the new Cragcross directory:
- Open Settings → System → About → Advanced system settings (right side) → Environment Variables…
- Under “User variables for <YourUser>”, click New…
- Set Variable name to
CRAGCROSS_DIR - Set Variable value to the desired folder path, e.g.
C:\Cragcross - Click OK → OK → OK to close all dialogs
- Close and reopen any terminals or apps that should see the new variable (or sign out/in)
echo %CRAGCROSS_DIR%
N.B.: Depending on how your Windows OS has been configured, it may be necessary to reboot your PC before the new environment will take effect.