|
From: Tatsuro M. <tma...@ya...> - 2009-12-02 20:52:47
|
Hello As you said, the behavior is quite strange. You also said that '>PS also the first release candidate of 4.4 has the same problem gp440rc1_win.zip' The distribution gp440rc1_win.zip is not provided by me. Therefore the problem you pointed out is a general problem to be discussed in the gnuplot ML. ********** BTW, Hmmm, I cannot find link on the http://gnuplot.info/ to the page for subscription to gnu...@li.... Oh! I found it after I have searched from http://sourceforge.net/projects/gnuplot/ :-) Here is a subscribe page to subscribe to gnu...@li... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta I have found the above here http://sourceforge.net/projects/gnuplot/support. *********** Anyway I appreciate your tests and reports. Your report is very important for gnuplot on windows. Regards Tatsuro --- Franco Fritschij wrote: > Hello, > > It is not the modifications in the lua terminal. > Also the canvas and postscript terminal in your supplied binaries cannot find the shared files. > What they have in common is that those terminals are > looking for files in "<path to binaries>/share/...". > Those terminals all use some code to find the <path to binaries> (if compiled for WINDOWS). > The binaries are stored in "/gnuplot/bin". > The shared directories are relative to this. So "/gnuplot/bin/share/lua" > > If I do "set term lua tikz" it tries to find the binaries in "/gnuplot/share/lua", so without > "bin". > > If I only change the name of the "bin" directory in something else say "binaries" everthing > works. > > All terminals can find there files in "/gnuplot/binaries/share/..." > > This without recompiling only changing the name of the directory. > > The problems seems to be the name of the directory where the binaries are stored should be not > called "bin". Why? > > Tatsuro: I tried binaries compiled by you from 2009-11-27, also these have problems with the > postscript terminal. > Just try the following, (make sure the environment variable GNUPLOT_PS_DIR is not set,) > > set output "test_post.ps" > set term postscript > test > set output > > I get an error about not finding the postscript header files. > > PS also the first release candidate of 4.4 has the same problem gp440rc1_win.zip > > Regards, Franco Fritschij > > > > > > -----Original Message----- > From: Tatsuro MATSUOKA [mailto:tma...@ya...] > Sent: Wednesday, December 02, 2009 4:04 PM > To: Tatsuro MATSUOKA; gnu...@li... > Cc: Franco Fritschij > Subject: RE: lua terminal problem on windows (was gnuplot 4.5 (cvs) windows and cygwin binaries > are updated) > > Hello > > Thank you for tests and their report. > > Seeing the code modification for lua terminal by Ethan, I cannot find any problem at the moment. > > I have tested in the default install directory in C:\Program Files\Gnuplot4.5. At that time, > ************ > set term tikz > set out 'test.tikz' > plot sin(x) > set out > ************* > > I found latex codes in file test.tikz so that I judged that test perhaps went well. > > I cannot find the reason why phenomena that you have found occur at the moment. > > It will become late in the night in Japan. Tomorrow, I'll carry out some trials. > > Regards > > Tatsuro > > > --- Franco Fritschij wrote: > > > > > Hello Tasuro Matsuoko, > > > > I did some more tests. Your wgnuplot.exe directory is called 'gp45-winbin/gnuplot/bin' > > If I rename 'bin' to something else it works. So there is something > > strange in windows for finding the wgnuplot.exe directory if the > > directory ends with 'bin'. I see the same problem > for > > the canvas terminal (looks for files in share/js) postscript terminals > > (postscript, epslatex looks for files in share/Postscript). > > > > What is causing this? > > > > Regards, Franco > > > > > > > > -----Original Message----- > > From: Tatsuro MATSUOKA [mailto:tma...@ya...] > > Sent: Wednesday, December 02, 2009 12:42 PM > > To: Franco Fritschij > > Cc: gnu...@li... > > Subject: lua terminal problem on windows (was gnuplot 4.5 (cvs) > > windows and cygwin binaries > are > > updated) > > > > Hello Franco Fritschij > > > > cc. gnu...@li... > > > > --- Franco Fritschij wrote: > > > > > Dear Tatsuro Matsuoka, > > > > > > Good news that you managed to compile gnuplot including the lua terminal. > > > > > > Gnuplot is default looking in the wrong directory for the lua/tikz files. > > > You can see that by using the following gnuplot terminal commands. > > > > > > 'set term lua tikz' or equivalent 'set term tikz' > > > > > > It looks in '......./gp45-winbin/gnuplot/share/lua' instead of > > > '........../gp45-winbin/gnuplot/bin/share/lua' for the file > > > gnuplot_tikz.lua It works if the environment variable > > > GNUPLOT_LUA_DIR is set to > > > '........./gp45-windir/gnuplot/bin/share/lua' as mentioned in the > > > gnuplot > > documentation. > > > I think you have set some environment variable when compiling the > > > code, this can probably be easy set to the 'gnuplot/bin/share' directory by default. > > > > > > What do you have changed in the source code of lua.trm? The default > > > location is pointing to X11_DRIVER_DIR which is not set if you compile it for windows. > > > > > > Second remark: > > > > > > You should put the 'gnuplot-lua-tikz.sty' file in the zip package it > > > is in 'share/LaTeX/' in the source code. > > > The best place is in your 'bin/share' directory to add the LaTeX > > > directory with the files from the source package. > > > > > > The file 'gnuplot-lua-tikz.sty' is needed for latex to make the > > > picture produced by the Lua/tikz terminal. > > > > > > Best Regards, Franco Fritschij > > > > > > > Thanks for your comments. > > > > in the makefile.mgw > > > > # Where to install the PostScript prologue files, relatively to the > > executable # wgnuplot.exe GNUPLOT_PS_DIR = share/PostScript > > > > # Similarly for javascript files for the canvas terminal: > > GNUPLOT_JS_DIR = share/js > > > > # Similarly for scripts used by the lua terminal GNUPLOT_LUA_DIR = > > share/lua > > > > Then 'share/lua' relative to gnuplot executables. > > So that /gp45-winbin/gnuplot/bin/share/lua is the place to put the file 'gnuplot-tikz.lua'. > > > > This is the similar way to the PostScript prologue files. > > > > However as you pointed out > > > > gnuplot> set term tikz > > Terminal type set to 'tikz' > > error: cannot open > > D:\usr\Tatsu\mingwhome\gnuplotcvs\gp45-winbin\gnuplot\share/lua\gnuplot-tikz.lua: > > No such file or directory. Lua context closed. > > > > This might be a bug of newly imported code for windows into lua.trm. > > > > For the second remark I am not a lua user. > > I cannot answer your remark. > > > > I ask you to subscribe to gnu...@li... and discuss there. > > > > Anyway I appreciate your kind suggestions. > > > > Regards > > > > Tatsuro > > > -------------------------------------- > Learn more about HIV/AIDS - Red Ribbon Campaign 2009 http://pr.mail.yahoo.co.jp/redribbon/ > > This e-mail is strictly confidential and intended only for use by the addressee(s) unless > otherwise indicated. > -------------------------------------- Learn more about HIV/AIDS - Red Ribbon Campaign 2009 http://pr.mail.yahoo.co.jp/redribbon/ |