<div dir="ltr">Dear Tone,<br>thanks for looking into it.<br>With the changes I got this<br><br><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  -ltk85 -ltkstub85 -L/usr/lib -ltcl85 -ltclstub85  -lglu32 -lopengl32 -lgdi32<br>/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -ltk85<br>/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -ltkstub85<br>/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -ltcl85<br>/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -ltclstub85<br>collect2: error: ld returned 1 exit status<br>make[2]: *** [Makefile:31: xcrys] Error 1<br>make[2]: Leaving directory &#39;/home/Dave/xcrysden-1.5.60/C&#39;<br>make[1]: *** [Makefile:23: compile] Error 2<br>make[1]: Leaving directory &#39;/home/Dave/xcrysden-1.5.60/C&#39;<br>make: *** [Makefile:77: src-C] Error 2<br><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>( removed the middle part because the error trace is very long):<br><br>cc -g  -O2 -DCYGWIN -DUSE_FONTS -DNEAR_BUG -DUSE_INTERP_RESULT -DUSE_FONTS   -I/usr/src/tcltk-20080420-1/tcl/generic -DUSE_TCL_STUBS -I/usr/src/tcltk-20080420-1/tk/generic  -I/usr/src/tcltk-20080420-1/tk/win/ -DUSE_TK_STUBS -I/usr/src/tcltk-20080420-1/tk/xlib -I/usr/include/GL   -c sgiRasterFont.c<br>cc -g  -O2 -DCYGWIN -DUSE_FONTS -DNEAR_BUG -DUSE_INTERP_RESULT -DUSE_FONTS   -I/usr/src/tcltk-20080420-1/tcl/generic -DUSE_TCL_STUBS -I/usr/src/tcltk-20080420-1/tk/generic  -I/usr/src/tcltk-20080420-1/tk/win/ -DUSE_TK_STUBS -I/usr/src/tcltk-20080420-1/tk/xlib -I/usr/include/GL   -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.6 -ltkstub8.6 -L/usr/lib -ltcl8.6 -ltclstub8.6  -lglu32 -lopengl32 -lgdi32<br>/usr/lib/libtclstub8.6.a(tclStubLib.o): In function `Tcl_InitStubs&#39;:<br>/usr/src/debug/tcl-8.6.6-1/generic/tclStubLib.c:58: multiple definition of `Tcl_InitStubs&#39;<br>/usr/lib/libtk8.6.dll.a(d000001.o):(.text+0x0): first defined here<br>xcAppInit.o: In function `XErrorFunction&#39;:<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:403: undefined reference to `XGetErrorText&#39;<br>xcAppInit.o: In function `XC_StereoCmd&#39;:<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:2626: undefined reference to `XOpenDisplay&#39;<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:2628: undefined reference to `glXChooseVisual&#39;<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:2631: undefined reference to `XFree&#39;<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:2633: undefined reference to `XCloseDisplay&#39;<br>xcAppInit.o: In function `XC_DrawStyle3DCmd&#39;:<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:1778: undefined reference to `glGetBooleanv&#39;<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:1774: undefined reference to `glDrawBuffer&#39;<br>xcAppInit.o: In function `XC_ShadeModel3DCmd&#39;:<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:1836: undefined reference to `glShadeModel&#39;<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:1832: undefined reference to `glShadeModel&#39;<br>xcAppInit.o: In function `XC_PointSizeCmd&#39;:<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:1879: undefined reference to `glPointSize&#39;<br>xcAppInit.o: In function `main&#39;:<br>/home/Dave/xcrysden-1.5.60/C/xcAppInit.c:437: undefined reference to `XSetErrorHandler&#39;<br><br>.....<br><br>/home/Dave/xcrysden-1.5.60/C/gl2ps.c:6051: undefined reference to `glPassThrough&#39;<br>/home/Dave/xcrysden-1.5.60/C/gl2ps.c:6042: undefined reference to `glPassThrough&#39;<br>/home/Dave/xcrysden-1.5.60/C/gl2ps.c:6048: undefined reference to `glPassThrough&#39;<br>gl2ps.o:/home/Dave/xcrysden-1.5.60/C/gl2ps.c:6045: more undefined references to `glPassThrough&#39; follow<br>collect2: error: ld returned 1 exit status<br>make[2]: *** [Makefile:31: xcrys] Error 1<br>make[2]: Leaving directory &#39;/home/Dave/xcrysden-1.5.60/C&#39;<br>make[1]: *** [Makefile:23: compile] Error 2<br>make[1]: Leaving directory &#39;/home/Dave/xcrysden-1.5.60/C&#39;<br>make: *** [Makefile:77: src-C] Error 2<br><br><br>My Make.sys is now:<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 &amp; 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>FC          = g77 -O2<br># -mcygwin<br>FFLAGS      = <br><br>#------------------------------------------------------------------------<br># Libraries and include files<br>#------------------------------------------------------------------------<br>X_LIB       =<br># -L/usr/X11R6/lib -lX11.dll<br>X_INCDIR    =<br><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>TCLTK_SRC   = /usr/src/tcltk-20080420-1<br># on some machines this is needed: -I$(TCLTK_SRC)/tk/xlib<br>TCL_INCDIR      = -I$(TCLTK_SRC)/tcl/generic -DUSE_TCL_STUBS<br>TK_INCDIR       = -I$(TCLTK_SRC)/tk/generic  -I$(TCLTK_SRC)/tk/win/ -DUSE_TK_STUBS -I$(TCLTK_SRC)/tk/xlib<br>GL_INCDIR       = -I/usr/include/GL<br>FFTW3_INCDIR    =<br># this is only used for some testing purposes<br>#MESCHACH_INCDIR =<br><br>#------------------------------------------------------------------------<br><br>Kind regards,<br>Dave<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-08 11:02 GMT+02:00 Tone Kokalj <span dir="ltr">&lt;<a href="mailto:tone.kokalj@ijs.si" target="_blank">tone.kokalj@ijs.si</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 2017-05-03 at 22:55 +0200, X Y wrote:<br>
&gt; Hello,<br>
&gt; when I compile I get stuck on the line with the  unknown type name<br>
&gt; ‘XVisualInfo’ error.<br>
&gt; Because I have a windows 10 computer I compile inside the cygwin 32<br>
&gt; bit environment<br>
<br>
</span>Edit your Make.sys file and remove the -DWIN32 from CPPFLAGS.<br>
Then try to recompile (make clean; make xcrysden)<br>
<br>
If it does not work then also remove or comment the<br>
&quot;CYGWIN = -f Makefile.cygwin&quot; line and recompile.<br>
<br>
Best regards, Tone<br>
<span class="HOEnZb"><font color="#888888">-- <br>
J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia <br>
(tel: +386-1-<br>
477-3523 // fax: <a href="tel:%2B386-1-251-9385" value="+38612519385">+386-1-251-9385</a>)<br>
<br>
______________________________<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>
</font></span></blockquote></div><br></div>