CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Building 1.6-dev on Ubuntu 10.10 (64bit) (https://www.cfd-online.com/Forums/openfoam-installation/85273-building-1-6-dev-ubuntu-10-10-64bit.html)

andrewryan February 21, 2011 14:24

Building 1.6-ext on Ubuntu 10.10 (64bit)
 
Hi all

I'm trying to build 1.6-ext. I first ran into the problem that the build system could not find 'mpi.h', which I fixed by setting..

export WM_MPLIB=SYSTEMOPENMPI

However I also ran in another error, which I don't understand:

Code:

SOURCE=scotchDecomp.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/nils/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/nils/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scotchDecomp.o
In file included from scotchDecomp.C:108:
scotchDecomp.H:39: fatal error: decompositionMethod.H: No such file or directory
compilation terminated.

The file however is where it should:

Code:

OpenFOAM-1.6-ext > find . -name decompositionMethod.H
./src/decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.H
./src/decompositionMethods/decompositionMethods/lnInclude/decompositionMethod.H

Thx for help!

The full log is here: http://codepad.org/eSoJts5M

andrewryan February 24, 2011 07:15

Got it working :) You basically have to build ThirdParty first. I built it first including qt, then it more or less worked fine.. IIRC I had to set an include path manually (to the include file in third party), because otherwise I ran into could not find mpi.h..

andrewryan March 1, 2011 09:05

:(
 
I just noticed that some of the packages, built in the ThirdParty directory actually replace Ubuntu packages :( For example the cmake package. Found this quite annoying the package name of the ThirdParty packages for OF ext should differ from the Ubuntu packages so you can have both installed at the same time.

marupio March 9, 2011 09:53

My ThirdParty built fine, but I still encountered this problem:

Code:

SOURCE=scotchDecomp.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/dave/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/dave/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scotchDecomp.o
In file included from scotchDecomp.C:108:
scotchDecomp.H:39:33: error: decompositionMethod.H: No such file or directory
scotchDecomp.C:117:20: error: scotch.h: No such file or directory

Messing around with the Make/options didn't work. Does anyone have any idea?

EDIT: I had to re-source the bashrc file. Now the installation gets past this error, and moves on to the next one...

HectorRedal May 21, 2011 06:37

Hi,

I have found the same problem stated in this thread.
Have someone manage to solve it?

How can I proceed further?

Best regards,
Hector.

jlpelerin July 2, 2013 15:27

Set variable SCOTCH_INCLUDE_DIR
 
Hi All,
It also seems to work to set the variable SCOTCH_INCLUDE_DIR to point toward the scotch include directory (installed from the Ubuntu package).
Regards,
Jean-Luc


All times are GMT -4. The time now is 05:47.