Hello,
I am trying to install preCICE with openfoam 2012. However, I am getting the following error
Building the OpenFOAM-preCICE adapter…
Allwmake: line 35: pkg-config: command not found
How this error can be resolved?
If possible, please post a link for the installion of preCICE and CalCulix.
Regards,
@iraza this looks like a file permission issue to me. Can you create files in /home/iraza/OpenFOAM/iraza-v2012/applications/openfoam-adapter_v1.0.0_OpenFOAM1812-v2012?
By the way, you could probably upgrade to the latest adapter version (v1.2.1), it also works with OpenFOAM v2012. But the version is not related to this issue.
I think this is just outdated documentation, you just need the elasticity binary. @DavidSCN how can we improve the documentation?
That’s a bit tricky… You need to install swak4Foam. To copy that page (future reader: please check for updates):
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam
cd swak4Foam
./AllwmakeAll
This will take a while, as it builds more things than groovyBC, and it may even fail to build everything. It is fine if you get libgroovybc.so (or similar) when you execute ls $FOAM_USER_LIBBIN.
I think this is just outdated documentation, you just need the elasticity binary. @DavidSCN how can we improve the documentation?
I guess I have to remove all these ‘copy executable’ statements in the tutorials and add something in the adapter documentation. The run script, however, tells the truth here.
Hi,
Thank you for your response, I re-do all the installation of openfoam, precice and openfoam-adapter. Upon installing openfoam-adapter and running the command ./Allwmake, I got the error that can be seen in the attached picture.
I wanted to run the quickstart tutorial case just to feel the precice working, however, encountered by the following error upon running the command cmake . && make
It seems to me that I used all the commands to install mentioned material in the quickstart guide instead of using commands for openfoam as I am already using openfoam-2012. However, encountered those errors. How these errors can be encountered.
What definitely is an issue is the one reported in the second screenshot. This has nothing to do with the adapter and potentially little to do with OpenFOAM itself. Have you built OpenFOAM from source? If yes, did you maybe upgrade your system in the meantime? It looks like the library libjsoncpp.so.1 is not linking correctly to libstdc++. I am not sure where this comes from, but probably there is some version mixup involved.
As for the first screenshot, could you please attach the files mentioned there? Maybe the same issue is reported there as well.