[gmx-users] Issue building template file for Gromacs 4.6-beta1

hubert santuz hubert.santuz at gmail.com
Thu Dec 6 10:58:29 CET 2012

Hi everyone,

First, here my system :
Ubuntu 12.04 64 bits
gcc : 4.6.3
cmake :  2.8.7
fftw : 3.3.3 including SSE 2

The building/compilation of gromacs itself is working.
But, when I try to compile the template file to create my own plugin, it 

First, I'm sourcing Gromacs.
The building part with cmake is fine :
[santuz]$ cmake ..
/GROMACS version 4.6.0 found//
//-- Configuring done//
//-- Generating done//
//-- Build files have been written to: 

But when I try the "make" part, it fails :
[santuz]$ make
/[100%] Building C object CMakeFiles/template.dir/template.c.o//
//In file included from 
//                 from 
//                 from 
//                 from 
fatal error: visibility.h : No file found//
//compilation aborted.//
//make[2]: *** [CMakeFiles/template.dir/template.c.o] Error 1//
//make[1]: *** [CMakeFiles/template.dir/all] Error 2//
//make: *** [all] Error 2/

Same problem when I try the other option : make -f Makefile.pkg

The thing is that "visibility.h" is located "include/gromacs/" so if you 
change the path in "ifunc.h", it works but it's not a solution.
Furthermore, when I compile Gromacs itself, it works perfectly.

So, I don't really know why it's failing for the template.


Equipe DSIMB
UMR-S 665, INSERM-Paris Diderot, INTS
6 rue Alexandre Cabanel 75015 Paris
Tel : 01 44 49 31 53

More information about the gromacs.org_gmx-users mailing list