[xcrysden] Does anyone have a functional Xcrysden on windows7/cygwin?

Gavin Abo gsabo at crimson.ua.edu
Fri Jul 25 15:55:10 CEST 2014


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

Note: xcrysden-1.5.53-cygwin.tar.gz only works with the 32 bit verison 
of Cygwin (setup-x86.exe) 
[http://www.democritos.it/pipermail/xcrysden/2014-May/001606.html].

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-tck (8.5.11.-1)
fftw3 (3.3.4-1)
libGL1 (10.2.4-1)
libGLU1 (9.0.0-1)
xorg-server (1.15.1-4)
bash (4.1.11-2)
bc (1.06.95-1)
coreutils (8.15-3)
gawk (4.1.1-1)
grep (2.16-1)
gzip (1.4-1)
ImageMagick (6.7.6.3-4)
less (458-1)
xinit (1.3.2-1)
gcc-fortran (4.8.3-2)

Additional packages likely needed to compile xcrysden:

make (4.0-2)
wget (1.15-1)
libX11-devel (1.6.2-1)
libGL-devel (10.2.4-1)
libGLU-devel (9.0.0-1)
libfftw3-devel (3.3.4-1)
libXmu-devel (1.1.2-1)
libQtOpenGL4-devel (4.8.6-1)
patch (2.7.1-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:\cygwin).

Clicked Windows button on the desktop, searched and clicked on XWin Server.

In the terminal that opened, 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 in the xcrysden system directory 
(C:\cygwin\xcrysden-1.5.60\system) and cygwin.patch in the xcrysden Tcl 
directory (C:\cygwin\xcrysden-1.5.60\Tcl).

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

cp /xcrysden-1.5.60/system/make.cygwin64 make.sys
patch -b /xcrysden-1.5.60/Tcl/cygwin.tcl /xcrysden-1.5.60/Tcl/cygwin.patch
make xcrysden
xcrysden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20140725/7887fde7/attachment.htm 
-------------- 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 
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$(TCL_VER).dll
TK_LIB       = -ltk$(TCL_VER)
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