[xcrysden] installation of xcrys prelease 1.6
Jian-Xin Zhu
jxzhu at lanl.gov
Wed Mar 18 18:43:33 CET 2009
Dear Gabriele and Tone,
Now that Apple's GL libraries do not work,
I tried to use the Mesa library included in the source version
XCrySDen-1.5.17-src-all.tar.
By running "make all", the following errors came out,
i686-apple-darwin9-gcc-4.0.1: /Users/jxzhu/XCrySDen-1.5.17-src-all/
external/lib/libGLU.dylib: No such file or directory
i686-apple-darwin9-gcc-4.0.1: /Users/jxzhu/XCrySDen-1.5.17-src-all/
external/lib/libGL.dylib: No such file or directory
make[2]: *** [xcrys] Error 1
make[1]: *** [compile] Error 2
make: *** [src-C] Error 2
I then looked into the subdirectory external/lib, and found
libGLU.dylib and libGL.dylib were indeed generated from the
compilation of Mesa. Interestingly, there was nothing related to
Mesa-7.2 inside external/lib. But I went into external/src/Mesa-7.2/
lib, these libraries were generated,
libGL.1.2.dylib* libGLU.1.3.dylib* libGLw.
1.0.dylib* libOSMesa.7.2.dylib*
libGL.1.dylib@ libGLU.1.dylib@ libGLw.
1.dylib@ libOSMesa.7.dylib@
libGL.dylib@ libGLU.dylib@
libGLw.dylib@ libOSMesa.dylib@
By noticing these, I changed into external/lib and made the symbolic
ln -sf ../src/Mesa-7.2/lib/libGLU.dylib libGLU.dylib
ln -sf ../src/Mesa-7.2/lib/libGL.dylib libGL.dylib
I then re-ran "make all" and this time it compiled through.
After running "./xcConfigure", I started the command "xcrysden". The
execution failed by displaying the following:
TCL_LIBRARY=/Users/jxzhu/XCrySDen-1.5.17-src-all/external/lib/tcl8.5
XCRYSDEN_TOPDIR=/Users/jxzhu/XCrySDen-1.5.17-src-all
XCRYSDEN_SCRATCH=/Users/jxzhu/xcrys_tmp
dyld: warning, DYLD_ setting caused circular dependency in /usr/X11/
lib/libGL.1.dylib
Running on platform: unix
Executing: /Users/jxzhu/XCrySDen-1.5.17-src-all/bin/ftnunit
/Users/jxzhu/XCrySDen-1.5.17-src-all/xcrysden: line 211: 29018 Bus
error ${XCRYSDEN_TOPDIR}/bin/xcrys ${XCRYSDEN_TOPDIR}/
Tcl/xcInit.tcl $USE -- $XCRYSDEN_TOPDIR $XCRYSDEN_SCRATCH $ARGS > /dev/
null
My immediate question: Why were libGLU.dylib and libGL.dylib from the
compilation of Mesa-7.2 not generated in the subdirectory external/lib
together with a mesa folder there?
The setting in Make.sys file is shown below:
#------------------------------------------------------------------------
# X-libraries & include files
#
# for STATIC compilation one should add: -lpthread
#------------------------------------------------------------------------
# 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
#-
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)
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
#------------------------------------------------------------------------
Thanks for the help.
Jian-Xin Zhu
On Mar 18, 2009, at 7:42 AM, Gabriele Sclauzero wrote:
> Dear Tone,
>
>>> If I correctly understood the meaning of that file, one could
>>> correctly compile if linking
>>> with GL libraries other than Apple ones and then run using Apple
>>> X11 server. The first
>>> step was successfull, but the second wasn't in my case.
>>> Do I need to install another X11 server (for instance macports
>>> one) in order to make it work?
>>
>>
>> As far as I know, Apple X11 sever should do. (I am keep using "as
>> far as
>> I know", because I am not a mac user, and my mac experience \approx
>> 0).
>
> I'm a new macuser, so my macexperience is \epsilon, \epsilon \to 0
>
>>
>> Did the precompiled version work on Apple X11 server? If yes, then
>> you
>> have the answer.
>
> The precompiled works with Apple X11, and it points to Apple's X11
> dynamic libraries. My
> compiled version however points to the X11 libraries I used to
> compile. Maybe that's the
> source of trouble.
> Anyway, it seems that the program stops when executing ftnunit. What
> does this piece of
> sotware do? It may be that the issue comes from fortran libraries,
> rather than GL.
> In fact even if the precompiled version works, it gives a warning of
> missing library
> (libg2c, which is part of g77), which I solved by installing g77. To
> compile my version I
> used gfortran instead, so that this ftnunit links to the gfortran
> library now (but doesn't
> work...).
>
> GS
>
>
>
>>
>> Regards, Tone
>
> --
>
>
> 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
> _______________________________________________
> XCrySDen mailing list
> XCrySDen at democritos.it
> http://www.democritos.it/mailman/listinfo/xcrysden
--
################################
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/20090318/f7c1f04e/attachment-0001.htm
More information about the XCrySDen
mailing list