• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Awk/H29-Oct-2019-7960

C/H29-Oct-2019-53,01936,778

F/H29-Oct-2019-11,1697,347

Tcl/H29-Oct-2019-51,69634,575

contrib/H29-Oct-2019-6333

docs/H29-Oct-2019-586437

examples/H29-Oct-2019-18,01614,530

external/H03-May-2022-86

images/H03-May-2022-212200

otherLICENSES/H29-Oct-2019-842666

scripts/H29-Oct-2019-3,3202,221

sys_utils/H29-Oct-2019-155106

system/H29-Oct-2019-921735

tests/H29-Oct-2019-1,3591,015

util/H29-Oct-2019-16277

AUTHORSH A D03-Feb-2012310 159

COPYINGH A D03-Feb-201217.6 KiB341281

COPYRIGHTH A D17-Feb-2012957 1815

ChangeLogH A D27-Aug-201939.6 KiB936769

Make.sysH A D03-May-20222 KiB6551

MakefileH A D03-May-20229.4 KiB337230

NEWSH A D28-Oct-20196.8 KiB200131

READMEH A D08-Aug-20196.9 KiB198132

README.cygwinH A D28-Oct-2019979 3928

THANKSH A D20-Jul-20191.6 KiB6345

make-usageH A D07-Aug-20192.7 KiB9162

make.includeH A D07-Aug-20191.7 KiB6945

usageH A D16-Aug-20195.9 KiB146108

versionH A D25-Oct-20195 11

xcrysdenH A D29-Oct-20198.9 KiB336240

xcrysden.batH A D03-Feb-2012325 107

README

