<div dir="ltr"><div><div>Dear Matic,<br></div><div>Thanks. I got further. Still there are two errors left.<br></div>I get now:<br><br><br>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<br>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 \<br>-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<br>/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -ltk8.5<br>/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -ltcl8.5<br>collect2: error: ld returned 1 exit status<br>make[2]: *** [Makefile:31: xcrys] Error 1<br>make[2]: Leaving directory '/home/Dave/xcrysden-1.5.60/C'<br>make[1]: *** [Makefile:23: compile] Error 2<br>make[1]: Leaving directory '/home/Dave/xcrysden-1.5.60/C'<br>make: *** [Makefile:77: src-C] Error 2<br><br>Dave@DESKTOP-9JQLKA3 ~/xcrysden-1.5.60<br><br><br><br></div><div>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.<br></div><div>Strangely enough, I do have the stub files libtclstub8.5.a and libtkstub8.5.a<br></div><div>And I don't have errors with installing tcl and tk.<br><br></div><div><br></div><div>Kind regards,<br></div><div>Dave<br></div><div><br><br><br><br></div>My Make.sys is:<br><br>#########################################################################<br>#<br># System-dependent definitions CYGWIN.<br>#<br># EDIT ACCORDING TO YOUR OWN NEEDS !!!<br>#<br>########################################################################<br><br>MAKE = make <br>#CYGWIN = -f Makefile.cygwin<br><br>#------------------------------------------------------------------------<br># compilers & flags<br>#------------------------------------------------------------------------<br>CC = cc -g <br>SHARED = -shared<br>CFLAGS = -O2<br>#-mno-cygwin<br>#-mcygwin <br><br>CPPFLAGS = -DCYGWIN -DUSE_FONTS -DNEAR_BUG -DUSE_INTERP_RESULT<br>LDLIB = <br>MATH =<br><br><br>FC = g77 -O2<br># -mcygwin<br>FFLAGS = <br><br>#------------------------------------------------------------------------<br># Libraries and include files<br>#------------------------------------------------------------------------<br>X_LIB = -L/usr/X11R6/lib -lXmu -lXi -lXext -lX11<br>X_INCDIR = -I/usr/X11R6/include<br><br><br>TCL_PREFIX = ~/tcl<br>TCL_VER = 8.5<br>TCL_LIB = -L$(TCL_PREFIX)/unix -ltcl$(TCL_VER) -ltclstub$(TCL_VER) <br>TK_LIB = -ltk$(TCL_VER) -ltkstub$(TCL_VER)<br>GLU_LIB = -lglut -lGLU <br>GL_LIB = -lGL <br>FFTW3_LIB = -lfftw3<br># this is only used for some testing purposes<br>#MESCHACH_LIB = <br><br>TCLTK_SRC = ~<br># on some machines this is needed: -I$(TCLTK_SRC)/tk/xlib<br>TCL_INCDIR = -I$(TCLTK_SRC)/tcl/unix -I$(TCLTK_SRC)/tcl/generic -DUSE_TCL_STUBS<br>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<br>GL_INCDIR = -I/usr/include<br>FFTW3_INCDIR =<br># this is only used for some testing purposes<br>#MESCHACH_INCDIR =<br><br>#------------------------------------------------------------------------<br><div><br><br><br><br><br><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-09 10:20 GMT+02:00 Matic Poberznik <span dir="ltr"><<a href="mailto:matic.poberznik@gmail.com" target="_blank">matic.poberznik@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Dave,<br>
<span class=""><br>
> But it gave me a big hint that TCL_VER = 85<br>
> might be wrong too.<br>
> Then I tried to change TCL_VER into 8.5, 8.5.19, 8.4<br>
> TCL_VER = 8.6 finally did something but gave other errors<br>
<br>
</span>The correct version of tcl (TCL_VER) should definitely be 8.5<br>
<span class=""><br>
><br>
> TCL_PREFIX = /usr<br>
> TCL_VER = 8.6<br>
> TCL_LIB = -L$(TCL_PREFIX)/lib -ltcl$(TCL_VER) -ltclstub$(TCL_VER)<br>
> TK_LIB = -ltk$(TCL_VER) -ltkstub$(TCL_VER)<br>
> GLU_LIB = -lglu32<br>
> GL_LIB = -lopengl32 -lgdi32<br>
> FFTW3_LIB = -lfftw3<br>
> # this is only used for some testing purposes<br>
> #MESCHACH_LIB =<br>
<br>
</span>The error probably occurs because the compiler doesn't find your tcl<br>
libraries. The TCL_LIB variable should point to where the libraries are<br>
located in your system.<br>
<br>
... -L/path/to/tcl-lib/lib -ltcl8.5 ...<br>
<br>
<br>
best regards,<br>
<br>
Matic Poberznik<br>
<span class="HOEnZb"><font color="#888888">--<br>
Matic Poberznik<br>
</font></span><span class="im HOEnZb">J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia<br>
</span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
XCrySDen mailing list<br>
<a href="mailto:XCrySDen@democritos.it">XCrySDen@democritos.it</a><br>
<a href="http://www.democritos.it/mailman/listinfo/xcrysden" rel="noreferrer" target="_blank">http://www.democritos.it/<wbr>mailman/listinfo/xcrysden</a><br>
</div></div></blockquote></div><br></div>