CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compilation problems OF 2.1.x (https://www.cfd-online.com/Forums/openfoam-installation/98882-compilation-problems-2-1-x.html)

ivan_cozza March 21, 2012 05:45

Compilation problems OF 2.1.x
 
Hi foamers,
it's been a long time since my last posting!

I'm encountering some problems related to the compilation of the git version of OF 2.1.x, git pull performed this morning, on a Suse Enterprise 11 (all the prerequisites packages are ok).

The error is in the lagrangian library. When I do Allwmake I find these errors:

+ wmake libso distributionModels
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdistributionModels.so' is up to date.
+ wmake libso basic
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/liblagrangian.so' is up to date.
+ wmake libso solidParticle
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libsolidParticle.so' is up to date.
+ wmake libso intermediate
SOURCE=parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/distributionModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/specie/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/basic/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/reactionThermo/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/SLGThermo/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/radiationModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/regionModels/regionModel/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/regionModels/surfaceFilmModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/dynamicFvMesh/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -IlnInclude -I. -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/makeBasicKinematicParcelSubmodels.o
In file included from parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:28:
lnInclude/makeParcelCloudFunctionObjects.H:34:26: error: ParticleTrap.H: No such file or directory
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: expected initializer before ‘<’ token
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: expected initializer before ‘<’ token
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: ‘ParticleTrap’ was not declared in this scope
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: template argument 1 is invalid
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:41: error: expected unqualified-id before ‘>’ token
make: *** [Make/linux64GccDPOpt/makeBasicKinematicParcelSubmodels.o] Error 1
+ wmake libso spray
SOURCE=parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/intermediate/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/distributionModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/specie/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/basic/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/reactionThermo/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/SLGThermo/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/thermophysicalModels/radiationModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/regionModels/regionModel/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/regionModels/surfaceFilmModels/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/dynamicFvMesh/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -IlnInclude -I. -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/makeBasicSprayParcelSubmodels.o
In file included from parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:28:
/home/cozza/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/intermediate/lnInclude/makeParcelCloudFunctionObjects.H:34:26: error: ParticleTrap.H: No such file or directory
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: expected initializer before ‘<’ token
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: expected initializer before ‘<’ token
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: ‘ParticleTrap’ was not declared in this scope
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: template argument 1 is invalid
parcels/derived/basicSprayParcel/makeBasicSprayParcelSubmodels.C:53: error: expected unqualified-id before ‘>’ token
make: *** [Make/linux64GccDPOpt/makeBasicSprayParcelSubmodels.o] Error 1
+ wmake libso dsmc
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdsmc.so' is up to date.
+ wmake libso coalCombustion
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -llagrangianIntermediate
collect2: ld returned 1 exit status
make: *** [/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libcoalCombustion.so] Error 1
+ molecularDynamics/Allwmake
+ wmake libso potential
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libpotential.so' is up to date.
+ wmake libso molecularMeasurements
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libmolecularMeasurements.so' is up to date.
+ wmake libso molecule
'/home/cozza/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libmolecule.so' is up to date.


What's appening? Any suggestions?

Thanks in advance,
Ivan

ivan_cozza March 21, 2012 10:55

1 Attachment(s)
I add the log file of the wmake.

No one knows what happens?

Thanks!

wyldckat March 21, 2012 13:54

Greetings Ivan,

It's not a matter of not knowing the issue, it's a problem with having the time to answer ;)

The library that has this problem indicates a missing file. Said file should present at least in the library's code folder "lnInclude". This tends to happen when updating from the git repo.

The solution here should be simple enough:
  1. Find the library in question:
    Code:

    find $FOAM_SRC -name intermediate
  2. Go to that folder from the command line.
  3. Run:
    Code:

    wclean libso
    wmake libso

  4. If it still has problems, search for the file in question:
    Code:

    find $FOAM_SRC -name ParticleTrap.H
    And do the same to the library where this file is.
There is of course the full clean way that does the clean up and allows you to rebuild everything. There are a few ways to do this, but the one I remember is this:
Code:

foam
wclean all

Best regards,
Bruno

ivan_cozza March 22, 2012 03:38

Quote:

Originally Posted by wyldckat (Post 350735)
Greetings Ivan,

It's not a matter of not knowing the issue, it's a problem with having the time to answer ;)

Hi Bruno,
and sorry to have been impolite!

Your suggestion worked good! Now, I'm on with 2.1.x!

Thank you very much!
Ivan

wyldckat March 22, 2012 15:38

Hi Ivan,

Quote:

Originally Posted by ivan_cozza (Post 350838)
and sorry to have been impolite!

It didn't feel like you were impolite. It only felt like you assumed the worst case scenario :)

Quote:

Originally Posted by ivan_cozza (Post 350838)
Your suggestion worked good! Now, I'm on with 2.1.x!

Thank you very much!
Ivan

I'm glad it's working and you're welcome!

Best regards,
Bruno

ivan_cozza March 23, 2012 07:39

I think I talked too soon.
Now, OF is working, but not Paraview...

I attached the log file of makeParaview, hope that someone (!) could help me...

Regards,
Ivan

wyldckat March 23, 2012 08:26

Hi Ivan,

Mmm... no attachment. But my guess is that you have an issue already addressed in the past :):
Quote:

Originally Posted by http://www.cfd-online.com/Forums/blogs/wyldckat/533-related-issues-paraview-openfoam-fixes-solutions.html
OpenFOAM 2.1.0/x and building ParaView 3.12.0 on Ubuntu 10.04: paraview compilation error paraview-3.12.0 - post #9

edit: No wait... I mistook your problem for another user's problem. For you the problem is likely that you need to rebuild OpenFOAM's plugin:
Quote:

Originally Posted by http://openfoam.org/download/git.php
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
wmSET
./Allwclean
./Allwmake


Best regards,
Bruno

ivan_cozza March 23, 2012 08:54

1 Attachment(s)
Ups, sorry, here we are.
Unfortunately is not the recompilation of ParaFoam the problem, I already did what you suggested but it doesn't work...

wyldckat March 23, 2012 09:31

Hi Ivan,

Here's the problem:
Code:

Cannot open data base file /home/cozza/OpenFOAM/ThirdParty-2.1.x/build/linux64Gcc/paraview-3.12.0/Documentation/paraview.qch!
So it should be a problem with either:
  • Not enough disk space.
  • The folder is contaminated somehow. Try removing the folder "/home/cozza/OpenFOAM/ThirdParty-2.1.x/build/" and then try to build again.
  • There is also another error that might be the real reason for the problem:
    Code:

    QSqlDatabase: QSQLITE driver not loaded
    QSqlDatabase: available drivers: QMYSQL3 QMYSQL

    For this, you'll have to install the Qt4 "libsqlite" library.
Best regards,
Bruno


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