CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] v1606+ compilation error fftw3.h (https://www.cfd-online.com/Forums/openfoam-installation/174065-v1606-compilation-error-fftw3-h.html)

SteveGoat July 3, 2016 17:59

v1606+ compilation error fftw3.h
 
Hi everyone,
I have tried to compile OpenFOAM-v1606+ on a virtual machine running Ubuntu 16.04 LTS.

I followed all the steps reported online and the system passed the foamSystemCheck:
Checking basic system...
-----------------------------------------------------------------------
Shell: /bin/bash
Host: scapra-16
OS: Linux version 4.4.0-28-generic
User: scapra


System check: PASS
Continue OpenFOAM installation.
==================


When I launch the compiler I get the following error:
fft/fft.C:28:19: fatal error: fftw3.h: No such file or directory
compilation terminated.
/home/scapra/OpenFOAM/OpenFOAM-v1606+/wmake/rules/General/transform:8: recipe for target '/home/scapra/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/src/randomProcesses/fft/fft.o' failed
make: *** [/home/scapra/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/src/randomProcesses/fft/fft.o] Error 1


I tried to install fftw using:
sudo apt-get install fftw-dev

But that didn't solve the issue.
Any suggestion?

Please not that I have already compiled successfully OpenFOAM-dev and OpenFOAM 3.0.X on the same machine

Thanks

pgh July 4, 2016 09:18

https://develop.openfoam.com/Develop...lus/issues/171

This is same as issue reported in gitlab . The solution is go inside folder i.e cd src/randomProcesses; and then run ./Allwmake

SteveGoat July 4, 2016 14:03

Hi pgh,
I followed your suggestions and on top of that changed makeFFTW to:

#fftwPACKAGE=${fftw_version:-fftw-system}
fftwPACKAGE=fftw-3.3.4


The be 100% safe I remove the system installation of fftw as well running
sudo apt-get remove fftw-dev

After running ./makeFFTW the compilation run fine

Thank you very much
Ste

openfoam_user July 7, 2016 06:45

Hi Stefano

In which file did you the change:
#fftwPACKAGE=${fftw_version:-fftw-system}
fftwPACKAGE=fftw-3.3.4

Un saluto,
Stephane

pgh July 7, 2016 06:48

OpenFOAM-v1606+/etc/config.sh/FFTW
or
OpenFOAM-v1606+/etc/config.csh/FFTW

depending upon your shell

openfoam_user July 7, 2016 07:14

Hi,
I have installed fftw3-devel with yast2 and it seems to compile.
Regards,
Stéphane.

openfoam_user July 7, 2016 07:53

Hi,
Now my OpenFOAM-v1606+ works.
Regards,
Stéphane.

SteveGoat July 7, 2016 09:30

Hi Stephane,
sorry for the late reply.
I changed the line inside makeFFTW in the ThirdParty folder

Bests
Ste


All times are GMT -4. The time now is 15:22.