[xcrysden] installation of xcrys prelease 1.6
Jian-Xin Zhu
jxzhu at lanl.gov
Tue Mar 17 17:30:47 CET 2009
Dear Prof. Kokalj and Xcrys Users,
1. I downloaded the xc-1.5.17-src-all.tar.gz, and tried to install on
Mac Intel with leopard 10.5.
During the installation, I encountered the following difficulties:
cd C; make "TOPDIR=/Users/jxzhu/XCrySDen" compile
make TOPDIR=/Users/jxzhu/XCrySDen
gcc -ansi -fwritable-strings -funroll-loops -fPIC -DUSE_FONTS -
dynamic -DMAC_OSX detnsplit.o xcAppInit.o xcballstick.o xcviewport.o
xcLabels.o vectors.o xcDisplayFunc2.o xcAtomAdd.o loadValues.o
hpsort.o auxilproc.o xcdebug.o 3D.o xcDisplayFunc.o readstrf.o
mxmymz.o remakestr.o xcSelect.o readisodata.o lighting.o xcGLparam.o
colorplane.o isorender.o polygonise.o polygonise_auxil.o xcIsoSurf.o
voronoi.o xcBz.o xcSuperCell.o xcPrimitives.o setOpenGLState.o
memory.o isoMalloc.o isoInterpolate.o readPlvertex.o splineInt.o
paraSize.o isoline.o xcIsoSpaceSel.o cells.o xcWigner.o xcTogl.o
datagrid.o sInfo.o xcIsoDataGrid.o xcColorScheme.o xcReadXSF.o
xcF3toI4.o xcFractCoor.o signal.o MarchCubes.o isosurf.o xcMolSurf.o
cryNewContext.o fs.o cryDispFunc.o cryDispFuncMultiFS.o crySetProj.o
crySurfArgs.o crySurf.o cryTransform.o cryClip.o cryTogl.o forces.o
xcForces.o gl2psPrintTogl.o ppmPrintTogl.o lcasi.o lcasif.o xcFont.o
fog.o writeXSF.o hbonds.o xcHBonds.o linear.o realTimeMovie.o togl.o
gl2ps.o sgiRasterFont.o sgiAux.o \
-o xcrys /Users/jxzhu/XCrySDen/external/lib/libtk8.5.dylib /
Users/jxzhu/XCrySDen/external/lib/libtcl8.5.dylib -L/usr/X11R6/lib -
lGLU -L/usr/X11R6/lib -lGL -L/usr/X11R6/lib -lXmu -lX11 -lXext -lm
ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status
make[2]: *** [xcrys] Error 1
make[1]: *** [compile] Error 2
make: *** [src-C] Error 2
I checked to see that libGL.dylib and libGLU.dylib are in /usr/X11R6/
lib.
The setting in Make.sys is as follows:
#------------------------------------------------------------------------
# if you have a GNU make it is better to set the MAKE variable to point
# to gnu make
#------------------------------------------------------------------------
MAKE = make
#------------------------------------------------------------------------
# compilers & flags
#------------------------------------------------------------------------
CFLAGS = -ansi -fwritable-strings -funroll-loops -fPIC -DUSE_FONTS -
dynamic -DMAC_OSX
CC = gcc
#LDLIB = -ldl
MATH = -lm
FFLAGS = -O
FC = ifort
# NOTE: Use the XDarwin server instead of Apple's Xserver
DARWIN_X11_PREFIX = /usr/X11R6
X_LIB = -L$(DARWIN_X11_PREFIX)/lib -lXmu -lX11 -lXext
X_INCDIR = -I$(DARWIN_X11_PREFIX)/include
###
### or THAT:
###
#-
Possibility-2-----------------------------------------------------------
#
# XCRYSDEN package may contain the tcl, tk & Mesa sources !!!
# If you would like to compile and use these then uncomment below
lines and
# comment lines "Possibility-1" (see above).
#
#------------------------------------------------------------------------
COMPILE_TCLTK = yes
#COMPILE_MESA = yes
#
# #
# # Do we want a shared library version of Tcl/Tk/Mesa or static?
# # If we want shared then set the following flags to: --enable-shared
# # else set the following flag to: --disable-shared
# #
TCLTK_OPTIONS = --enable-shared
#MESA_TARGET = darwin
#
# #
# # Libraries (dynamic loading)
# # for shared linking the libraries postfix should be .dylib
# # for static linking the libraries postfix should be .a
# #
#
# # Uncomment CoreFoundations for static linking
# #CoreFoundation=/System/Library/Frameworks/CoreFoundation.framework/
Versions/A/CoreFoundation
# TCL_LIB = $(TOPDIR)/external/lib/libtcl$(TCL_VER2).dylib $
(CoreFoundation)
TCL_LIB = $(TOPDIR)/external/lib/libtcl$(TCL_VER2).dylib
TK_LIB = $(TOPDIR)/external/lib/libtk$(TCL_VER2).dylib
#
# # use this for Darwin OpenGL:
GLU_LIB = -L$(DARWIN_X11_PREFIX)/lib -lGLU
GL_LIB = -L$(DARWIN_X11_PREFIX)/lib -lGL
# # use this for Mesa (much slower than Darwin OpenGL):
# #GLU_LIB = $(TOPDIR)/external/lib/libGLU.dylib
# #GL_LIB = $(TOPDIR)/external/lib/libGL.dylib
#
# #
# # Include directories
# #
TCL_INCDIR = -I$(TOPDIR)/external/src/tcl$(TCL_VER3)/generic
TK_INCDIR = -I$(TOPDIR)/external/src/tk$(TCL_VER3)/generic
# # use this for Darwin OpenGL:
GL_INCDIR = -I$(DARWIN_X11_PREFIX)/include
# # use this for Mesa:
# #GL_INCDIR = -I$(TOPDIR)/external/include
Your help is appreciated.
Jian-Xin Zhu
--
################################
Jian-Xin Zhu, Ph.D
Theoretical Division, MS B262
Los Alamos National Laboratory
Los Alamos, New Mexico 87545
Phone: (505) 667 2363
Fax: (505) 665 4063
Email (main): jxzhu at lanl.gov
Email (backup): physjxzhu at gmail.com
URL: http://theory.lanl.gov
################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20090317/909f78ca/attachment.htm
More information about the XCrySDen
mailing list