7 Replies - 3207 Views - Last Post: 13 December 2012 - 10:03 PM Rate Topic: -----

#1 tomadom  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 76
  • Joined: 11-December 12

Building Gnuplot on Windows / MinGW

Posted 11 December 2012 - 07:42 PM

I'm using MinGW on Windows XP and am trying to build Gnuplot.

It doesn't seem to want to build. Looking impossible at this stage. I adjust the MinGW makefile provided and it builds for a while before this error occurs in the command prompt.

There must be someone out there who has done all this before. Would you mind giving me some clues as to what this could be. The first error on the below list refers to a file in libgd which I have successfully built. Not sure why it is not seeing it. Should I place a VPATH in the makefile to help it?

Here's the code.
Any suggestions would be much appreciated. Thanks

$ cd C:\gnuplot/config/mingw

xxxx@XXXX-E0A0BDAF9E /c/gnuplot/config/mingw
$ make
g++ -c  -o wgdiplus.o ../../src/win/wgdiplus.cpp
../../src/win/wgdiplus.cpp:30:21: error: gdiplus.h: No such file or directory
../../src/win/wgdiplus.cpp:32: error: 'Gdiplus' is not a namespace-name
../../src/win/wgdiplus.cpp:32: error: expected namespace-name before ';' token
../../src/win/wgdiplus.cpp: In function 'void gdiplusInit()':
../../src/win/wgdiplus.cpp:42: error: 'GdiplusStartupInput' was not declared in this scope
../../src/win/wgdiplus.cpp:42: error: expected ';' before 'gdiplusStartupInput'
../../src/win/wgdiplus.cpp:43: error: 'gdiplusStartupInput' was not declared in this scope
../../src/win/wgdiplus.cpp:43: error: 'GdiplusStartup' was not declared in this scope
../../src/win/wgdiplus.cpp: In function 'void gdiplusCleanup()':
../../src/win/wgdiplus.cpp:52: error: 'GdiplusShutdown' was not declared in this scope
../../src/win/wgdiplus.cpp: At global scope:
../../src/win/wgdiplus.cpp:57: error: 'Color' does not name a type
../../src/win/wgdiplus.cpp:66: error: expected initializer before '*' token
../../src/win/wgdiplus.cpp: In function 'void gdiplusLineEx(HDC__*, POINT, POINT, UINT, float, COLORREF)':
../../src/win/wgdiplus.cpp:90: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:90: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:95: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:95: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:97: error: 'Pen' was not declared in this scope
../../src/win/wgdiplus.cpp:97: error: 'pen' was not declared in this scope
../../src/win/wgdiplus.cpp:97: error: 'gdiplusCreatePen' was not declared in this scope
../../src/win/wgdiplus.cpp:98: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:99: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp: In function 'void gdiplusPolylineEx(HDC__*, POINT*, int, UINT, float, COLORREF)':
../../src/win/wgdiplus.cpp:112: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:112: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:117: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:117: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:119: error: 'Pen' was not declared in this scope
../../src/win/wgdiplus.cpp:119: error: 'pen' was not declared in this scope
../../src/win/wgdiplus.cpp:119: error: 'gdiplusCreatePen' was not declared in this scope
../../src/win/wgdiplus.cpp:120: error: 'Point' was not declared in this scope
../../src/win/wgdiplus.cpp:120: error: 'points' was not declared in this scope
../../src/win/wgdiplus.cpp:120: error: expected type-specifier before 'Point'
../../src/win/wgdiplus.cpp:120: error: expected ';' before 'Point'
../../src/win/wgdiplus.cpp:125: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:126: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp:127: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp: In function 'void gdiplusSolidFilledPolygonEx(HDC__*, POINT*, int, COLORREF, double)':
../../src/win/wgdiplus.cpp:134: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:134: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:135: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:135: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:137: error: 'Color' was not declared in this scope
../../src/win/wgdiplus.cpp:137: error: expected ';' before 'gdipColor'
../../src/win/wgdiplus.cpp:138: error: 'Point' was not declared in this scope
../../src/win/wgdiplus.cpp:138: error: 'points' was not declared in this scope
../../src/win/wgdiplus.cpp:138: error: expected type-specifier before 'Point'
../../src/win/wgdiplus.cpp:138: error: expected ';' before 'Point'
../../src/win/wgdiplus.cpp:143: error: 'SolidBrush' was not declared in this scope
../../src/win/wgdiplus.cpp:143: error: expected ';' before 'brush'
../../src/win/wgdiplus.cpp:144: error: 'brush' was not declared in this scope
../../src/win/wgdiplus.cpp:145: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp: In function 'void gdiplusPatternFilledPolygonEx(HDC__*, POINT*, int, COLORREF, double, COLORREF, BOOL, int)
':
../../src/win/wgdiplus.cpp:152: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:152: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:153: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:153: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:155: error: 'Color' was not declared in this scope
../../src/win/wgdiplus.cpp:155: error: expected ';' before 'gdipColor'
../../src/win/wgdiplus.cpp:156: error: expected ';' before 'gdipBackColor'
../../src/win/wgdiplus.cpp:157: error: 'Brush' was not declared in this scope
../../src/win/wgdiplus.cpp:157: error: 'brush' was not declared in this scope
../../src/win/wgdiplus.cpp:159: error: 'HatchStyle' does not name a type
../../src/win/wgdiplus.cpp:165: error: expected type-specifier before 'SolidBrush'
../../src/win/wgdiplus.cpp:165: error: expected ';' before 'SolidBrush'
../../src/win/wgdiplus.cpp:168: error: expected type-specifier before 'SolidBrush'
../../src/win/wgdiplus.cpp:168: error: expected ';' before 'SolidBrush'
../../src/win/wgdiplus.cpp:171: error: expected type-specifier before 'HatchBrush'
../../src/win/wgdiplus.cpp:171: error: expected ';' before 'HatchBrush'
../../src/win/wgdiplus.cpp:173: error: 'Point' was not declared in this scope
../../src/win/wgdiplus.cpp:173: error: 'points' was not declared in this scope
../../src/win/wgdiplus.cpp:173: error: expected type-specifier before 'Point'
../../src/win/wgdiplus.cpp:173: error: expected ';' before 'Point'
../../src/win/wgdiplus.cpp:179: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp:180: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp: In function 'void gdiplusCircleEx(HDC__*, POINT*, int, UINT, float, COLORREF)':
../../src/win/wgdiplus.cpp:187: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:187: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:188: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:188: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:190: error: 'Pen' was not declared in this scope
../../src/win/wgdiplus.cpp:190: error: 'pen' was not declared in this scope
../../src/win/wgdiplus.cpp:190: error: 'gdiplusCreatePen' was not declared in this scope
../../src/win/wgdiplus.cpp:192: error: type '<type error>' argument given to 'delete', expected pointer





