Hi,
I’m quite a newby to Linux (using Ubuntu 19.10) and had some troubles while installing NGS and xfem together. I did the following (sudo where necessary):
cd usr/share
git clone https://github.com/ngsxfem/ngsxfem.git
cd ngsxfem
mkdir build
git submodule update --init
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/share -DBUILD_NGSOLVE=ON
and got the following response:
[code]…
…
[ 81%] Building CXX object comp/CMakeFiles/ngcomp.dir/pde.cpp.o
/usr/share/ngsxfem/external_dependencies/ngsolve/comp/pde.cpp:8:10: fatal error: tcl.h: Datei oder Verzeichnis nicht gefunden
8 | #include <tcl.h>
| ^~~~~~~
compilation terminated.
make[5]: *** [comp/CMakeFiles/ngcomp.dir/build.make:479: comp/CMakeFiles/ngcomp.dir/pde.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/Makefile2:507: comp/CMakeFiles/ngcomp.dir/all] Fehler 2
make[3]: *** [Makefile:141: all] Fehler 2
make[2]: *** [CMakeFiles/ngsolve.dir/build.make:116: dependencies/Stamp/ngsolve/ngsolve-build] Fehler 2
make[1]: *** [CMakeFiles/Makefile2:222: CMakeFiles/ngsolve.dir/all] Fehler 2
make: *** [Makefile:152: all] Fehler 2
[ 30%] Built target netgen_project
…
…
[ 61%] Built target ngfem
[ 61%] Building CXX object comp/CMakeFiles/ngcomp.dir/pde.cpp.o
/usr/share/ngsxfem/external_dependencies/ngsolve/comp/pde.cpp:8:10: fatal error: tcl.h: Datei oder Verzeichnis nicht gefunden
8 | #include <tcl.h>
| ^~~~~~~
compilation terminated.
make[5]: *** [comp/CMakeFiles/ngcomp.dir/build.make:479: comp/CMakeFiles/ngcomp.dir/pde.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/Makefile2:507: comp/CMakeFiles/ngcomp.dir/all] Fehler 2
make[3]: *** [Makefile:141: all] Fehler 2
make[2]: *** [CMakeFiles/ngsolve.dir/build.make:116: dependencies/Stamp/ngsolve/ngsolve-build] Fehler 2
make[1]: *** [CMakeFiles/Makefile2:222: CMakeFiles/ngsolve.dir/all] Fehler 2
make: *** [Makefile:152: all] Fehler 2
CMake Error at CMakeLists.txt:91 (find_package):
Could not find a package configuration file provided by “NGSolve” with any
of the following names:
NGSolveConfig.cmake
ngsolve-config.cmake
Add the installation prefix of “NGSolve” to CMAKE_PREFIX_PATH or set
“NGSolve_DIR” to a directory containing one of the above files. If
“NGSolve” provides a separate development package or SDK, be sure it has
been installed.
– Configuring incomplete, errors occurred!
See also “/usr/share/ngsxfem/build/CMakeFiles/CMakeOutput.log”.
[/code]
I attached the CMakeOutput.log
What went wrong - what should I do? Thanks a lot for the help!
Attachment: CMakeOutputlog.txt