CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   libacoustic (

gemxx October 2, 2017 16:11

Hi all,

I'm looking for acoustic codes and I found "libacoustic" library related to this subject.
When I run "" file in this library, it is seen the errors below on the panel.
Do you think what the reasons of these errors are ?

make[3]: Leaving directory '/home/kale/Case/UniCFD/libAcoustics-master/OpenFOAM-4.1/lib/FoamFourierAnalysis/fftw-3.3.3/tools'
make[2]: Leaving directory '/home/kale/Case/UniCFD/libAcoustics-master/OpenFOAM-4.1/lib/FoamFourierAnalysis/fftw-3.3.3/tools'
make[1]: Leaving directory '/home/kale/Case/UniCFD/libAcoustics-master/OpenFOAM-4.1/lib/FoamFourierAnalysis/fftw-3.3.3/tools'
Making install in m4
make[1]: Entering directory '/home/kale/Case/UniCFD/libAcoustics-master/OpenFOAM-4.1/lib/FoamFourierAnalysis/fftw-3.3.3/m4'
make[2]: Entering directory '/home/kale/Case/UniCFD/libAcoustics-master/OpenFOAM-4.1/lib/FoamFourierAnalysis/fftw-3.3.3/m4'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/kale/Case/UniCFD/libAcoustics-master/OpenFOAM-4.1/lib/FoamFourierAnalysis/fftw-3.3.3/m4'
make[1]: Leaving directory '/home/kale/Case/UniCFD/libAcoustics-master/OpenFOAM-4.1/lib/FoamFourierAnalysis/fftw-3.3.3/m4'
ls: cannot access 'fftw-3.3.3/lib/lib*.so*': No such file or directory
./ line 35: wmake: command not found
./ line 7: wmake: command not found


ls: cannot access 'fftw-3.3.3/lib/lib*.so*': No such file or directory

There is no lib directory and lib*.so file in the fftw-3.3.3 directory. What is the meaning of the extension .so ? What should I do to solve this problem ?


./ line 35: wmake: command not found
./ line 7: wmake: command not found

I looked at the 7th like of and the 35th line of I'm writing all lines in these files. Could you please tell me what's wrong in these files ?


cd lib/

cd ../app/surfaceNoise




source ./

# Make FFT Library
if [ ! -e fftw.stamp ]
cd $THIS_DIR/FoamFourierAnalysis/$FFTW_LIB

./configure --prefix=$FOAM_USER_LIBBIN/$FFTW_LIB --enable-shared
make install

libs=`ls $FFTW_LIB/lib/lib*.so*`
ls $libs

for lib in $libs
ln -s $lib

touch fftw.stamp

# Make libAcoustics library


Thank you for your advice. :)

gemxx October 3, 2017 04:26

When I change the 7th like of as "wmake" to "./wmake" and change the 35th line of as "wmake" to "./wmake" , the errors below will be seen on the panel,

./ line 35: ./wmake: no such file or directory
./ line 7: ./wmake: no such file or directory

gemxx October 4, 2017 04:38

I uninstalled the OpenFOAM 4.1 and installed OpenFOAM-dev. The new command line errors is like below ;

wmake .
make: stat: /root/OpenFOAM/root-dev-17.10-cfdsupport/platforms/linux64Gcc62DPInt32Opt/lib/fftw-3.3.3/include/fftw3.h: Permission denied
make: *** No rule to make target ''. Stop.
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/kale/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/randomProcesses/lnInclude -I/home/kale/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/sampling/lnInclude -I../../lib/lnInclude -IlnInclude -I. -I/home/kale/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/home/kale/OpenFOAM-in-Box-17.10/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c surfaceNoise.C -o Make/linux64Gcc62DPInt32Opt/surfaceNoise.o
surfaceNoise.C:61:28: fatal error: FoamFftwDriver.H: No such file or directory
#include "FoamFftwDriver.H"
compilation terminated.
/home/kale/OpenFOAM-in-Box-17.10/OpenFOAM-dev/wmake/rules/General/transform:25: recipe for target 'Make/linux64Gcc62DPInt32Opt/surfaceNoise.o' failed
make: *** [Make/linux64Gcc62DPInt32Opt/surfaceNoise.o] Error 1

I think that it is related to the permission of
platforms directory, but I couldn't solve this problem. Could you please help me about the reason of this error?

rezaeimahdi October 16, 2017 05:31

Hi gemxx

Today, I download the library and compile it in OpenFOAM 4.1.

It worked without any problem. I think in your case, the problem should be something else.


ronithstanly October 27, 2019 18:18

Solved the error and installed libAcoustics
Hi All !
I had the same problem of getting the following error after installing OpenFOAM 4.1 and then trying to install libAcoustics:
./ line 35: wmake: command not found
./ line 7: wmake: command not found

So I contacted the main author of the library and got to know that the reason was caused due to the fact that FFTW is an external library and should be installed separately by following the guidelines on

So, once i did that and then tried installing it (but since i already tried using ./, this time I had to first do ./ before doing ./ again), voila! it worked! So please follow the following instructions if you want to install libAcoustics:

1) Install FFTW from ( )

2) Download libAcoustic library from the GitHub (clone or download button).

3) Then go to the OpenFOAM-4.1 folder and execute script. After that libAcoustic library will start to compile.

4) From tutorial folder,for example monopole2D/system, copy commonSettings and fwhControl files to your case system folder and configure the necessary parameters.
In the end of controlDict file write
include "fwhControl"

5) Try to start your case.

Many thanks to Andrey and everyone who got involved with this thread!

All times are GMT -4. The time now is 06:54.