Is This A Good Question/Topic? 0
  • +

Replies To: Building Gnuplot on Windows / MinGW

#2 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1371
  • View blog
  • Posts: 4,744
  • Joined: 19-February 09

Re: Building Gnuplot on Windows / MinGW

Posted 12 December 2012 - 09:53 PM

How far have you got?

GDI+ Programming With MinGW
Was This Post Helpful? 0
  • +
  • -

#3 tomadom  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 76
  • Joined: 11-December 12

Re: Building Gnuplot on Windows / MinGW

Posted 12 December 2012 - 11:20 PM

Nowhere. I think I'm the first in the world to do this.
When I do get it I'm going to celebrate.
Was This Post Helpful? 0
  • +
  • -

#4 tomadom  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 76
  • Joined: 11-December 12

Re: Building Gnuplot on Windows / MinGW

Posted 12 December 2012 - 11:31 PM

Thanks for that article. That's really going to help for sure.
I'll let you know how it goes.
Was This Post Helpful? 1
  • +
  • -

#5 tomadom  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 76
  • Joined: 11-December 12

Re: Building Gnuplot on Windows / MinGW

Posted 13 December 2012 - 01:29 AM

test

My final code output shows 4 errors not but the above seems to have worked.

Could someone tell me if this has actually built as all the error messages are said to be [ignored]. Does that mean that gnuplot has built.

I've posted this 4 times now and the forum keeps bouncing to another page when I post it so I'm keeping this simple. Just do a search to see all the errors. I'll only provide half the output as there is too much.

term.po ../../src/term.c
In file included from ../../src/term.h:406,
                 from ../../src/term.c:1405:
