# An error in the calculix-adapter installation

**URL:** <https://precice.discourse.group/t/an-error-in-the-calculix-adapter-installation/1857>\
**Category:** Official adapters and tutorials\
**Tags:** adapters, calculix\
**Created:** [March 26, 2024, 2:43pm UTC](https://precice.discourse.group/t/an-error-in-the-calculix-adapter-installation/1857 "2024-03-26T14:43:38Z")\
**Posts on this page:** 3\
**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:** [March 26, 2024, 2:43pm UTC](https://precice.discourse.group/t/an-error-in-the-calculix-adapter-installation/1857/1 "2024-03-26T14:43:38Z")

</div>

Hello everyone, I encountered this error while installing the adapter for Calculix. I don’t know how to solve it?  
Terminal partical output situation:

```
mpicc -Wall -O3 -fopenmp -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -c adapter/PreciceInterface.c -o bin/PreciceInterface.o
g++ -std=c++11 -Wall -O3 -fopenmp -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -c adapter/ConfigReader.cpp -o bin/ConfigReader.o -lspooles -L/home/cj123/precice/lib -lprecice -lstdc++ -lyaml-cpp -larpack -llapack -lblas -lpthread -lm -lc
g++ -std=c++11 -Wall -O3 -fopenmp -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -c adapter/2D3DCoupling.cpp -o bin/2D3DCoupling.o -lspooles -L/home/cj123/precice/lib -lprecice -lstdc++ -lyaml-cpp -larpack -llapack -lblas -lpthread -lm -lc
g++ -std=c++11 -Wall -O3 -fopenmp -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -c adapter/OutputBuffer.cpp -o bin/OutputBuffer.o -lspooles -L/home/cj123/precice/lib -lprecice -lstdc++ -lyaml-cpp -larpack -llapack -lblas -lpthread -lm -lc
adapter/PreciceInterface.c:15:10: fatal error: precice/preciceC.h: No such file or directory
   15 | #include "precice/preciceC.h"
      | ^ ~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:87: bin/PreciceInterface.o] Error 1
make: *** Waiting for unfinished jobs....
adapter/2D3DCoupling.cpp:16:10: fatal error: precice/preciceC.h: No such file or directory
   16 | #include "precice/preciceC.h"
      | ^ ~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:89: bin/2D3DCoupling.o] Error 1
#mpicc -Wall -O3 -fopenmp -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -c adapter/OutputBuffer.cpp -o bin/OutputBuffer.o -lspooles -L/home/cj123/precice/lib -lprecice -lstdc++ -lyaml-cpp -larpack -llapack -lblas -lpthread -lm -lc
#mpicc -Wall -O3 -fopenmp -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT -I./ -I./adapter -I/home/cj123/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/home/cj123/precice/include -I/usr/include/ -c adapter/ConfigReader.cpp -o bin/ConfigReader.o -lspooles -L/home/cj123/precice/lib -lprecice -lstdc++ -lyaml-cpp -larpack -llapack -lblas -lpthread -lm -lc
cj123@ubuntu:~/calculix-adapter-2.20.1$

```

Here is the version information of my dependencies, all installed using APT

```
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libyaml-cpp-dev is already the newest version (0.6.2-4ubuntu1).
libarpack2-dev is already the newest version (3.7.0-3).
libspooles-dev is already the newest version (2.2-14).
0 upgraded, 0 newly installed, 0 to remove and 181 not upgraded.

```

I don’t have any ideas to solve this problem.Here is my makefile file  
[Makefile.txt](https://precice.discourse.group/uploads/short-url/fqSjPRgSe6NyBm0DGt4eLZnO1DZ.txt) (3.5 KB)

---

<div class="post-metadata">

**Author:** ![fsimonis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fsimonis/32/6_2.png) [@fsimonis](https://precice.discourse.group/u/fsimonis)\
**Post date:** [April 16, 2024, 8:11am UTC](https://precice.discourse.group/t/an-error-in-the-calculix-adapter-installation/1857/2 "2024-04-16T08:11:05Z")

</div>

Hi,

The simplest reason for this issue could be that the preCICE installation is version 2, while the adapter expects version 3.

---

<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:** [May 6, 2024, 12:44pm UTC](https://precice.discourse.group/t/an-error-in-the-calculix-adapter-installation/1857/3 "2024-05-06T12:44:54Z")

</div>

Closed on May 6, 2024, 12:44pm UTC

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