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.org] SloanRenumber, compilation error. (https://www.cfd-online.com/Forums/openfoam-installation/162954-sloanrenumber-compilation-error.html)

echo.motd November 21, 2015 08:14

SloanRenumber, compilation error.
 
Hello,
I have got this error. Please advise.

Making dependency list for source file SloanRenumber.C
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/usr/local/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc/boost-system/include -I/usr/local/OpenFOAM/OpenFOAM-3.0.x/src/meshTools/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-3.0.x/src/parallel/decompose/decompositionMethods/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-3.0.x/src/renumber/renumberMethods/lnInclude -IlnInclude -I. -I/usr/local/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude -fPIC -c SloanRenumber.C -o /usr/local/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32Opt/src/renumber/SloanRenumber/SloanRenumber.o
SloanRenumber.C:34:28: fatal error: boost/config.hpp: No such file or directory
compilation terminated.

Thanks

alexeym November 21, 2015 09:26

Hi,

Since SloanRenumber depends on boost, you have to set BOOST_ARCH_PATH environment variable to the path where boost is installed (so $(BOOST_ARCH_PATH)/include contains boost folder with header files and $(BOOST_ARCH_PATH)/lib contains libraries). By default it points to

Code:

export BOOST_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$boost_version
If you install boost using package manager usually it is safe to set BOOST_ARCH_PATH to /usr (though on RHEL clones you need to correct src/renumber/SloanRenumber/Make/options, since libraries are stored in /usr/lib64).

You can follow installation guide here:

https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL

or here

https://openfoamwiki.net/index.php/I...M-3.0.x/Ubuntu

Though they both assume that you ADORE building third-party software from sources.

echo.motd November 21, 2015 16:10

boost and boost libraries missed
 
Hello Alexey,
Thank you for replay.

I have just compiled OpenFOAM. I did not install all dependences. After your post I had realised that I do not have boost and boost libraries since it is not mentioned at Arch Linux OpenFOAM Wiki.

Kind Regards


All times are GMT -4. The time now is 07:59.