../../term/context.trm: In function 'CONTEXT_init':
../../term/context.trm:715: warning: unused variable 'i'
../../src/term.c: At top level:
../../src/term.c:2: warning: 'RCSid' defined but not used
../../term/canvas.trm:123: warning: 'CANVAS_imageno' defined but not used
../../term/canvas.trm:129: warning: 'imagelist' defined but not used
../../term/svg.trm:165: warning: 'SVG_imageno' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o time.po ../../src/time.c
../../src/time.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o unset.po ../../src/unset.c
../../src/unset.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o util.po ../../src/util.c
../../src/util.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o util3d.po ../../src/util3d.c
../../src/util3d.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o variable.po ../../src/variable.c
../../src/variable.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o version.po ../../src/version.c
../../src/version.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o gpexecute.po ../../src/gpexecute.c
../../src/gpexecute.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o winmain.po -DHELPFILE=\"wgnuplot.chm\" ../../src/win/winmain.c
../../src/win/winmain.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o wgnuplib.po ../../src/win/wgnuplib.c
../../src/win/wgnuplib.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o wgraph.po ../../src/win/wgraph.c
../../src/win/wgraph.c: In function 'drawgraph':
../../src/win/wgraph.c:1468: warning: unused variable 'k'
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o wprinter.po ../../src/win/wprinter.c
../../src/win/wprinter.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o wtext.po ../../src/win/wtext.c
../../src/win/wtext.c: In function 'UpdateText':
../../src/win/wtext.c:486: warning: unused variable 'x'
../../src/win/wtext.c: At top level:
../../src/win/wtext.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o wpause.po ../../src/win/wpause.c
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o wmenu.po ../../src/win/wmenu.c
../../src/win/wmenu.c: In function 'SendMacro':
../../src/win/wmenu.c:516: warning: unused variable 'f'
../../src/win/wmenu.c: At top level:
../../src/win/wmenu.c:2: warning: 'RCSid' defined but not used
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HE
LP -I"C:\Program Files/HTML Help Workshop/"include -o screenbuf.po ../../src/win/screenbuf.c
../../src/win/screenbuf.c:2: warning: 'RCSid' defined but not used
g++ -c  -o wgdiplus.po ../../src/win/wgdiplus.cpp
windres --include-dir=../../src/win --define __WIN32__ --define __WIN95__ --define MSRC --define __GNUWIN32__ --use-temp-file ../../src
/win/wgnuplot.rc wgplt_res.po
echo wgplt_res.po
wgplt_res.po
g++ -g -mconsole -L"C:\Program Files/HTML Help Workshop/"lib -o wgnuplot_pipes.exe alloc.po axis.po binary.po bitmap.po breaders.po col
or.po command.po contour.po datafile.po dynarray.po eval.po fit.po gadgets.po getcolor.po graph3d.po graphics.po help.po hidden3d.po hi
story.po internal.po interpol.po matrix.po misc.po mouse.po parse.po plot.po plot2d.po plot3d.po pm3d.po readline.po save.po scanner.po
 set.po show.po specfun.po standard.po stats.po stdfn.po tables.po tabulate.po term.po time.po unset.po util.po util3d.po variable.po v
ersion.po gpexecute.po   winmain.po wgnuplib.po wgraph.po wprinter.po wtext.po wpause.po wmenu.po screenbuf.po wgdiplus.po wgplt_res.po
 -lkernel32 -lgdi32 -lwinspool -lcomdlg32 -lcomctl32 -ladvapi32 -lshell32 -lmsimg32 -lgdiplus -lhtmlhelp\

