Build fails with 'cannot find -lfftw3'
Building the new v1612+ on my machine fails with the following error. As far as Ican tell, fftw3 was building correctly. The used settings are single precision and 64-bit labels on a 64-bit architecture:
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1612 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_SP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/scratch/OpenFOAM/ThirdParty-plus/platforms/linux64Gcc/fftw-3.3.5/include -I/scratch/OpenFOAM/OpenFOAM-plus/src/finiteVolume/lnInclude -I/scratch/OpenFOAM/OpenFOAM-plus/src/sampling/lnInclude -I/scratch/OpenFOAM/OpenFOAM-plus/src/surfMesh/lnInclude -IlnInclude -I. -I/scratch/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude -I/scratch/OpenFOAM/OpenFOAM-plus/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/Kmesh/Kmesh.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/fft/fft.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/fft/calcEk.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/fft/kShellIntegration.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/processes/UOprocess/UOprocess.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/turbulence/turbGen.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/noise/noiseFFT/noiseFFT.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/noise/noiseModels/noiseModel/noiseModel.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/noise/noiseModels/noiseModel/noiseModelNew.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/noise/noiseModels/pointNoise/pointNoise.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/noise/noiseModels/surfaceNoise/surfaceNoise.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/windowModels/windowModel/windowModel.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/windowModels/windowModel/windowModelNew.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/windowModels/Hanning/Hanning.o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/src/randomProcesses/windowModels/uniform/uniform.o -L/scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/lib
-L/scratch/OpenFOAM/ThirdParty-plus/platforms/linux64Gcc/fftw-3.3.5/lib -L/scratch/OpenFOAM/ThirdParty-plus/platforms/linux64Gcc/fftw-3.3.5/lib64 -lfftw3 -lfiniteVolume -lsampling -o /scratch/OpenFOAM/OpenFOAM-plus/platforms/linux64GccSPInt64Opt/lib/librandomProcesses.so
/usr/bin/ld: cannot find -lfftw3