Building the Application
Setting Up the Build Environment
Before you invoke the compiler component of the suite that you installed with Intel® IPP, you must set certain environment variables that define the location of compiler-related components. The Intel® C++ Compiler includes the compilervars scripts that you can run to set environment variables:
- On Windows*, you can find the compilervars.bat batch file at <install-dir>\compilers_and_libraries_<version>\windows\bin\
- On Linux OS* and macOS*, you can find the compilervars.sh shell script at <install-dir>\compilers_and_libraries_<version>\<linux|mac>\bin\
For more information about setting environment variables for different product suites, refer to https://www.intel.com/content/www/us/en/docs/ipp/developer-guide-oneapi/current/setting-environment-variables.html.
Compile and Link Your Code
To compile and link the code examples in this tutorial, do the following:
- On Windows*:
- Unzip the archive downloaded from the Intel® Integrated Performance Primitives - Sample and Tutorial website.
- Run the Microsoft* Visual Studio* command prompt and change the directory to the Makefile location. By default, Makefile is located in the root of the archive.
- Run the nmake -f Makefile_win command.
- On Linux* OS and macOS*:
- Unzip the archive downloaded from the Intel® Integrated Performance Primitives - Sample and Tutorial website.
- Run the bash shell and change the directory to the Makefile location. By default, Makefile is located in the root of the archive.
- Run the make -f Makefile_lin command on Linux* OS and make -f Makefile_mac on macOS*.
To run the application, run the following command from the directory where Makefile resides:
- On Windows*: ipp_blur_rotate.exe
- On Linux*: ./ipp_blur_rotate
- On macOS*: ./ipp_blur_rotate.app/Contents/MacOS/ipp_blur_rotate