Error Installing ngsxFEM

More
3 years 1 month ago #4054 by Yarleque Medina
Hi community, I have this error in the instalation:

[ 59%] Building CXX object comp/CMakeFiles/ngcomp.dir/pde.cpp.o
/home/hpc/Downloads/src/ngsxfem/external_dependencies/ngsolve/comp/pde.cpp:8:10: fatal error: tcl.h: Arquivo ou diretório inexistente
8 | #include <tcl.h>
| ^~~~~~~
compilation terminated.
make[5]: *** [comp/CMakeFiles/ngcomp.dir/build.make:518: comp/CMakeFiles/ngcomp.dir/pde.cpp.o] Erro 1
make[4]: *** [CMakeFiles/Makefile2:732: comp/CMakeFiles/ngcomp.dir/all] Erro 2
make[3]: *** [Makefile:141: all] Erro 2
make[2]: *** [CMakeFiles/ngsolve.dir/build.make:117: dependencies/Stamp/ngsolve/ngsolve-build] Erro 2
make[1]: *** [CMakeFiles/Makefile2:223: CMakeFiles/ngsolve.dir/all] Erro 2
make: *** [Makefile:152: all] Erro 2
CMake Error at CMakeLists.txt:107 (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 "/home/hpc/Downloads/build-xfem/CMakeFiles/CMakeOutput.log".
hpc@hpc:~/Downloads/build-xfem$


This file #include <tcl.h>, appear in the /home/hpc/Downloads/src/ngsxfem/external_dependencies/ngsolve/solve/ngsolve.cpp

How can i solve this problem,

Best regards,
More
3 years 1 month ago #4055 by schruste
Replied by schruste on topic Error Installing ngsxFEM
Hi,

ngsxfem tries to build ngsolve as part of the building process and hence requires the same dependencies, see docu.ngsolve.org/latest/install/installlinux.html#prerequisites . Make sure that the prerequisites are met before you try building again. Also, if there are problems, it may be a good idea to first install NGSolve independent of ngsxfem and lateron install ngsxfem separately.

Best,
Christoph
Time to create page: 0.097 seconds