[xcrysden] installation of xcrys prelease 1.6
Gabriele Sclauzero
sclauzer at sissa.it
Wed Mar 18 09:31:56 CET 2009
Jian-Xin Zhu wrote:
> 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.
> <http://www.xcrysden.org/download/xc-1.5.17-src-all.tar.gz>
> During the installation, I encountered the following difficulties:
I recently tried to do the same. Even if I successfully compiled xcrysden, later I could
not use it, since I had a problem with the X11 system. The same problem was reported before:
http://www.democritos.it/pipermail/xcrysden/2007-May/000375.html
and I suppose it has not been solved in the meantime.
So, instead of compiling the source, I suggest you to download the semistatic version of
the binaries (http://www.xcrysden.org/download/xc-1.5.17-macosx.tar.gz) and use that.
For me it works (although I haven't used it much so far), even if it gives a warning of
missing library at the beginning. I realized that an executable in the packege was linked
to g77 libraries, installed it, and now it works with no warnings.
The problem of your compile may be related to the fact that you're linking to Apple's GL.
If you really want to compile the source, you should install an external GL (e.g. from
MacPorts or Fink or install it yourself) and link to that (please have a look at
Make.macosx-x11.README in system/).
Then to make it work you may probably have to install another X11 server as well, since in
my case I could not make the compiled xcrysden run on Apple's X11.
HTH
GS
>
> 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 <mailto:jxzhu at lanl.gov>
> Email (backup): physjxzhu at gmail.com <mailto:physjxzhu at gmail.com>
> URL: http://theory.lanl.gov <http://theory.lanl.gov/>
> ################################
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> XCrySDen mailing list
> XCrySDen at democritos.it
> http://www.democritos.it/mailman/listinfo/xcrysden
--
o ------------------------------------------------ o
| Gabriele Sclauzero, PhD Student |
| c/o: SISSA & CNR-INFM Democritos, |
| via Beirut 2-4, 34014 Trieste (Italy) |
| email: sclauzer at sissa.it |
| phone: +39 040 3787 511 |
| skype: gurlonotturno |
o ------------------------------------------------ o
More information about the XCrySDen
mailing list