[xcrysden] error when compiling the last release

Tone Kokalj tone.kokalj at ijs.si
Tue May 24 17:17:11 CEST 2011


On Fri, 2011-05-20 at 23:40 +0800, xiaoxiong4685 wrote:
> Hello,
> I meet trouble while installing xcrysden 1.5.23. My system is ubuntu
> 10.10. My problem is :
> 
> home/xiaoxiong/Downloads/XCrySDen-1.5.23-src-all/external/include
> -I/usr/X11R6/include -c xcviewport.c
> In file included from xcviewport.c:21:
> /usr/include/GL/glu.h:231: error: expected ‘)’ before ‘*’ token
> /usr/include/GL/glu.h:271: error: expected ‘)’ before ‘*’ token
> /usr/include/GL/glu.h:354: error: expected ‘)’ before ‘*’ token

It's difficult to say what is wrong. See what is in the
file /usr/include/GL/glu.h at the specified lines. Sometimes, it happens
that the "-ansi" flag in CFLAGS of Make.sys is the source of problem.
Check if it's there in
your /home/xiaoxiong/Downloads/XCrySDen-1.5.23-src-all/Make.sys and
delete it.

If you will not succeed in compiling you may consider to download the
compiled version.

Regards, Tone
-- 
Anton Kokalj
J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia 
(tel: +386-1-477-3523 // fax:+386-1-477-3822)

Please, if possible, avoid sending me Word or PowerPoint attachments.
See:  http://www.gnu.org/philosophy/no-word-attachments.html



More information about the XCrySDen mailing list