CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] v1606+ compilation error fftw3.h

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2016, 17:59
Default v1606+ compilation error fftw3.h
  #1
New Member
 
Stefano Capra
Join Date: Mar 2012
Posts: 14
Rep Power: 11
SteveGoat is on a distinguished road
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
SteveGoat is offline   Reply With Quote

Old   July 4, 2016, 09:18
Default
  #2
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 8
pgh is on a distinguished road
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

Last edited by pgh; July 4, 2016 at 12:43.
pgh is offline   Reply With Quote

Old   July 4, 2016, 14:03
Default
  #3
New Member
 
Stefano Capra
Join Date: Mar 2012
Posts: 14
Rep Power: 11
SteveGoat is on a distinguished road
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
SteveGoat is offline   Reply With Quote

Old   July 7, 2016, 06:45
Default
  #4
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 15
openfoam_user is on a distinguished road
Hi Stefano

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

Un saluto,
Stephane
openfoam_user is offline   Reply With Quote

Old   July 7, 2016, 06:48
Default
  #5
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 8
pgh is on a distinguished road
OpenFOAM-v1606+/etc/config.sh/FFTW
or
OpenFOAM-v1606+/etc/config.csh/FFTW

depending upon your shell
pgh is offline   Reply With Quote

Old   July 7, 2016, 07:14
Default
  #6
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 15
openfoam_user is on a distinguished road
Hi,
I have installed fftw3-devel with yast2 and it seems to compile.
Regards,
Stéphane.
openfoam_user is offline   Reply With Quote

Old   July 7, 2016, 07:53
Default
  #7
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 15
openfoam_user is on a distinguished road
Hi,
Now my OpenFOAM-v1606+ works.
Regards,
Stéphane.
openfoam_user is offline   Reply With Quote

Old   July 7, 2016, 09:30
Default
  #8
New Member
 
Stefano Capra
Join Date: Mar 2012
Posts: 14
Rep Power: 11
SteveGoat is on a distinguished road
Hi Stephane,
sorry for the late reply.
I changed the line inside makeFFTW in the ThirdParty folder

Bests
Ste
SteveGoat is offline   Reply With Quote

Reply

Tags
compile, fat, fftw3, noise, openfoam-v1606+

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] foam-extend-3.2 compilation on windows kirmaks OpenFOAM Installation 7 December 3, 2019 21:20
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 06:21
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 06:56
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 07:07
Compilation Error.... Arnab Siemens 4 September 12, 2004 16:54


All times are GMT -4. The time now is 13:40.