# Linking against libgromacs

**URL:** <https://gromacs.bioexcel.eu/t/linking-against-libgromacs/518>\
**Category:** User discussions\
**Created:** [July 17, 2020, 10:47am UTC](https://gromacs.bioexcel.eu/t/linking-against-libgromacs/518 "2020-07-17T10:47:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogesh](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@Yogesh](https://gromacs.bioexcel.eu/u/Yogesh)\
**Post date:** [July 17, 2020, 10:47am UTC](https://gromacs.bioexcel.eu/t/linking-against-libgromacs/518/1 "2020-07-17T10:47:54Z")

</div>

GROMACS version:2018

hi i am looking for gromacs installation with CMake package configuration with GMX\_BUILD\_OWN\_FFTW=OFF Can someone provide me command line for this installation? Urgently needed.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [July 17, 2020, 11:11am UTC](https://gromacs.bioexcel.eu/t/linking-against-libgromacs/518/2 "2020-07-17T11:11:09Z")

</div>

Use `-DCMAKE_PREFIX_PATH=/path/to/your/fftw`

---

<div class="post-metadata">

**Author:** ![Yogesh](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@Yogesh](https://gromacs.bioexcel.eu/u/Yogesh)\
**Post date:** [July 17, 2020, 12:08pm UTC](https://gromacs.bioexcel.eu/t/linking-against-libgromacs/518/3 "2020-07-17T12:08:24Z")

</div>

nabi@nabi-HP-Z6-G4-Workstation:~/simulations/gromacs-2018/build$ cmake … -DGMX\_BUILD\_OWN\_FFTW=OFF -DREGRESSIONTEST\_DOWNLOAD=ON -DCMAKE\_PREFIX\_PATH= /usr/share/doc/libfftw3-dev -DGMX\_HWLOC=ON -DCMAKE\_C\_COMPILER=gcc  
…

…  
[92%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/hardware/gpu\_hw\_info.cpp.o  
[92%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/hardware/hardwaretopology.cpp.o  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp: In function ‘int gmx::{anonymous}::parseHwLocNuma(hwloc\_topology\_t, gmx::HardwareTopology::Machine\*)’:  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp:354:64: error: ‘struct hwloc\_obj’ has no member named ‘memory’  
354 | machine-\>numa.nodes[i].memory = hwlocNumaNodes[i]-\>memory.total\_memory;  
| ^ ~~~~~  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp:378:49: error: ‘hwloc\_get\_whole\_distance\_matrix\_by\_depth’ was not declared in this scope  
378 | const struct hwloc\_distances\_s \* dist = hwloc\_get\_whole\_distance\_matrix\_by\_depth(topo, depth);  
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp:381:54: error: ‘const struct hwloc\_distances\_s’ has no member named ‘latency\_base’  
381 | machine-\>numa.baseLatency = dist-\>latency\_base;  
| ^ ~~~~~~~~~~~  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp:382:54: error: ‘const struct hwloc\_distances\_s’ has no member named ‘latency\_max’  
382 | machine-\>numa.maxRelativeLatency = dist-\>latency\_max;  
| ^ ~~~~~~~~~~  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp:389:65: error: ‘const struct hwloc\_distances\_s’ has no member named ‘latency’  
389 | machine-\>numa.relativeLatency[i][j] = dist-\>latency[i\*dist-\>nbobjs+j];  
| ^ ~~~~~~  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp:407:65: error: ‘struct hwloc\_obj’ has no member named ‘memory’  
407 | machine-\>numa.nodes[0].memory = hwlocMachine-\>memory.total\_memory;  
| ^ ~~~~~  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp: In function ‘void gmx::{anonymous}::parseHwLoc(gmx::HardwareTopology::Machine\*, gmx::HardwareTopology::SupportLevel\*, bool\*)’:  
/home/nabi/simulations/gromacs-2018/src/gromacs/hardware/hardwaretopology.cpp:507:36: error: ‘HWLOC\_TOPOLOGY\_FLAG\_IO\_DEVICES’ was not declared in this scope; did you mean ‘HWLOC\_TOPOLOGY\_FLAG\_IS\_THISSYSTEM’?  
507 | hwloc\_topology\_set\_flags(topo, HWLOC\_TOPOLOGY\_FLAG\_IO\_DEVICES);  
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
| HWLOC\_TOPOLOGY\_FLAG\_IS\_THISSYSTEM  
make[2]: \*\*\* [src/gromacs/CMakeFiles/libgromacs.dir/build.make:10782: src/gromacs/CMakeFiles/libgromacs.dir/hardware/hardwaretopology.cpp.o] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:3636: src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2  
make: \*\*\* [Makefile:163: all] Error 2  
getting error
