[xcrysden] Cannot compile xcrysden because of XVisualInfo error

X Y xy45388 at gmail.com
Sun May 14 23:43:55 CEST 2017


Dear Matic,
Thanks. I got further. Still there are two errors left.
I get now:


cc -g  -O2 -DCYGWIN -DUSE_FONTS -DNEAR_BUG -DUSE_INTERP_RESULT
-DUSE_FONTS   -I~/tcl/unix -I~/tcl/generic -DUSE_TCL_STUBS -I~/tk/unix
-I~/tk/generic  -I~/tk/win/ -DUSE_TK_STUBS -I~/tk/xlib -I/usr/include
-I/usr/X11R6/include  -c sgiAux.c
cc -g   -O2 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
getline.o gridNormals.o fft3d.o fft_util.o shank3d.o shank_Hinv.o
shank_util.o togl.o gl2ps.o sgiRasterFont.o sgiAux.o \
-o xcrys -lfftw3  -ltk8.5 -ltkstub8.5 -L~/tcl/unix -ltcl8.5 -ltclstub8.5
-lglut -lGLU  -lGL  -L/usr/X11R6/lib -lXmu -lXi -lXext -lX11
/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot
find -ltk8.5
/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot
find -ltcl8.5
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:31: xcrys] Error 1
make[2]: Leaving directory '/home/Dave/xcrysden-1.5.60/C'
make[1]: *** [Makefile:23: compile] Error 2
make[1]: Leaving directory '/home/Dave/xcrysden-1.5.60/C'
make: *** [Makefile:77: src-C] Error 2

Dave at DESKTOP-9JQLKA3 ~/xcrysden-1.5.60



I think it is because I don't have libtcl8.5.a and libtk8.5.a. I searched
the whole subtree of cygwin for them.
Strangely enough, I do have the stub files libtclstub8.5.a and
libtkstub8.5.a
And I don't have errors with installing tcl and tk.


Kind regards,
Dave




My Make.sys is:

#########################################################################
#
# 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 -DUSE_INTERP_RESULT
LDLIB       =
MATH        =


FC          = g77 -O2
# -mcygwin
FFLAGS      =

#------------------------------------------------------------------------
# Libraries and include files
#------------------------------------------------------------------------
X_LIB       = -L/usr/X11R6/lib -lXmu -lXi -lXext -lX11
X_INCDIR    = -I/usr/X11R6/include


TCL_PREFIX   = ~/tcl
TCL_VER      = 8.5
TCL_LIB      = -L$(TCL_PREFIX)/unix -ltcl$(TCL_VER) -ltclstub$(TCL_VER)
TK_LIB       = -ltk$(TCL_VER) -ltkstub$(TCL_VER)
GLU_LIB      =  -lglut -lGLU
GL_LIB       = -lGL
FFTW3_LIB    = -lfftw3
# this is only used for some testing purposes
#MESCHACH_LIB =

TCLTK_SRC   = ~
# on some machines this is needed: -I$(TCLTK_SRC)/tk/xlib
TCL_INCDIR      = -I$(TCLTK_SRC)/tcl/unix -I$(TCLTK_SRC)/tcl/generic
-DUSE_TCL_STUBS
TK_INCDIR       = -I$(TCLTK_SRC)/tk/unix -I$(TCLTK_SRC)/tk/generic
-I$(TCLTK_SRC)/tk/win/ -DUSE_TK_STUBS -I$(TCLTK_SRC)/tk/xlib
GL_INCDIR       = -I/usr/include
FFTW3_INCDIR    =
# this is only used for some testing purposes
#MESCHACH_INCDIR =

#------------------------------------------------------------------------









2017-05-09 10:20 GMT+02:00 Matic Poberznik <matic.poberznik at gmail.com>:

> Dear Dave,
>
> > But it gave me a big hint that TCL_VER      = 85
> > might be wrong too.
> > Then I tried to change TCL_VER into 8.5, 8.5.19, 8.4
> > TCL_VER      = 8.6 finally did something but gave other errors
>
> The correct version of tcl (TCL_VER) should definitely be 8.5
>
> >
> > TCL_PREFIX   = /usr
> > TCL_VER      = 8.6
> > TCL_LIB      = -L$(TCL_PREFIX)/lib -ltcl$(TCL_VER) -ltclstub$(TCL_VER)
> > TK_LIB       = -ltk$(TCL_VER) -ltkstub$(TCL_VER)
> > GLU_LIB      = -lglu32
> > GL_LIB       = -lopengl32 -lgdi32
> > FFTW3_LIB    = -lfftw3
> > # this is only used for some testing purposes
> > #MESCHACH_LIB =
>
> The error probably occurs because the compiler doesn't find your tcl
> libraries. The TCL_LIB variable should point to where the libraries are
> located in your system.
>
> ... -L/path/to/tcl-lib/lib -ltcl8.5 ...
>
>
> best regards,
>
> Matic Poberznik
> --
> Matic Poberznik
> J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia
> _______________________________________________
> XCrySDen mailing list
> XCrySDen at democritos.it
> http://www.democritos.it/mailman/listinfo/xcrysden
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20170514/c5624ef7/attachment.htm 


More information about the XCrySDen mailing list