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 with -lgenericPatchFields in foam-extend-3.0 (https://www.cfd-online.com/Forums/openfoam-programming-development/134976-problem-lgenericpatchfields-foam-extend-3-0-a.html)

Orgogozo May 7, 2014 11:02

problem with -lgenericPatchFields in foam-extend-3.0
 
Dear foamers,

I am currently trying my home made solvers and utilities in foam-extend-3.0, and I encountered the following problem.

While compiling with foam-extend-3.0 a utility that compiles without problems with OF-2.2, I get the following error :

/usr/bin/ld: can't find -lgenericPatchFields
collect2: error: ld has returned 1 execution state code
make: *** [/homel/lorgo/foam/lorgo-3.0/applications/bin/linux64GccDPOpt/spatialMeanValue] Error 1

(a bit translate from the original french error message)

Does someone know a way to overcome this problem ?

Best regards,

Laurent

tomislav_maric May 8, 2014 08:58

Try using the locate command:
Code:

locate libgenericPatchFields
/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64Gcc++0xDPCustomProf/lib/libgenericPatchFields.so
/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64Gcc++0xDPDebug/lib/libgenericPatchFields.so
/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64Gcc++0xDPOpt/lib/libgenericPatchFields.so
/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPDebug/lib/libgenericPatchFields.so
/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libgenericPatchFields.so
/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64Gcc++0xDPOpt/lib/libgenericPatchFields.so

I've stripped the home folder parts, but there seems to be no such library in foam-extend-3.0. It might have a different name.

Orgogozo May 14, 2014 04:16

1 Attachment(s)
Dear Tomislav, dear foamers,

I tried to locate the libgenericPatchFields file in foam-extend-3.0 and I get the same result than you Tomislav: this file is present only in OpenFOAM, not in foam-extend. Then I got stuck, because I can't identify another lib with Patch in its name in the libraries of the /foam/foam-extend-3.0/lib/linux64GccDPOpt directory.

I attached the utility that I tried to compile with foam-extend-3.0 (by the way it is designed to spatially average a volScalarField at each time of writing of data -as a postprocessing- and return the results as two columns : time, average). If someone manage to compile it, please let me know !

Best regards,

Laurent


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