|
From: Tatsuro M. <tma...@ya...> - 2009-08-31 02:12:48
|
Hello Benjamin
Thank you for your efforts for 'pngcairo and pdfcairo terminals'.
However, makefile.mgw caused an error when link stage.
g++ -shared-libgcc -L/WinDevTools/bin -L/WinDevTools/lib -L/GnuWin32/lib -L/GnuWin32/bin -s
-mconsole -o gnuplot.exe a
lloc.o axis.o binary.o bitmap.o breaders.o color.o command.o contour.o datafile.o dynarray.o eval.o
fit.o gadgets.o getc
olor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o
parse.o plot.o plo
t2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o
tabulate.o term.o t
ime.o unset.o util.o util3d.o variable.o version.o gpexecute.o gp_cairo.o winmain.o wgnuplib.o
wgraph.o wprinter.o wtex
t.o wpause.o wmenu.o wgplt_res.o -lkernel32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
-ladvapi32\
-lgd -ljpeg -lfontconfig -lfreetype -lpng12 -lz /WinDevTools/lib/libiconv.a
-LC:/Programs/WinDevTools/lib -lca
iro -LC:/Programs/WinDevTools/lib -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl
-lstdc++_s
term.o:term.c:(.text+0x8d9b): undefined reference to `gp_cairo_helper_coordval_to_chars'
collect2: ld returned 1 exit status
make: *** [gnuplot.exe] Error 1
make: Leaving directory `/home/gnuplotcvs/gnuplot/src'
*******************
The following is the patch to avoid this error
*********************************************
--- makefile.mgw.orig 2009-08-31 10:28:40 +0900
+++ makefile.mgw 2009-08-31 10:36:30 +0900
@@ -265,7 +265,7 @@
CAIRO_LIBS = $(shell pkg-config --libs cairo)
PANGO_CFLAGS = $(shell pkg-config --cflags pangocairo)
PANGO_LIBS = $(shell pkg-config --libs pangocairo)
- CAIRO_OBJS = gp_cairo.o
+ CAIRO_OBJS = gp_cairo.o gp_cairo_helpers.o
TERMFLAGS += $(CAIRO_CFLAGS) $(PANGO_CFLAGS)
endif
#****************
Regards
Tatsuro
--------------------------------------
Thanks 10 years! Yahoo! Shopping and Yahoo! Auctions
http://pr.mail.yahoo.co.jp/ec10years/
|
|
From: Benjamin L. <lin...@gm...> - 2009-08-31 17:33:18
|
Tatsuro MATSUOKA wrote: > Hello Benjamin > > Thank you for your efforts for 'pngcairo and pdfcairo terminals'. > However, makefile.mgw caused an error when link stage. > > g++ -shared-libgcc -L/WinDevTools/bin -L/WinDevTools/lib -L/GnuWin32/lib -L/GnuWin32/bin -s > -mconsole -o gnuplot.exe a > lloc.o axis.o binary.o bitmap.o breaders.o color.o command.o contour.o datafile.o dynarray.o eval.o > fit.o gadgets.o getc > olor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o > parse.o plot.o plo > t2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o > tabulate.o term.o t > ime.o unset.o util.o util3d.o variable.o version.o gpexecute.o gp_cairo.o winmain.o wgnuplib.o > wgraph.o wprinter.o wtex > t.o wpause.o wmenu.o wgplt_res.o -lkernel32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 > -ladvapi32\ > -lgd -ljpeg -lfontconfig -lfreetype -lpng12 -lz /WinDevTools/lib/libiconv.a > -LC:/Programs/WinDevTools/lib -lca > iro -LC:/Programs/WinDevTools/lib -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 > -lglib-2.0 -lintl > -lstdc++_s > term.o:term.c:(.text+0x8d9b): undefined reference to `gp_cairo_helper_coordval_to_chars' > collect2: ld returned 1 exit status > make: *** [gnuplot.exe] Error 1 > make: Leaving directory `/home/gnuplotcvs/gnuplot/src' > > ******************* > The following is the patch to avoid this error > ********************************************* > > --- makefile.mgw.orig 2009-08-31 10:28:40 +0900 > +++ makefile.mgw 2009-08-31 10:36:30 +0900 > @@ -265,7 +265,7 @@ > CAIRO_LIBS = $(shell pkg-config --libs cairo) > PANGO_CFLAGS = $(shell pkg-config --cflags pangocairo) > PANGO_LIBS = $(shell pkg-config --libs pangocairo) > - CAIRO_OBJS = gp_cairo.o > + CAIRO_OBJS = gp_cairo.o gp_cairo_helpers.o > TERMFLAGS += $(CAIRO_CFLAGS) $(PANGO_CFLAGS) > endif > > #**************** > > Regards > > Tatsuro > Thanks for pointing this out. However, this introduces another (more subtle) error when building with wxwidgets support. Currently the object file gp_cairo_helpers.o is listed *both* in CAIRO_OBJS and WX_OBJS, which leads to multiple-definition-errors at link stage when gnuplot os built with wxwidgets support. It should be listed only once, and this would be correctly in CAIRO_OBJS (since building with wxt implies building with cairo), and hence removed in WX_OBJS as diff -r fa3081dc37de config/makefile.mgw --- a/config/makefile.mgw Mon Aug 31 10:53:07 2009 +0200 +++ b/config/makefile.mgw Mon Aug 31 10:54:15 2009 +0200 @@ -279,7 +279,7 @@ CFLAGS += -DWXWIDGETS CXXFLAGS += $(shell wx-config --cxxflags) WX_LIBS = $(shell wx-config --libs) - WX_OBJS = wxt_gui.o gp_cairo_helpers.o + WX_OBJS = wxt_gui.o endif ifdef GNU_RC benjamin |
|
From: Ethan M. <merritt@u.washington.edu> - 2009-08-31 18:05:37
|
On Monday 31 August 2009 10:32:57 Benjamin Lindner wrote: > > Thanks for pointing this out. However, this introduces another (more > subtle) error when building with wxwidgets support. > Currently the object file gp_cairo_helpers.o is listed *both* in > CAIRO_OBJS and WX_OBJS, which leads to multiple-definition-errors at > link stage when gnuplot os built with wxwidgets support. > It should be listed only once, and this would be correctly in CAIRO_OBJS > (since building with wxt implies building with cairo), and hence removed > in WX_OBJS as Yes, already in CVS. Thanks |