Greetings all,
I am trying to install dolfinx --version 0.9.0 from source, aiming to use it as a cpp library i.e. #include <dolfinx.h>
I am using Ubuntu 22.04.2 LTS
##############################----INSTALLATION----##################################
I have followed these (self made) instructions, made from what could be found online:
-
Install vcpkg: How to install vcpkg on Ubuntu - Followchain (check: sudo vcpkg list)
-
[readlink -f $(which vcpkg) (/opt/vcpkg/)]
-
Configure user settings.json:
“cmake.configureOnOpen”: true,
“cmake.configureSettings”: {
“CMAKE_TOOLCHAIN_FILE”: “/opt/vcpkg/scripts/buildsystems/vcpkg.cmake”
}, -
Install fenicsx project (in order: ufl(4.2), ffcx(4.1, 4.2), basix(4.1 & 4.2), mpi(4.1), dolfinx(4.1 & 4.2)
4.1 In repo of library with CMakeLists.txt
[mkdir -p build]
[cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=/opt/vcpkg/scripts/buildsystems/vcpkg.cmake]
(note for dolfinx this might be needed: [cmake -B build -S . -DBasix_DIR=/usr/local/lib/cmake/basix])
[cmake --build build]
[sudo cmake --install build]
4.2 In repo with setup.py
[pip install .]
(note for dolfinx this is needed:
[pip install -r build-requirements.txt]
[pip install --check-build-dependencies --no-build-isolation .] )
##################################################################################
Up to this point there were no errors when building with cmake, as shown in the image attached [files].so where generated.
However when running [g++ project.cpp -o project -I/usr/lib/x86_64-linux-gnu/openmpi/include/]
I get 2000+ compilation errors starting from:
I have searched the discourse but this issue was never discussed so I am posting it here. All help is appreciated and thank you for reading.