Make sure that you checkout the appropriate branch of FEniCSx (the dolfinx repo that you have cloned), as we keep updating the github main branch, while the apt-get version is the 0.6.0 release.
I think the dolfinx that I have installed is v0.6.0, as you said. So after I have cloned the repo, I should not work in the main branch? Then could you please tell me which branch contain the corresponding demos. I’m confused because the python demos in the same branch work well.
Thank you very much.
Thanks.
But it still doesn’t work, if I do git checkout v0.6.0 , I will go to “detached HEAD” state, and now if I compile the codes, I got the same errors. Actually, I didn’t really see this branch in github, but there is a tag “v0.6.0”, and I also tried do ‘git checkout tags/v0.6.0’ but it doesn’t help as well.
Hi, I figured out. It is the enviroment issue, I have some uncleaned cmake files in some corners of my computer, maybe that caused the wrong link when I compile. After I delete them, it works well. Thanks!