[xcrysden] Cannot compile xcrysden because of XVisualInfo error

Gavin Abo gsabo at crimson.ua.edu
Mon May 15 08:02:29 CEST 2017


If it helps, I'm running Windows 10 Home, and the following seems to 
work at least for me.

Compiling xcrysden on 64 bit Windows
------------------------------------

Downloaded the 64 bit version of Cygwin (setup-x86_64.exe) from:

http://cygwin.com/

Ran setup-x86_64.exe and installed the following packages.

Packages likely needed to run xcrysden:
tcl (8.5.18-1)
tcl-devel (8.5.18-1)
tcl-tk (8.5.18-1)
tcl-tk-devel (8.5.18-1)
fftw3 (3.3.6-pl1-1)
libGL1 (17-0.6-1)
libGLU1 (9.0.0-1)
xorg-server (1.19.2-1)
bash (4.4.12-3)
bc (1.06.95-2)
coreutils (8.26-2)
gawk (4.1.4-3)
grep (3.0-2)
gzip (1.8-1)
ImageMagick (6.9.5.7-2)
less (487-1)
xinit (1.3.4-14)
gcc-fortran (5.4.0-1)
wget (1.19-1)

Additional packages likely needed to compile xcrysden:
make (4.2.1-2)
libX11-devel (1.6.4-1)
libGL-devel (17.0.6-1)
libGLU-devel (9.0.0-1)
libfftw3-devel (3.3.6-pl1-1)
libXmu-devel (1.1.2-1)
libQtOpenGL4-devel (4.8.7-4)
patch (2.7.4-1)

Downloaded xcrysden source package (xcrysden-1.5.60.tar.gz) from:

http://www.xcrysden.org/Download.html

Placed xcrysden-1.5.60.tar.gz in Cygwin installation directory 
(C:\cygwin64).

Clicked on search button on the desktop, searched and clicked on 
"Cygwin64 Terminal".

In the terminal that opened, entered the command:

startxwin &

In the system tray, right-clicked on the Cygwin icon and opened an XTerm 
(like that shown in '2.' at 
https://wellingtongoncalves.wordpress.com/2016/08/10/running-a-linux-application-using-cygwinx/ 
)

In the Xterm window, entered the following commands:

cd /
tar xvf xcrysden-1.5.60.tar.gz
cd xcrysden-1.5.60
chmod +x xcrysden
echo 'export PATH=$PATH:/xcrysden-1.5.60' >> ~/.bashrc
source ~/.bashrc

Placed the attached Make.cygwin64_win10 in the xcrysden system directory
(C:\cygwin64\xcrysden-1.5.60\system) and cygwin.patch in the xcrysden Tcl
directory (C:\cygwin64\xcrysden-1.5.60\Tcl).

Then, in the same terminal, entered the following commands:

cp /xcrysden-1.5.60/system/Make.cygwin64_win10 Make.sys
patch -b /xcrysden-1.5.60/Tcl/cygwin.tcl /xcrysden-1.5.60/Tcl/cygwin.patch
make xcrysden
xcrysden

References
[1] http://www.democritos.it/pipermail/xcrysden/2014-July/001635.html
[2] http://www.democritos.it/pipermail/xcrysden/2013-November/001490.html
-------------- next part --------------
38c38
<     rename exec _tcl_exec
---
>     #rename exec _tcl_exec
-------------- next part --------------
#########################################################################
#
# 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 -DUSE_FONTS -DNEAR_BUG -DUSE_INTERP_RESULT
LDLIB       = 
MATH        =

FC          = gfortran -O2
# -mcygwin
FFLAGS      =

#------------------------------------------------------------------------
# Libraries and include files
#------------------------------------------------------------------------
FFTW3_LIB    = -L/lib -lfftw3.dll
X_LIB       = -L/lib -lX11.dll -lXmu $(FFTW3_LIB)
# -L/usr/X11R6/lib -lX11.dll
X_INCDIR    =


TCL_PREFIX   = /lib
TCL_VER      = 8.5
TCL_LIB      = -L$(TCL_PREFIX) -ltcl
TK_LIB       = -ltk
GLU_LIB      = -lGLU.dll #-lglu32
GL_LIB       = -lGL #-lopengl32 -lgdi32 

# this is only used for some testing purposes
#MESCHACH_LIB = 

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


More information about the XCrySDen mailing list