1________________________________________________________________________
2
3        * * * README & INSTALL file for XCRYSDEN * * *
4________________________________________________________________________
5
6
7XCrySDen web site is http://www.xcrysden.org/. The code can be
8downloaded either as source or compiled package.
9
10The pre-compiled package is available in two flavors for GNU/Linux,
11named as shared and semishared. Both packages use dynamic
12(i.e. shared) libraries, the difference being that the semishared
13package has several needed shared libraries included within itself
14(i.e. Tcl/Tk, Togl, Mesa, Glu. and FFTW), thus hopefully diminishing
15the software requirements.
16
17XCRYSDEN may be included in several OS distributions, hence you may
18first check if it exists for your distribution. If it does then it is
19recommended to use it (e.g. on GNU/Linux Debian based system you can
20install xcrysden as: sudo apt install xcrysden). If xcrysden is not
21available for your distribution, then read below instructions how to
22compile the source package.
23
24
25
26________________________________________________________________________
27
28INSTALLATION INSTRUCTIONS
29________________________________________________________________________
30
31   1. Installing the compiled package
32   2. User customization
33   3. Compiling the source package
34
35
36________________________________________________________________________
37
381.) HOW TO INSTALL THE COMPILED PACKAGE
39________________________________________________________________________
40
41
42The compiled package does not require the compilation, hence its
43installation is fairly simple.
44
45--
46FOR IMPATIENT: minimal installation instructions
47--
48
49   1. unpack the xc-VERSION.tar.gz package file
50         e.g., as: tar zxvf xc-VERSION.tar.gz
51               or: gunzip -c xc-VERSION.tar.gz | tar xvf -
52
53   2. cd into the so-created directory (i.e., cd xcrysden-VERSION/)
54
55   3. launch the program as "./xcrysden"
56
57Starting from XCrySDen-1.5, the use of XCRYSDEN_TOPDIR environmental
58variable is deprecated, because it was a source of confusion for many
59users. Consider to unset it in case it was defined during the
60installation of previous versions.
61
62Optionally, XCRYSDEN_SCRATCH environmental variable can be defined.
63It is the place where XCrySDen writes scratch (temporary) files. If
64the variable is not defined the /tmp/ directory will be used.
65
66BEWARE: If an older XCrySDen version is already installed and
67XCRYSDEN_TOPDIR variable defined then you need to manually unset (or
68update) the XCRYSDEN_TOPDIR variable definition in your profile !!!
69
70
71________________________________________________________________________
72
732.) USER CUSTOMIZATION
74________________________________________________________________________
75
76
77XCrySDen can be user-customized manually. For this reason create
78$HOME/.xcrysden/ directory and copy the "Tcl/custom-definitions" and
79optionally "Tcl/Xcrysden_resources" there (the Tcl/ is a subdirectory
80in the XCrySDen root directory). These can be then modified according
81to user preference.
82
83Starting from XCrySDen-1.5, the use of './xcConfigure' is deprecated
84(it has caused more problems than advantages).
85
86For more info about customization, see: http://www.xcrysden.org/doc/custom.html
87
88
89________________________________________________________________________
90
913.) HOW TO COMPILE THE SOURCE PACKAGE
92________________________________________________________________________
93
94
953.1 SOFTWARE REQUIREMENTS:
96
97XCrySDen depends on several libraries, in particular:
98	 - Tcl/Tk
99	 - OpenGL (e.g., Mesa and Glu)
100         - Togl (2.0 or later)
101	 - FFTW3
102	 - BWidget
103
104The compilation of XCrySDen requires the development versions of these
105and other libraries (see system/README), because not only the library
106files, but also their header files are required.  To aid at easier
107compilation, these libraries will be automatically downloaded from the
108web if so instructed (see below). Alternatively, these can be download
109from:
110
111Tcl/Tk:   http://prdownloads.sourceforge.net/tcl/
112Mesa:     ftp://ftp.freedesktop.org/pub/mesa/
113Togl:     https://sourceforge.net/projects/togl/files/Togl/2.0/
114FFTW:     http://www.fftw.org/download.html
115BWidget:  http://sourceforge.net/projects/tcllib/files/BWidget/
116
117In addition to these libraries, also the X11 libraries are needed for
118compilation.
119
120[ NOTICE: during the compilation the required BWidget package (small
121size) will be always automatically donwloaded from:
122http://sourceforge.net/projects/tcllib/files/BWidget/ ]
123
124
1253.2 COMPILATION:
126
127First read the system/README file. It is the easiest to compile the
128shared version of xcrysden (because it is more easy to install
129software dependencies with a package manager system, such as apt or
130dnf, then to compile needed libraries from sources).
131
132To compile XCrySDen sources the "Make.sys" file must exist in the
133package root directory. Templates can be find in system/
134sub-directory. Copy an appropriate template file as, e.g.:
135
136	$ cp ./system/Make.sys-shared Make.sys
137
138and edit the "Make.sys" to suit your needs.
139
140If you want the compilation to automatically download and compile the
141external library sources (Tcl/Tk, Mesa, Togl, FFTW) define
142"COMPILE_ALL = yes" (see system/Make.sys-semishared for more details).
143
144Then compile as:
145
146        $ make all
147
148If everything went well and compilation was fully successful, you have
149a usable xcrysden. Try: ./xcrysden; if it works that's it.
150
151To make xcrysden loadable from a terminal, you can create an alias
152(e.g. alias xcrysden=$XCRYSDEN_TOPDIR/xcrysden) or make a symbolic
153link so that xcrysden will be on your PATH
154(e.g. ln -s $XCRYSDEN_TOPDIR/xcrysden /usr/local/bin), where
155$XCRYSDEN_TOPDIR is the root directory of xcrysden.
156
157
1583.3 INSTALLING SYSTEM WIDE (shared flavor only):
159
160XCrySDen (shared-flavor of compilation only) can be installed
161system-wide as:
162
163	$ make install
164
165By default this will install the package into /usr/local/. The
166installation directory can be changed by invoking "make install" as:
167
168        $ prefix=/MY/INSTALLATION/DIR  make install
169
170where /MY/INSTALLATION/DIR stands for installation directory. This will
171install the package into ($prefix/bin/xcrysden, $prefix/lib/xcrysden/,
172$prefix/share/xcrysden/).
173
174
1753.4 TROUBLE SHOOTING:
176
177If the installation has failed for some reason then read the printed
178error message.
179
180Also read carefully the instructions inside the "Make.sys" and edit
181the file according to your needs.
182
183The most often cause of failure is that either some header files were
184not found or that there are some missing references, which means that
185the code will have to be linked against additional libraries.
186
187If the failure appeared in compilation of external library, then try
188to compile this library manually, i.e., do "cd external/src/LIB",
189where LIB is the corresponding library directory, and read the
190installation instructions therein.
191
192In case of unsolvable problems, first google for help and only then
193ask for help on XCrySDen mailing list (xcrysden@democritos.it,
194http://www.democritos.it/mailman/listinfo/xcrysden).
195
196
197--
198Anton Kokalj (tone.kokalj@ijs.si), Thu Aug 8 2019

README.cygwin

1________________________________________________________________________
2
3        * * * README for running XCRYSDEN under CYGWIN * * *
4________________________________________________________________________
5
6
71. SOFTWARE REQUIREMENTS
8
9To run XCrySDen (pre-compiled) package under CYGWIN you will need the
10following cygwin packages:
11
12	  * tcl-tk
13          * tcl-togl
14	  * fftw3
15	  * libGL1
16	  * libGLU1
17	  * xorg-server
18	  * bash
19	  * bc
20	  * coreutils
21	  * gawk
22	  * grep
23	  * gzip
24	  * ImageMagick
25          * openbabel
26	  * less
27	  * util-linux
28
29BEWARE: the cygwin version of xcrysden requires running X-server !
30                                                ^^^^^^^^^^^^^^^^
31
32A very convenient tool for installing cygwin packages is apt-cyg
33(https://github.com/transcode-open/apt-cyg). Using "apt-cyg" the above
34packages can be installed as:
35
36apt-cyg install tcl-tk fftw3 libGL1 libGLU1 xorg-server bash bc coreutils gawk grep gzip less util-linux ImageMagick openbabel
37
38
39