Hi all,
I’m a new FEniCS user and I would like to use FEniCS on Ubuntu with a C++ interface but I have found some problems trying to run some demos.
I have installed fenics using the reccomended procedure for Ubuntu:
Terminal> sudo add-apt-repository ppa:fenics-packages/fenics
Terminal> sudo apt-get update
Terminal> sudo apt-get install fenics
Terminal> sudo apt-get dist-upgrade
Everything seems to be working correctly, so I tried to run some demos, in particular the Poisson problem contained in dolfin.
I tried to recreate it in another folder and I was able to create the .h file with the command:
ffc -l dolfin poisson.ucl
but trying to compile it using the provided CMakeLists.txt file with command
cmake .
there is the following error:
– The C compiler identification is GNU 9.2.0
– The CXX compiler identification is GNU 9.2.0
– Check for working C compiler: /u/sw/pkgs/toolchains/gcc-glibc/9/prefix/bin/gcc
– Check for working C compiler: /u/sw/pkgs/toolchains/gcc-glibc/9/prefix/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info – done
– Detecting C compile features
– Detecting C compile features – done
– Check for working CXX compiler: /u/sw/pkgs/toolchains/gcc-glibc/9/prefix/bin/g++
– Check for working CXX compiler: /u/sw/pkgs/toolchains/gcc-glibc/9/prefix/bin/g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info – done
– Detecting CXX compile features
– Detecting CXX compile features – done
CMake Error at /usr/share/dolfin/cmake/DOLFINTargets.cmake:81 (message):
The imported target “dolfin” references the file
“/usr/lib//libdolfin.so.2019.2.0.dev0”
but this file does not exist.
Possible reasons include:
*The file was deleted, renamed, or moved to another location.
*An install or uninstall procedure did not complete successfully.
*The installation package was faulty and contained
“/usr/share/dolfin/cmake/DOLFINTargets.cmake”
but not all the files it references.
Call Stack (most recent call first):
/usr/share/dolfin/cmake/DOLFINConfig.cmake:30 (include)
CMakeLists.txt:16 (find_package)
– Configuring incomplete, errors occurred!
See also “/home/apc201819/Desktop/Prova/FE_prova/CMakeFiles/CMakeOutput.log”.
I have tried to solve this problem on my own but without success.
In particular by searching for the file “/usr/lib//libdolfin.so.2019.2.0.dev0” that the program doesn’t seem to find, I saw that it is under a slightly different path:
(“/usr/lib/x86_64-linux-gnu/libdolfin.so.2019.2.0.dev0”).
Do you know what the problem might be and how can I solve it?
Thank you very much in advance to everybody is going to answer me!