Warning: .drectve `-defaultlib:uuid.lib ' unrecognized
Warning: .drectve `-defaultlib:uuid.lib ' unrecognized
make[1]: Leaving directory `/c/gnuplot/config/mingw'
gcc -g -o doc2html.exe -DWINDOWS_NO_GUI -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H  -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=
1 -DWIN_IPC -DWITH_HTML_HELP -I"C:\Program Files/HTML Help Workshop/"include -I. -I../../docs -I../../term ../../docs/windows/doc2html.
c ../../docs/termdoc.c ../../docs/xref.c version.o
../../docs/windows/doc2html.c: In function 'process_line':
../../docs/windows/doc2html.c:216: warning: unused variable 'klink'
../../docs/windows/doc2html.c: At top level:
../../docs/windows/doc2html.c:2: warning: 'RCSid' defined but not used
../../docs/termdoc.c:2: warning: 'RCSid' defined but not used
../../docs/xref.c:2: warning: 'RCSid' defined but not used
./doc2html ../../docs/gnuplot.doc ../../docs/windows/
wgnuplot.exe -e "winhelp=1; cd '../../docs/'" plotstyles.gnu
make: [../../docs/windows/wgnuplot.chm] Error 1 (ignored)
"C:\Program Files/HTML Help Workshop/"hhc ../../docs/windows/wgnuplot.hhp
Microsoft HTML Help Compiler 4.74.8702

Compiling c:\gnuplot\docs\windows\wgnuplot.chm


Compile time: 0 minutes, 8 seconds
509     Topics
3,349   Local links
52      Internet links
0       Graphics


Created c:\gnuplot\docs\windows\wgnuplot.chm, 497,627 bytes
Compression decreased file by 690,399 bytes.
make: [../../docs/windows/wgnuplot.chm] Error 1 (ignored)
cp -p ../../docs/windows/wgnuplot.chm wgnuplot.chm
gcc -c -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H  -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HELP -I"C
:\Program Files/HTML Help Workshop/"include -U_Windows -o dbinary.o ../../src/binary.c
../../src/binary.c:2: warning: 'RCSid' defined but not used
gcc -g -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H  -DGNUPLOT_SHARE_DIR=\"share\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HELP -I"C
:\Program Files/HTML Help Workshop/"include -U_Windows -o ../../demo/bf_test.exe ../../src/bf_test.c dbinary.o alloc.o
../../src/bf_test.c:2: warning: 'RCSid' defined but not used
(cd ../../demo/ ; ./bf_test.exe )
gcc -O2 -DHAVE_STDBOOL_H -s -o pgnuplot.exe ../../src/win/pgnuplot.c version.o -I../../src/win -I../../src -luser32
# Create a local copy of relevant sources
mkdir ja/
mkdir ja/term
mkdir ja/docs/
mkdir ja/demo
cp -r ../../term/* ja/term/
cp -r ../../docs/* ja/docs/
cp ../../demo/*.dat ../../demo/*.png ../../demo/*.rgb ja/demo/
# Apply patch for Japanese docs
rm ja/docs/tex2ja.awk ja/docs/sjisenc.c
rm: cannot lstat `ja/docs/tex2ja.awk': No such file or directory
rm: cannot lstat `ja/docs/sjisenc.c': No such file or directory
make: [ja/term/cairo.trm] Error 1 (ignored)
(cd ja/ ; patch -p0 -i docs/term-ja.diff)
patching file docs/doc2rtf.c
patching file docs/sjisenc.c
patching file docs/tex2ja.awk
patching file term/aed.trm
patching file term/ai.trm
patching file term/aquaterm.trm
Hunk #1 succeeded at 908 (offset 5 lines).
patching file term/be.trm
patching file term/cairo.trm
patching file term/canvas.trm
Hunk #1 succeeded at 1429 (offset 8 lines).
patching file term/cgi.trm
patching file term/cgm.trm
patching file term/context.trm
Hunk #2 succeeded at 2109 (offset 2 lines).
patching file term/corel.trm
patching file term/debug.trm
patching file term/djsvga.trm
patching file term/dumb.trm
patching file term/dxf.trm
patching file term/dxy.trm
patching file term/eepic.trm
patching file term/emf.trm
Hunk #1 succeeded at 1829 (offset 58 lines).
patching file term/emxvga.trm
patching file term/epson.trm
patching file term/excl.trm
patching file term/fig.trm
patching file term/gd.trm
Hunk #1 succeeded at 2345 (offset 2 lines).
Hunk #2 succeeded at 2420 (offset -5 lines).
Hunk #3 succeeded at 2587 (offset 2 lines).
Hunk #4 succeeded at 2628 with fuzz 2 (offset -10 lines).
Hunk #5 succeeded at 2795 (offset 2 lines).
Hunk #6 succeeded at 2880 (offset -15 lines).
patching file term/ggi.trm
patching file term/gpic.trm
patching file term/grass.trm
patching file term/hp26.trm
patching file term/hp2648.trm
patching file term/hp500c.trm
patching file term/hpgl.trm
patching file term/hpljii.trm
patching file term/hppj.trm
patching file term/imagen.trm
patching file term/kyo.trm
patching file term/latex.trm
patching file term/linux.trm
Hunk #1 succeeded at 451 (offset 115 lines).
patching file term/lua/gnuplot-tikz.help
patching file term/lua.trm
Hunk #1 succeeded at 1396 (offset 54 lines).
Hunk #3 succeeded at 1468 (offset 54 lines).
patching file term/mac.trm
patching file term/metafont.trm
patching file term/metapost.trm
patching file term/mif.trm
patching file term/next.trm
patching file term/openstep.trm
patching file term/pbm.trm
patching file term/pc.trm
patching file term/pdf.trm
patching file term/pm.trm
patching file term/post.trm
Hunk #1 succeeded at 3833 (offset 12 lines).
Hunk #3 succeeded at 4153 (offset 12 lines).
Hunk #5 succeeded at 4755 (offset 12 lines).
patching file term/pstricks.trm
patching file term/qms.trm
patching file term/qt.trm
patching file term/regis.trm
patching file term/sun.trm
patching file term/svg.trm
Hunk #1 succeeded at 1957 (offset 14 lines).
Hunk #2 succeeded at 1998 (offset 3 lines).
patching file term/t410x.trm
patching file term/tek.trm
patching file term/texdraw.trm
patching file term/tgif.trm
patching file term/tkcanvas.trm
patching file term/tpic.trm
patching file term/unixpc.trm
patching file term/v384.trm
patching file term/vgagl.trm
patching file term/vws.trm
patching file term/win.trm
patching file term/wxt.trm
Hunk #1 succeeded at 447 (offset 5 lines).
patching file term/x11.trm
patching file term/xlib.trm
gcc -g -o doc2html-ja.exe -DWINDOWS_NO_GUI -DJAPANESE_DOC -g -Wall -I. -I../../src -D_Windows -DHAVE_CONFIG_H  -DGNUPLOT_SHARE_DIR=\"sh
are\" -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HELP -I"C:\Program Files/HTML Help Workshop/"include -I. -Ija/docs/ -Ija//term ../../docs/win
dows/doc2html.c ../../docs/termdoc.c ../../docs/xref.c version.o
../../docs/windows/doc2html.c: In function 'process_line':
../../docs/windows/doc2html.c:216: warning: unused variable 'klink'
../../docs/windows/doc2html.c: At top level:
../../docs/windows/doc2html.c:2: warning: 'RCSid' defined but not used
../../docs/termdoc.c:2: warning: 'RCSid' defined but not used
../../docs/xref.c:2: warning: 'RCSid' defined but not used
# Create Japanese html source in EUC-JP encoding
./doc2html-ja ja/docs/gnuplot-ja.doc ja/docs/windows/
# Change character encoding from EUC-JP to SHIFT-JIS
iconv -c -s -f EUC-JP -t SHIFT-JIS ja/docs/windows/wgnuplot.html > ja/docs/windows/wgnuplot-ja.html
/bin/sh: iconv: command not found
make: [wgnuplot-ja.chm] Error 127 (ignored)
iconv -c -s -f EUC-JP -t SHIFT-JIS ja/docs/windows/wgnuplot.hhc > ja/docs/windows/wgnuplot-ja.hhc
/bin/sh: iconv: command not found
make: [wgnuplot-ja.chm] Error 127 (ignored)
cp ja/docs/windows/wgnuplot-ja.html ja/docs/windows/wgnuplot.html
cp ja/docs/windows/wgnuplot-ja.hhc ja/docs/windows/wgnuplot.hhc
# Adjust Encoding and Language information
sed -i -e "s/charset=utf-8/charset=shift-jis/" ja/docs/windows/wgnuplot.html
sed: invalid option -- i
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  -c  --nocr     turn off \r$ translation; must be first switch on command line
      --help     display this help and exit
  -V, --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

E-mail bug reports to: bug-gnu-utils@gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
make: *** [wgnuplot-ja.chm] Error 4

xxxx@XXXX-E0A0BDAF9E /c/gnuplot/config/mingw

Was This Post Helpful? 0
  • +
  • -

#6 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6078
  • View blog
  • Posts: 23,548
  • Joined: 23-August 08

Re: Building Gnuplot on Windows / MinGW

Posted 13 December 2012 - 05:32 AM

Well the way to tell if it worked would be to check for the intended output file in the target directory. Looks like most of the errors are related to generating the documentation.
Was This Post Helpful? 0
  • +
  • -

#7 tomadom  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 76
  • Joined: 11-December 12

Re: Building Gnuplot on Windows / MinGW

Posted 13 December 2012 - 07:24 PM

Thanks for that. It looks like it has built.
I officially declare this thread solved.

Unfortunately, I can't use Gnuplot as a library in my code.. which is what I wanted to do. It only generates object files but not library files and the process above only builds Gnuplot for external use. Anyway.. if anyone comes across this thread they should be able to work out how to build gnuplot using a MinGW compiler in Windows XP.

Cheers.
Was This Post Helpful? 0
  • +
  • -

#8 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1371
  • View blog
  • Posts: 4,744
  • Joined: 19-February 09

Re: Building Gnuplot on Windows / MinGW

Posted 13 December 2012 - 10:03 PM

There is an old library version called gplotlib which I know next to nothing about.

CCL contrib
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1