-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building fails with Boost 1.67 because of old yaml-cpp #18
Comments
Hi @avidalto, what version of Boost are you using? |
Thank you very much for the quick response. I am using boost_1_67_0 from https://www.boost.org/users/download/ following option 2 in https://github.com/precice/precice/wiki/Dependencies#boost |
When I use the debug branch I get this fatal error message: fatal error: yaml-cpp/yaml.h: No such file or directory This happens when making CHT.o, however, SinkTemperature.o, HeatFlux.o KappaEffective.o and some other where compiled correctly. |
Oh, then probably there is some incompatibility between yaml-cpp and Boost. How did you install yaml-cpp? Boost tends to change frequently, so you may need to build a previous version (for sure Boost 1.65.1 works, that's what I use). Could you please upload your Dockerfile (or a minimal working example of it)? It would be much easier for me to help you then! :-) |
Or maybe build the very latest yaml-cpp from source, I guess this requires less work, as you only need to rebeuild the adapter then. |
There are also some experimental Dockerfiles in this repository. I am not sure about their state at the moment, but you could get some ideas. However, I am interested in debugging this. I will test Boost 1.67 now. |
Thanks!
This worked for calculix but I then used...
... This changed the error from...
...to the one on my first post.
These are more or less the commands I used:
I also tried similar steps with the dev and FSI branches. Thank you for the docker files. I will take a look at them to see if a figure out another way of building the openfoam adapter. |
I can also reproduce this issue with Boost 1.67.0 and yaml-cpp 0.5.3, [as well as 0.6.2] (wrong). Looking on this. |
So... I was wrong before, it works with yaml-cpp 0.6.x, which removed the Boost dependency. I added this in the building instructions of the adapter and of preCICE. You definitely need yaml-cpp 0.5.x or newer eitherways, because they changed the API in that version. I also added this in the instructions. Thank you for reporting this! Two side notes:
Pleae tell me if it also works for you. Just keep Boost 1.67 and upgrade yaml-cpp to 0.6.x. |
Thank you very much! I used version 1.65.1 and it worked. Here is a copy of the steps:
|
Great! Feel free to also ask for help in our gitter/mailing list if you need anything. |
Hi, PLEASE HELP ME HOW TO SETTLE THIS ERRORS |
root@DURAI:/home/durai/Desktop//CHT/heat_exchanger/buoyantSimpleFoam-CalculiX# ./Allrun Setting up the preCICE configuration file for a serial simulation ./Allrun: line 60: 8901 Segmentation fault (core dumped) ${Solver3} -i ${Participant3}/solid -precice-participant ${Participant3} > ${Participant3}.log 2>&1 Something went wrong... See the log files for more. How to rectify this error |
Dear @DURAI04, This does not seem related to the OpenFOAM adapter. It may actually be that you have more than one problems. Let's continue this discussion on Gitter. Best, |
@MakisH |
Hi @nithinadidela, |
Hi,
I started a topic on Discourse.
It's titled, "CalculiX not being linked to precice properly".
If you can please look into it, I'd greatly appreciate it.
Thanking you in anticipation.
Yours sincerely,
Nithin Adidela.
…On Tue, 29 Oct, 2019, 12:08 PM Gerasimos Chourdakis, < ***@***.***> wrote:
Hi @nithinadidela <https://github.com/nithinadidela>,
I understand that your issue now is different than Boost and yaml-cpp.
Let's continue the discussion on Discourse
<https://precice.discourse.group/>! Please add more details there, such
as log files, how you built preCICE, etc.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18?email_source=notifications&email_token=AKDMYD6C2QWIKZZKDIN6L33QQ7LADA5CNFSM4E4Q7ZV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECPM7UI#issuecomment-547278801>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDMYD4AQB7OYR2OMSLZTGLQQ7LADANCNFSM4E4Q7ZVQ>
.
|
Hello,
I am trying to build the OpenFOAM adapter to run the tutorial https://github.com/precice/precice/wiki/Tutorial-for-CHT-with-OpenFOAM-and-CalculiX. I am doing this from a docker container with ubuntu16.04. I successfully installed:
And I successfully made the CalculiX adapter ccx_preCICE.
I installed yaml with apt-get install libyaml-cpp-dev and also building it manually, which worked for the CalculiX adapter.
However, when I run ./Allwmake I get the following error in the wmake.log file:
The standard output when I run ./Allwmake is:
Could you please give me a hint as to what is going wrong?
Thank you very much!
The text was updated successfully, but these errors were encountered: