CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Problem compiling a custom Lagrangian library (https://www.cfd-online.com/Forums/openfoam-programming-development/138144-problem-compiling-custom-lagrangian-library.html)

brbbhatti June 29, 2014 13:44

Problem compiling a custom Lagrangian library
 
Hello Everyone

I have installed OpenFOAM 2.1.0 on my laptop and its working and I am using Ubuntu 12.04.

I want to compile the library of Lagrangian which i am using in my office on the same version of OpenFOAM so i copy the whole Lagrangian folder but when i try to compile it on my laptop i got this error and i am not understanding what is the problem mean and how can i fix it. Did anyone have that kind of problem before in past.

This library is compiling and running in my office perfect. Can anyone have any idea what is wrong and how can i fix this.

Quote:

2.1.0/lib/lagrangian_new/intermediateSplash$ wclean
bilal@Bilal-PC:~/OpenFOAM/bilal-2.1.0/bhb8fe-2.1.0/lib/lagrangian_new/intermediateSplash$ wmake libso
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file clouds/baseClasses/kinematicCloud/kinematicCloud.C
Making dependency list for source file clouds/baseClasses/thermoCloud/thermoCloud.C
Making dependency list for source file clouds/baseClasses/reactingCloud/reactingCloud.C
Making dependency list for source file clouds/baseClasses/reactingMultiphaseCloud/reactingMultiphaseCloud.C
Making dependency list for source file parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C
could not open file particle.H for source file parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C
could not open file meshTools.H for source file parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C
could not open file Cloud.H for source file parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C
Making dependency list for source file parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C
could not open file Cloud.H for source file parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C
could not open file particle.H for source file parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C
could not open file meshTools.H for source file parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C
could not open file mappedPatchBase.H for source file parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C
could not open file distributionModel.H for source file parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C
could not open file TimeDataEntry.H for source file parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C
could not open file cellSet.H for source file parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C
Making dependency list for source file parcels/derived/basicKinematicCollidingParcel/defineBasicKinematicCollidingParcel.C
could not open file particle.H for source file parcels/derived/basicKinematicCollidingParcel/defineBasicKinematicCollidingParcel.C
could not open file meshTools.H for source file parcels/derived/basicKinematicCollidingParcel/defineBasicKinematicCollidingParcel.C
could not open file Cloud.H for source file parcels/derived/basicKinematicCollidingParcel/defineBasicKinematicCollidingParcel.C
Making dependency list for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
could not open file Cloud.H for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
could not open file particle.H for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
could not open file meshTools.H for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
could not open file mappedPatchBase.H for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
could not open file distributionModel.H for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
could not open file TimeDataEntry.H for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
could not open file cellSet.H for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
could not open file InteractionLists.H for source file parcels/derived/basicKinematicCollidingParcel/makeBasicKinematicCollidingParcelSubmodels.C
Making dependency list for source file parcels/derived/basicThermoParcel/defineBasicThermoParcel.C
could not open file particle.H for source file parcels/derived/basicThermoParcel/defineBasicThermoParcel.C
could not open file meshTools.H for source file parcels/derived/basicThermoParcel/defineBasicThermoParcel.C
could not open file Cloud.H for source file parcels/derived/basicThermoParcel/defineBasicThermoParcel.C
Making dependency list for source file parcels/derived/basicThermoParcel/makeBasicThermoParcelSubmodels.C
could not open file particle.H for source file parcels/derived/basicThermoParcel/makeBasicThermoParcelSubmodels.C
could not open file Cloud.H for source file parcels/derived/basicThermoParcel/makeBasicThermoParcelSubmodels.C
could not open file meshTools.H for source file parcels/derived/basicThermoParcel/makeBasicThermoParcelSubmodels.C
could not open file mappedPatchBase.H for source file parcels/derived/basicThermoParcel/makeBasicThermoParcelSubmodels.C
could not open file distributionModel.H for source file parcels/derived/basicThermoParcel/makeBasicThermoParcelSubmodels.C
could not open file TimeDataEntry.H for source file parcels/derived/basicThermoParcel/makeBasicThermoParcelSubmodels.C
could not open file cellSet.H for source file parcels/derived/basicThermoParcel/makeBasicThermoParcelSubmodels.C
Making dependency list for source file parcels/derived/basicReactingParcel/defineBasicReactingParcel.C
could not open file particle.H for source file parcels/derived/basicReactingParcel/defineBasicReactingParcel.C
could not open file meshTools.H for source file parcels/derived/basicReactingParcel/defineBasicReactingParcel.C
could not open file Cloud.H for source file parcels/derived/basicReactingParcel/defineBasicReactingParcel.C
Making dependency list for source file parcels/derived/basicReactingParcel/makeBasicReactingParcelSubmodels.C
could not open file Cloud.H for source file parcels/derived/basicReactingParcel/makeBasicReactingParcelSubmodels.C
could not open file particle.H for source file parcels/derived/basicReactingParcel/makeBasicReactingParcelSubmodels.C
could not open file meshTools.H for source file parcels/derived/basicReactingParcel/makeBasicReactingParcelSubmodels.C
could not open file mappedPatchBase.H for source file parcels/derived/basicReactingParcel/makeBasicReactingParcelSubmodels.C
could not open file distributionModel.H for source file parcels/derived/basicReactingParcel/makeBasicReactingParcelSubmodels.C
could not open file TimeDataEntry.H for source file parcels/derived/basicReactingParcel/makeBasicReactingParcelSubmodels.C
Making dependency list for source file parcels/derived/basicReactingMultiphaseParcel/defineBasicReactingMultiphaseParcel.C
could not open file particle.H for source file parcels/derived/basicReactingMultiphaseParcel/defineBasicReactingMultiphaseParcel.C
could not open file meshTools.H for source file parcels/derived/basicReactingMultiphaseParcel/defineBasicReactingMultiphaseParcel.C
could not open file Cloud.H for source file parcels/derived/basicReactingMultiphaseParcel/defineBasicReactingMultiphaseParcel.C
Making dependency list for source file parcels/derived/basicReactingMultiphaseParcel/makeBasicReactingMultiphaseParcelSubmodels.C
could not open file Cloud.H for source file parcels/derived/basicReactingMultiphaseParcel/makeBasicReactingMultiphaseParcelSubmodels.C
could not open file particle.H for source file parcels/derived/basicReactingMultiphaseParcel/makeBasicReactingMultiphaseParcelSubmodels.C
could not open file meshTools.H for source file parcels/derived/basicReactingMultiphaseParcel/makeBasicReactingMultiphaseParcelSubmodels.C
could not open file mappedPatchBase.H for source file parcels/derived/basicReactingMultiphaseParcel/makeBasicReactingMultiphaseParcelSubmodels.C
could not open file distributionModel.H for source file parcels/derived/basicReactingMultiphaseParcel/makeBasicReactingMultiphaseParcelSubmodels.C
could not open file TimeDataEntry.H for source file parcels/derived/basicReactingMultiphaseParcel/makeBasicReactingMultiphaseParcelSubmodels.C
Making dependency list for source file submodels/addOns/radiation/absorptionEmission/cloudAbsorptionEmission/cloudAbsorptionEmission.C
Making dependency list for source file submodels/addOns/radiation/scatter/cloudScatter/cloudScatter.C
Making dependency list for source file submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionData.C
Making dependency list for source file submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionDataList.C
Making dependency list for source file submodels/Kinematic/InjectionModel/KinematicLookupTableInjection/kinematicParcelInjectionData.C
Making dependency list for source file submodels/Kinematic/InjectionModel/KinematicLookupTableInjection/kinematicParcelInjectionDataIO.C
Making dependency list for source file submodels/Kinematic/InjectionModel/KinematicLookupTableInjection/kinematicParcelInjectionDataIOList.C
Making dependency list for source file submodels/Thermodynamic/InjectionModel/ThermoLookupTableInjection/thermoParcelInjectionData.C
Making dependency list for source file submodels/Thermodynamic/InjectionModel/ThermoLookupTableInjection/thermoParcelInjectionDataIO.C
Making dependency list for source file submodels/Thermodynamic/InjectionModel/ThermoLookupTableInjection/thermoParcelInjectionDataIOList.C
Making dependency list for source file submodels/Reacting/InjectionModel/ReactingLookupTableInjection/reactingParcelInjectionData.C
Making dependency list for source file submodels/Reacting/InjectionModel/ReactingLookupTableInjection/reactingParcelInjectionDataIO.C
Making dependency list for source file submodels/Reacting/InjectionModel/ReactingLookupTableInjection/reactingParcelInjectionDataIOList.C
Making dependency list for source file submodels/ReactingMultiphase/InjectionModel/ReactingMultiphaseLookupTableInjection/reactingMultiphaseParcelInjectionData.C
Making dependency list for source file submodels/ReactingMultiphase/InjectionModel/ReactingMultiphaseLookupTableInjection/reactingMultiphaseParcelInjectionDataIO.C
Making dependency list for source file submodels/ReactingMultiphase/InjectionModel/ReactingMultiphaseLookupTableInjection/reactingMultiphaseParcelInjectionDataIOList.C
Making dependency list for source file IntegrationScheme/makeIntegrationSchemes.C
Making dependency list for source file phaseProperties/phaseProperties/phaseProperties.C
Making dependency list for source file phaseProperties/phaseProperties/phasePropertiesIO.C
Making dependency list for source file phaseProperties/phasePropertiesList/phasePropertiesList.C
Making dependency list for source file clouds/Templates/KinematicCloud/cloudSolution/cloudSolution.C
SOURCE=clouds/baseClasses/kinematicCloud/kinematicCloud.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/basic/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/OpenFOAM/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/meshTools/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/distributionModels/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/regionModels/regionModel/lnInclude -I/opt/openfoam210/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam210/src/dynamicFvMesh/lnInclude -I/opt/openfoam210/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/kinematicCloud.o
SOURCE=clouds/baseClasses/thermoCloud/thermoCloud.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/basic/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/OpenFOAM/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/meshTools/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/distributionModels/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/regionModels/regionModel/lnInclude -I/opt/openfoam210/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam210/src/dynamicFvMesh/lnInclude -I/opt/openfoam210/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/thermoCloud.o
SOURCE=clouds/baseClasses/reactingCloud/reactingCloud.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/basic/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/OpenFOAM/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/meshTools/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/distributionModels/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/regionModels/regionModel/lnInclude -I/opt/openfoam210/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam210/src/dynamicFvMesh/lnInclude -I/opt/openfoam210/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/reactingCloud.o
SOURCE=clouds/baseClasses/reactingMultiphaseCloud/reactingMultiphaseCloud.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/basic/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/OpenFOAM/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/meshTools/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/distributionModels/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/regionModels/regionModel/lnInclude -I/opt/openfoam210/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam210/src/dynamicFvMesh/lnInclude -I/opt/openfoam210/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/reactingMultiphaseCloud.o
SOURCE=parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/basic/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/OpenFOAM/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/meshTools/lnInclude -I/home/bilal/OpenFOAM/bilal-2.1.0/lib/lagrangian_new/distributionModels/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam210/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/regionModels/regionModel/lnInclude -I/opt/openfoam210/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam210/src/dynamicFvMesh/lnInclude -I/opt/openfoam210/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/defineBasicKinematicParcel.o
In file included from parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C:26:0:
parcels/derived/basicKinematicParcel/basicKinematicParcel.H:39:22: fatal error: particle.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/defineBasicKinematicParcel.o] Error 1
bilal@Bilal-PC:~/OpenFOAM/bilal-2.1.0/bhb8fe-2.1.0/lib/lagrangian_new/intermediateSplash$
Any suggestion or idea will be great.

Best Regards,

Bilal

fabian_roesler June 30, 2014 07:16

check files and options in make folder
 
Hi

the compile log shows everything you need. particle.H is missing. As you try to compile a new, self made library called lagrangian_new, I suggest you double check your files and options in the make folders. Looks like some include in the options file is wrong. Are there only relative include paths or do you use some full paths to some includes? These would, most likely, be different between to OpenFOAM compiles.

Cheers

Fabian

brbbhatti July 7, 2014 11:32

Hi, Fabian,

Thanks for your reply. i check all files included in option and file folders and all of them are written ok. This library is compiling in my office but not on my laptop. i just used Intermediate folder from lagrangian, toolmesh folder and OpenFOAM folder. only intermediate folder is not compiling other two are compiling ok. And i even check all the files and they are there but it is still giving the error can not open particle.H file .

Any idea what is wrong

Regards,

Bilal


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