[lammps-users] Compiling xmovie

Hello,

I am a new user of Lammps and am trying to visualize the crack example provided with the package. I understand that there are several ways of doing this although using xmovie seems to be the easiest route. I also understand that I must modify the Makefile so that it points to the proper X11… directory on my system. This directory is the same as is provided in the original makefile. When I attempt to compile however I get a long list of errors and warnings. Can somebody suggest a fix to my problem.

Also, if I want to use the tool ch2lmp to obtain a pdb file for use in VMD for the same crack example, it identifies that there is no crack data file. How would I obtain this file as one was not created when I ran the simulation.

Thanks in advance

Mr. Wernik

Hi.

Could you please mail the errors printed onto the screen? That may
help in suggesting a fix ..

Best Regards,
Manoj

2008/6/19 jake wernik <[email protected]...>:

Here is a portion of the list of errors as there are a
lot. Some of the initial errors may have been cutoff
by the display limit of the terminal screen.

The beginning:

resource.h:234: error: (near initialization for
`FallbackResources')
resource.h:235: error: excess elements in char array
initializer
resource.h:235: error: (near initialization for
`FallbackResources')
resource.h:238: error: excess elements in char array
initializer
resource.h:238: error: (near initialization for
`FallbackResources')
resource.h:239: error: excess elements in char array
initializer
resource.h:239: error: (near initialization for
`FallbackResources')
resource.h:240: error: excess elements in char array
initializer
resource.h:240: error: (near initialization for
`FallbackResources')
resource.h:241: error: excess elements in char array
initializer
resource.h:241: error: (near initialization for
`FallbackResources')
resource.h:243: error: excess elements in struct
initializer
resource.h:243: error: (near initialization for
`FallbackResources')
resource.h:244: error: invalid initializer
resource.h:244: warning: data definition has no type
or storage class
xmovie.c:33: error: parse error before "Common"
xmovie.c:33: warning: type defaults to `int' in
declaration of `Common'
xmovie.c:34: warning: initialization makes integer
from pointer without a cast
xmovie.c:35: warning: excess elements in scalar
initializer
xmovie.c:35: warning: (near initialization for
`Common')
xmovie.c:36: error: `FALSE' undeclared here (not in a
function)
xmovie.c:36: warning: excess elements in scalar
initializer
xmovie.c:36: warning: (near initialization for
`Common')
xmovie.c:37: error: `FALSE' undeclared here (not in a
function)

The end:

xmovie.c:141: warning: data definition has no type or
storage class
xmovie.c: In function `main':
xmovie.c:145: error: `XtAppContext' undeclared (first
use in this function)
xmovie.c:145: error: (Each undeclared identifier is
reported only once
xmovie.c:145: error: for each function it appears in.)
xmovie.c:145: error: parse error before "AppContext"
xmovie.c:151: warning: implicit declaration of
function `XtAppInitialize'
xmovie.c:151: error: `AppContext' undeclared (first
use in this function)
xmovie.c:152: warning: implicit declaration of
function `XtNumber'
xmovie.c:153: error: `ZERO' undeclared (first use in
this function)
xmovie.c:155: warning: implicit declaration of
function `XtVaGetApplicationResources'
xmovie.c:155: error: `XtPointer' undeclared (first use
in this function)
xmovie.c:160: warning: implicit declaration of
function `XtAppAddActions'
xmovie.c:174: warning: implicit declaration of
function `XtRealizeWidget'
xmovie.c:178: warning: implicit declaration of
function `XtAppAddWorkProc'
xmovie.c:181: error: request for member `init' in
something not a structure or union
xmovie.c:185: warning: implicit declaration of
function `XtAppMainLoop'
xmovie.c: In function `CheckResources':
xmovie.c:261: error: request for member `version' in
something not a structure or union
xmovie.c:263: error: request for member `natomcolors'
in something not a structure or union
xmovie.c:263: error: request for member `natomcolors'
in something not a structure or union
xmovie.c:264: error: request for member `natomcolors'
in something not a structure or union
xmovie.c:266: error: request for member `nbondcolors'
in something not a structure or union
xmovie.c:266: error: request for member `nbondcolors'
in something not a structure or union
xmovie.c:267: error: request for member `nbondcolors'
in something not a structure or union
xmovie.c:269: error: request for member `opaque' in
something not a structure or union
xmovie.c:269: error: request for member `hollow' in
something not a structure or union
xmovie.c:269: error: `TRUE' undeclared (first use in
this function)
xmovie.c:271: error: request for member
`atoms_visible' in something not a structure or union
xmovie.c:272: error: `Bool' undeclared (first use in
this function)
xmovie.c:272: error: parse error before ')' token
xmovie.c:274: error: request for member `diameter' in
something not a structure or union
xmovie.c:275: error: `Dimension' undeclared (first use
in this function)
xmovie.c:275: error: parse error before ')' token
xmovie.c:277: error: request for member
`bonds_visible' in something not a structure or union
xmovie.c:278: error: parse error before ')' token
make: *** [xmovie.o] Error 1

Thank you

The latter errors indicate that your Xtlib include files are not
detected -> Recheck PATHs and see
if all the libraries linked to are present.

The "initial errors cutoff by the display limit of the terminal
screen" might help in finding what else is not detected and which
libraries are not linked to. In principle you can redirect the screen
output to a file and post the file as an attachment.

Regards,
Manoj

2008/6/19 jake wernik <[email protected]...>: