|
From: Jinsong Z. <js...@ye...> - 2018-10-10 00:35:13
|
On 2018/10/10 3:39, Wolfgang Dautermann wrote: > On 2018-10-09 09:15, Jinsong Zhao wrote: >> Hi there, >> >> I have just built the Maxima 5.42.0 using SBCL on Windows platform. >> All work as expected. The only thing I would like to mention is >> maxima.bat includes a line that says: >> >> for /F "tokens=* USEBACKQ" %%F in (`maxima_longnames.exe >> "%MAXIMA_TEMPDIR%"`) do set "MAXIMA_TEMPDIR=%%F" >> >> However, there is no `maxima_longnames.exe` in the system. > > Hi, > > I'm sorry, that was my fault. > > The sourcecode for that program is in > "crosscompile-windows/maxima_longnames.c". The program can be compiled > using a C compiler and be copied to the Maxima-binary directory. It is > build when the installer is build using the crosscompiling procedure on > Linux (which is CMake-based), but it is not included in the usual > automake build. > > The reason for that program was (quoting my Git commit message): > > Fix the plotting problem with Clisp/Windows and long user names. > > Clisp has problems with generated Windows 'short names' e.g. > echo %TMP% > C:\Users\TESTTE~1\AppData\Local\Temp > Windows generates a short name for the temporary dir, when the > username contains spaces and is longer than 8 chars. > Correct that path name to the 'long version', so that Clisp has > no problems with long user names and plotting commands. > > It is also documented in 'maxima.bat': > > rem change 'short names' (e.g. "C:/Users/TESTTE~1/AppData/Local/Temp" to > rem long names (e.g. "C:/Users/test test/AppData/Local/Temp" - > rem CLISP has a problem with these short names. > I have noticed the document. I don't know well about the .bat file on Windows,so I don't know how to configure it specifically to Clisp. > Don't know, if other Lisp's are affected too. I implemented that for CLISP. > It does not affect my build using only SBCL. The only annoyed thing is the message that said the `maxima_longnames.exe` not found when invoking the maxima.bat. However, it dose not affect any thing else. I could comment the line... > Sorry for that, will fix it soon (I will be abroad for a few days, don't > know, if I have time and a good internet connection then...) > Thanks a lot. > I have not seen these errors. How did you build Maxima? Using a > Lisp-only build? Mingw? Cygwin? I just build Maxima using a Lisp-only build. I just use it on Windows platform. When I invoke maxima.bat, the warnings appear before the banner of Maxima. It does not affect the running of Maxima. Best, Jinsong |