A question about dealii-adapter recompilation

After I made the changes to the nonlinear solver in dealii-adapter, I was ready to recompile the executable in dealii-adapter using cmake again, and the following error message appeared in the terminal:

-- Using the deal.II-9.5.1 installation found at /home/cj123/Dealii-9.5.1
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_deal_ii_add_test.cmake
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_deal_ii_initialize_cached_variables.cmake
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_deal_ii_invoke_autopilot.cmake
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_deal_ii_pickup_tests.cmake
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_deal_ii_query_git_information.cmake
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_deal_ii_setup_target.cmake
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_shell_escape_option_groups.cmake
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_target_compile_flags.cmake
-- Include macro /home/cj123/Dealii-9.5.1/share/deal.II/macros/macro_target_link_flags.cmake
-- Query git repository information.
-- Using the preCICE version found at /usr/lib/x86_64-linux-gnu/cmake/precice
-- Configuring done
CMake Error in CMakeLists.txt:
  Imported target "precice::precice" includes non-existent path

    "/usr/include/precice"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in CMakeLists.txt:
  Imported target "precice::precice" includes non-existent path

    "/usr/include/precice"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

I don’t know how to fix it? Does it need to be reinstalled or something else? I hope to get help from you guys.

How did you install preCICE?

I assume that you installed it from source. Did you configure the installation prefix? Building from source - Preparation | preCICE - The Coupling Library

You can also make your preCICE installation discoverable from the build directory: Building from source - Finding | preCICE - The Coupling Library

Thank you for the help you have provided. I had a problem with my environment variable configuration, which has now been resolved

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.