Hello Developers,
I'm trying to install ngsxfem on Ubuntu 18.04.3 but I'm having issues. I don't have ngsolve/netgen installed so I followed the directions for building ngsxfem with ngsolve. I've installed all the necessary prerequisite packages to the OS.
Here are the commands that I used:
git clone
github.com/ngsxfem/ngsxfem.git
cdngsxfem
mkdir build
cd build
git submodule update --init --recursive
cmake ../ -DCMAKE_INSTALL_PREFIX=~/Desktop/Solver -DBUILD_NGSOLVE=ON
(I've also tried adding -DCMAKE_PREFIX_PATH= ~/Desktop/Solver... but it still fails at the same point during the build process; Am I specifying the wrong location for -DCMAKE_PREFIX_PATH?)
Once the last command is inputted to the terminal, the build starts but ends with an error after a while. The error that I'm getting is the following:
[ 29%] Building CXX object fem/CMakeFiles/ngfem.dir/h1hofe.cpp.o
.
(some codes)
.
fem/CMakeFiles/ngfem.dir/build.make:206: recipe for target 'fem/CMakeFiles/ngfem.dir/h1hofe.cpp.o' failed
CMakeFiles/Makefile2:425: recipe for target 'fem/CMakeFiles/ngfem.dir/all' failed
Makefile:140: recipe for target 'all' failed
CMakeFiles/ngsolve.dir/build.make:115: recipe for target 'dependencies/Stamp/ngsolve/ngsolve-build' failed
CMakeFiles/Makefile2:211: recipe for target 'CMakeFiles/ngsolve.dir/all' failed
make[5]: *** [fem/CMakeFiles/ngfem.dir/h1hofe.cpp.o] Error 1
make[4]: *** [fem/CMakeFiles/ngfem.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [dependencies/Stamp/ngsolve/ngsolve-build] Error 2
make[1]: *** [CMakeFiles/ngsolve.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
CMake Error at CMakeLists.txt:86 (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.
Thanks for all your help in advance!