|
From: mrbiggles <sno...@sp...> - 2007-08-04 17:18:44
|
David Ko wrote: > > Hello all, > > I've recently been trying to compile Gnuplot in MinGW, and I've gotten > everything working except that it crashes when I try to write a png file. > The > Windows binary I downloaded from gnuplot.info works fine, and I have a > couple > questions for the Win32 binary maintainer: > > What build environment was used to create the Win32 binaries? I've tried > MinGW > and Visual Studio .NET thus far, and everything dies when trying to write > a png > file. (i.e. 'set terminal png; set output "test.png"; plot x' <- dies > here) My > latest attempt was with the 'config/makefile.mgw' provided makefile in > MinGW. > > What version of libgd was used? I assume that the latest version (2.0.35) > was > used, but the makefile.mgw that came w/ gnuplot referred to v.1.8 as > "new". > I've tried using the libgd library built from scratch and the provided > prebuilt > libraries. I've also tried the v1.8 library. Gnuplot behaves identically > for > all of them (crash on png write). > > Any other tips/ideas for me? I'm not really a windows person by any means. > > Thanks for your time! > > - David Ko > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > > ===================================================================== Assuming you are using VC 2005 and gd-2.0.35 . . . I had the same problem. It had me stumped. Here is how I solved it. Get the extras package from: http://www.libgd.org/releases/extras/gd_build_win32_deps.zip Then extract it somewhere on your hard drive. Edit the makefile in the windows directory of gd-2.0.35 and point EXRTRA_INCLUDE and EXTRA_LIBS to where you extraced gd_build_win32_deps.zip files: (below my example assumes I extracted to gd_deps inside gd-2.0.25) EXTRA_INCLUDE=C:\\gd-2.0.35\\gd_deps\\include EXTRA_LIBS=/libpath:C:\\gd-2.0.35\\gd_deps\\lib Then compile libgd (nmake -f Makefile) Copy the resulting bgd.dll & bgd.dll.manifest to your gunplot install directory and you will be able to save to png. ===================================================================== -- View this message in context: http://www.nabble.com/Win32-Gnuplot-Compilation-tf4201579.html#a11998357 Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |