Setting Environment Variables on Windows - QuanergySystems/quanergy_client GitHub Wiki
Setting Environment Variables on Windows
Set a few user variables and system variables. In Windows 7, for example:
-
Click the Microsoft Start icon and right-click the Computer item to reveal the Open context menu (Figure 28).
-
From the Open menu, select the Properties item (Figure 28).
Figure 28. Windows 7 Context Menu for Properties
- In the Control Panel Home window that appears (Figure 29), select the Advanced system settings item.
Figure 29. Windows 7 Control Panel Home
- In the System Properties window that appears (Figure 30 left):
a. Select the Advanced tab. b. Select the Environment Variables button.
- In the Environment Variables window that appears:
a. In the upper User variables for <username> section (Figure 30 right), click the New button. b. The New User Variable pop-up window appears (Figure 30 bottom):
* In the *Variable name* field, type `PCL_Root`<br>
* In the *Variable value* field, type `C:\Program Files\PCL 1.8.0`<br>
* Click the *OK* button to apply the change and close the New User Variable window.
Figure 30. Windows 7 System Properties (left) > Environment (right) > New User (bottom)
- In the Environment Variables window (Figure 31):
a. Scroll through the lower System variables section, then select the Path variable. b. Click the Edit button. c. In the Edit System Variable pop-up window that appears, append the following list of directories applies (separated by semicolons) to the path that is already in the Variable value field:
For Visual Studio 2015:
;%OPENNI2_REDIST64%
;%PCL_ROOT%\bin
;%PCL_ROOT%\3rdParty\VTK\bin
;%PCL_ROOT%\3rdParty\FLANN\bin
;C:\
;C:\Program Files\CMake\bin
;C:\Program Files\OpenNI\Bin64
;C:\Program Files\PCL 1.8.0
;C:\Program Files\PCL 1.8.0\3rdParty\VTK\bin
For Visual Studio 2013:
;%OPENNI2_REDIST64%
;%PCL_ROOT%\bin
;%PCL_ROOT%\3rdParty\VTK\bin
;%PCL_ROOT%\3rdParty\FLANN\bin
;C:\Program Files\PCL 1.8.0\3rdParty\VTK\bin
d. Click the OK button in the Edit System Variable window to apply the change and close the window.
e. Click the OK button in the Environment Variables window to close it.
Figure 31. Windows 7 System Variables Section and Edit System Variable
-
In the System Properties window (Figure 30 left), click the OK button to close it.
-
Reboot the computer.