Define the TBBROOT Environment Variable
- Open a command line window.
- Use theexportcommand to set theTBBROOTenvironment variable, type:export TBBROOT=. If you used the default path during installation, the<tbb-install-dir><tbb-install-dir>is inside:
For example, if you installed theIntel® oneAPI Threading Building Blocksas a part of Intel® oneAPI Base Toolkit, the<tbb-install-dir>may be/opt/intel/oneapi/tbb/<version>.
- For root users:/opt/intel/
- For non-root users:$HOME/intel/
- To always set this variable on the current system, add this definition to your.loginor similar shell initialization file.
- Open the control panel and access:.
- Locate any existing definition of theTBBROOTuser or system environment variable. If present, verify that it value is correct if you encountered build errors and either clickCancelorOKas needed to exit the dialog box.
- If it is not present, underSystem variablesorUser variables, clickNew.
- Specify theVariable nameas:TBBROOT.
- Specify theVariable valueas the path of the installedIntel® oneAPI Base Toolkitfiles, including the\tbbdirectory.If you installed the product as part of aIntel® oneAPI Base Toolkitand used the default path, files are installed below:, for exampleC:\Program Files (x86)\Intel\oneAPI\C:\Program Files (x86)\Intel\oneAPI\tbb\.<version>
- ClickOKseveral times.
- For the change to take effect:
In some cases, you may need to log off and log on for this change to take effect.
- If using Microsoft Visual Studio*: close and reopen Visual Studio.
- If using command window: close and reopen your command window.
- If needed, you can test the definition by opening a command window and typingset TBBROOT.