installing ngsxfem

More
5 years 9 months ago - 5 years 9 months ago #1462 by noname
Replied by noname on topic installing ngsxfem
Hi,

I have uninstalled netgen and on my Desktop did,

git clone github.com/ngsxfem/ngsxfem.git
cd ngsxfem
mkdir build
cd build

and

cmake ../ -DCMAKE_INSTALL_PREFIX=INSTLOCATION -DBUILD_NGSOLVE=ON
after running a while I got the following error message now,

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/~/Desktop/ngsxfem/build/CMakeFiles/CMakeOutput.log".

If you know what this is, it would be superb, thanks in advance...
Last edit: 5 years 9 months ago by noname.
More
5 years 9 months ago - 5 years 9 months ago #1463 by schruste
Replied by schruste on topic installing ngsxfem
Did you do the

git submodule update --init --recursive

after the clone and before the cmake-call?

Furthermore "INSTLOCATION" should be replaced with the location that you want ngsxfem to be installed to.

If this doesn't work you try adding "-DCMAKE_PREFIX_PATH=INSTLOCATION" to the cmake command (although this should ideally not be necessary).

Best,
Christoph
Last edit: 5 years 9 months ago by schruste.
More
5 years 9 months ago #1464 by noname
Replied by noname on topic installing ngsxfem
Hi,

I am following your exact commands in the exact order, I even added "-DCMAKE_PREFIX_PATH=INSTLOCATION" to the cmake command as you suggested but the same error continues...
More
5 years 9 months ago #1465 by noname
Replied by noname on topic installing ngsxfem
Little updates,

I have found where the NGSolveConfig.cmake is and changed the NGSolve_DIR in CMakeCache.txt to that directory.

Now I get the following error when I re-do the
cmake ../ -DCMAKE_INSTALL_PREFIX=INSTLOCATION -DBUILD_NGSOLVE=ON

/home/~/Desktop/cutfem-cutdg/cutfem-nse-moving-domains-2018/ngsxfem/external_dependencies/ngsolve/comp/pde.cpp:8:10: fatal error: tcl.h: No such file or directory
#include <tcl.h>
^~~~~~~
compilation terminated.
comp/CMakeFiles/ngcomp.dir/build.make:782: recipe for target 'comp/CMakeFiles/ngcomp.dir/pde.cpp.o' failed
make[5]: *** [comp/CMakeFiles/ngcomp.dir/pde.cpp.o] Error 1
CMakeFiles/Makefile2:501: recipe for target 'comp/CMakeFiles/ngcomp.dir/all' failed
make[4]: *** [comp/CMakeFiles/ngcomp.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/ngsolve.dir/build.make:115: recipe for target 'dependencies/Stamp/ngsolve/ngsolve-build' failed
make[2]: *** [dependencies/Stamp/ngsolve/ngsolve-build] Error 2
CMakeFiles/Makefile2:211: recipe for target 'CMakeFiles/ngsolve.dir/all' failed
make[1]: *** [CMakeFiles/ngsolve.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
-- Found Netgen: /home/~/Desktop/cutfem-cutdg/cutfem-nse-moving-domains-2018/lib/cmake/netgen
CMake Error at build/ngsolve/ngsolve/NGSolveConfig.cmake:64 (include):
include could not find load file:

/home/~/Desktop/cutfem-cutdg/cutfem-nse-moving-domains-2018/ngsxfem/build/ngsolve/ngsolve/ngsolve-targets.cmake
Call Stack (most recent call first):
CMakeLists.txt:64 (find_package)


-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.7", minimum required is "3")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found suitable version "3.6.7", minimum required is "3")

xfem 1.0.0-dev: Automatic configuration OK.

Install directory:
/home/~/Desktop/cutfem-cutdg/cutfem-nse-moving-domains-2018/ngsxfem/build/INSTLOCATION

Compiler:
CMAKE_CXX_COMPILER = /usr/bin/c++

Compiler Flags:
flags = -O2 -g -DNDEBUG

Generator:
Unix Makefiles

Build Type:
type = RELWITHDEBINFO

Build NGSolve from scratch: ON
Build xfem (and NGSolve) with ccache: OFF

Building:

Type 'make' to compile xfem.

Type 'make install' to install xfem.

More
5 years 9 months ago - 5 years 9 months ago #1466 by noname
Replied by noname on topic installing ngsxfem
More updates...

To solve the above problem in the related file I have changed the tcl.h to tcl/tcl.h, turns out that Ubuntu places tcl.h in /usr/include/tcl/ not in usr/include.

Now I have
-- Configuring done
-- Generating done

but then when I make
make

I get

fatal error: ngstd.hpp: No such file or directory
Last edit: 5 years 9 months ago by noname.
More
5 years 9 months ago #1468 by schruste
Replied by schruste on topic installing ngsxfem
There are a few prerequisites for ngsolve to be built from source, see also

ngsolve.org/docu/latest/install/installlinux.html

Please install them beforehand. Also: Can you please post the full list of commands and subsequent output in your installation (note that you can also attach text files here).

Best,
Christoph
Time to create page: 0.115 seconds