Installing OpenPhase
To install OpenPhase, you need the OpenPhase Academic version. If you did not download OpenPhase yet, download the desired version from this link .
Prerequisites
- GNU GCC C++17 compliant compiler (GCC @ 9.0.0 or greater). Intel compilers are not supported.
- fftw3 library. (www.fftw.org)
Install on Linux
Note: The Ubuntu OS of the Linux distribution will be used here as an example.
Installing the prerequisites
install G++ on Ubuntu
Step 1: Start by updating the packages list by using the terminal (Ctrl+Alt+T):
sudo apt update
sudo apt update
Step 2: Install C++ compiler by installation of the development package build-essential:
sudo apt install build-essential
sudo apt install build-essential
Step 3: Check C compiler version:
g++ --version
g++ --version
install FFTW3 on Ubuntu
Installing fftw-dev package on Ubuntu is as easy as running the following command on terminal:
sudo apt-get install fftw-dev libfftw3-3 libfftw3-dev
sudo apt-get install fftw-dev libfftw3-3 libfftw3-dev
Installing the MPI Library for computing Fast Fourier Transforms package on Ubuntu (MPI users):
sudo apt-get install libfftw3-mpi-dev
sudo apt-get install libfftw3-mpi-dev
Installing OpenPhase
Note: OpenPhase comes with a configure program in the GNU style./span>
Step 1: Extract and navigate to the downloaded version (.zip) of OpenPhase. Installation can be as simple as:
Note: This will take few minutes depending on your system.
make
make
This will build OpenPhase with the fftw library. (We recommend that you use GNU make if it is available; on some systems it is called gmake.)
Attention
If you got a 'Compilation done' message on your terminal, now you are ready to run your first example.Install on Windows
Note: On Windows, we recommend you install the Windows Subsystem for Linux (WSL).
You can now install everything you need to run Windows Subsystem for Linux (WSL) by entering this command in an administrator PowerShell or Windows Command Prompt and then restarting your machine.
wsl --install
wsl --install
This command will enable the required optional components, download the latest Linux kernel, set WSL 2 as your default, and install a Linux distribution for you (Ubuntu by default, see below to change this).
.