# A question about dealii-adapter recompilation

**URL:** <https://precice.discourse.group/t/a-question-about-dealii-adapter-recompilation/1614>\
**Category:** Using preCICE\
**Tags:** openfoam, adapters, fsi\
**Created:** [October 12, 2023, 4:20pm UTC](https://precice.discourse.group/t/a-question-about-dealii-adapter-recompilation/1614 "2023-10-12T16:20:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cj1823149636](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/cj1823149636/32/1928_2.png) [@cj1823149636](https://precice.discourse.group/u/cj1823149636)\
**Post date:** [October 12, 2023, 4:20pm UTC](https://precice.discourse.group/t/a-question-about-dealii-adapter-recompilation/1614/1 "2023-10-12T16:20:35Z")

</div>

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:

```plaintext
-- 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.

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [October 14, 2023, 9:18pm UTC](https://precice.discourse.group/t/a-question-about-dealii-adapter-recompilation/1614/2 "2023-10-14T21:18:53Z")

</div>

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](https://precice.org/installation-source-preparation.html)

You can also make your preCICE installation discoverable from the build directory: [Building from source - Finding | preCICE - The Coupling Library](https://precice.org/installation-source-finding.html)

---

<div class="post-metadata">

**Author:** ![cj1823149636](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/cj1823149636/32/1928_2.png) [@cj1823149636](https://precice.discourse.group/u/cj1823149636)\
**Post date:** [October 15, 2023, 5:25pm UTC](https://precice.discourse.group/t/a-question-about-dealii-adapter-recompilation/1614/3 "2023-10-15T17:25:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [October 18, 2023, 5:26pm UTC](https://precice.discourse.group/t/a-question-about-dealii-adapter-recompilation/1614/4 "2023-10-18T17:26:07Z")

</div>

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