Hi Henry,

after setting up DuMux with dunecontrol a build directory (default name `build-cmake`) is created in the root folder of the dumux module, i.e. next to `test` and `examples`. This mirrors the structure of `test` and `examples` and is where you build and run executables. Instead of creating individual build folders, navigate to `build-cmake/examples/2pinfiltration`. Here you can build with `make example_2p_pointsource_adaptive` and run the executable directly or use `ctest`.

Best regards,
Mathis

------------------------------------------------------------------------
From:   Henry Arhin <[email protected]>
To:     [email protected]
Reply-To:       DuMux User Mailing List <[email protected]>
Date:   Wed, 25 Sept, 2024 16:03:34 +0200
Subject:        [DuMux] Errors running the examples

Hi All,

I am trying to run the examples and build on them but I am getting these errors. I think I am doing something wrong.
Any help will be appreciated.

Thank you.

Sincerely,
Henry Arhin.

henry@henry-ThinkPad-P16s-Gen-1:~/dumux/dumux/examples/2pinfiltration/build$ cmake ..
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command. Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  cmake_minimum_required() should be called prior to this top-level project()   call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:4 (dune_symlink_to_source_files):
  Unknown CMake command "dune_symlink_to_source_files".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.28)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
henry@henry-ThinkPad-P16s-Gen-1:~/dumux/dumux/examples/2pinfiltration/build$



_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

--
********************************************************
Mathis Kelm
Universitaet Stuttgart
Institut fuer Wasser- und Umweltsystemmodellierung
Lehrstuhl fuer Hydromechanik und Hydrosystemmodellierung
Pfaffenwaldring 61, 70569 Stuttgart
Tel.: 0711/685-60146
[email protected]
https://www.iws.uni-stuttgart.de/lh2/
********************************************************
_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to