[xcrysden] Cannot compile xcrysden because of XVisualInfo error

X Y xy45388 at gmail.com
Wed May 3 22:55:52 CEST 2017


Hello,
when I compile I get stuck on the line with the  unknown type name
‘XVisualInfo’ error.
Because I have a windows 10 computer I compile inside the cygwin 32 bit
environment

I guess it has something to do with opengl. Last few days I installed
everything of x11, opengl and so on but this error keeps popping up. I like
to use xcrysden for exciting dft and exciting itself compiles fine. It is
the opengl, xwindows part of xcrysden that makes the installation
complicated. Has anybody seen this before or got a clue?

Kind regards,
Dave


....
xcFont.c:395:7: let op: ‘result’ is deprecated: use
Tcl_GetStringResult/Tcl_SetResult [-Wdeprecated-declarations]
       sprintf(interp->result, "error parsing dark font color, should be
{red green blue}, but got %s", dark_argv);
       ^
In file included from xcFont.c:37:0:
/usr/include/tcl.h:504:11: note: declared here
     char *result TCL_DEPRECATED_API("use
Tcl_GetStringResult/Tcl_SetResult");
           ^
In file included from xcFont.c:444:0:
togl_struct.h: Op bovenste niveau:
togl_struct.h:86:5: fout: unknown type name ‘XVisualInfo’
     XVisualInfo *VisInfo;       /* Visual info of the current */
     ^
make[2]: *** [Makefile.cygwin:16: xcFont.o] Fout 1
make[2]: Map '/home/Dave/xcrysden-1.5.60/C' wordt verlaten
make[1]: *** [Makefile:23: compile] Fout 2
make[1]: Map '/home/Dave/xcrysden-1.5.60/C' wordt verlaten
make: *** [Makefile:77: src-C] Fout 2

Dave at DESKTOP-9JQLKA3 ~/xcrysden-1.5.60




My make.sys file:
=================
#########################################################################
#
# System-dependent definitions CYGWIN.
#
# EDIT ACCORDING TO YOUR OWN NEEDS !!!
#
########################################################################

MAKE   = make
CYGWIN = -f Makefile.cygwin

#------------------------------------------------------------------------
# compilers & flags
#------------------------------------------------------------------------
CC          = cc -g
SHARED      = -shared
CFLAGS      = -O2
#-mno-cygwin
#-mcygwin

CPPFLAGS    = -DCYGWIN -DWIN32 -DUSE_FONTS -DNEAR_BUG -DUSE_INTERP_RESULT
LDLIB       =
MATH        =

FC          = g77 -O2
# -mcygwin
FFLAGS      =

#------------------------------------------------------------------------
# Libraries and include files
#------------------------------------------------------------------------
X_LIB       =
# -L/usr/X11R6/lib -lX11.dll
X_INCDIR    =


TCL_PREFIX   = /usr
TCL_VER      = 85
TCL_LIB      = -L$(TCL_PREFIX)/lib -ltcl$(TCL_VER) -ltclstub$(TCL_VER)
TK_LIB       = -ltk$(TCL_VER) -ltkstub$(TCL_VER)
GLU_LIB      = -lglu32
GL_LIB       = -lopengl32 -lgdi32
FFTW3_LIB    = -lfftw3
# this is only used for some testing purposes
#MESCHACH_LIB =

TCLTK_SRC   = /usr/src/tcltk-20080420-1
# on some machines this is needed: -I$(TCLTK_SRC)/tk/xlib
TCL_INCDIR      = -I$(TCLTK_SRC)/tcl/generic -DUSE_TCL_STUBS
TK_INCDIR       = -I$(TCLTK_SRC)/tk/generic  -I$(TCLTK_SRC)/tk/win/
-DUSE_TK_STUBS -I$(TCLTK_SRC)/tk/xlib
GL_INCDIR       = -I/usr/include/opengl
FFTW3_INCDIR    =
# this is only used for some testing purposes
#MESCHACH_INCDIR =

#------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20170503/16bc2d2c/attachment.htm 


More information about the XCrySDen mailing list