|
From: Tatsuro M. <tma...@ya...> - 2009-09-20 21:29:27
|
Hello
I have posted a thread about a problem on console mode gnuplot for windows with wxt.
I am using GCC-4.4.0/Mingw.
The gnuplot.exe (ver 4.3 ) with does not start.
$ gnuplot
Tatsu@INSPIRON6000 /c/Program Files/Gnuplot4.3wxt
$
Without wxt
$ gnuplot
G N U P L O T
Version 4.3 patchlevel 0
last modified August 2009
System: MS-Windows 32 bit
:
:
However,
$ gnuplot -e "plot sin(x); pause 1"
and
$ echo 'plot sin(x) ; pause 1' | gnuplot
works even on gnuplot with wxt.
I have struggled with gdb and found that
(!isatty(fileno(stdin))) is false for the gnuplot without the wxt but true for one without wxt.
I also found taht stdin, stdout, and stderr does not work.
In short, gnuplot with wxt built on gcc/mingw does not have standard i/o.
Perhaps this may be a side effect with gnuplot linked with wxWedgets.
Michael Goffioul had built the console mode of gnuplot for windows with wxt by MSVC++.
This problem may be specific to the combination of GCC/mingw and wxt.
Does anyone have ideas on this issue ?
Regards
Tatsuro
Tatsuro
--------------------------------------
Thanks 10 years! Yahoo! Shopping and Yahoo! Auctions
http://pr.mail.yahoo.co.jp/ec10years/
|
|
From: Benjamin L. <lin...@gm...> - 2009-09-23 15:50:09
|
> Hello > > I have posted a thread about a problem on console mode gnuplot for windows > with wxt. > I am using GCC-4.4.0/Mingw. > > The gnuplot.exe (ver 4.3 ) with does not start. > > $ gnuplot > > Tatsu@INSPIRON6000 /c/Program Files/Gnuplot4.3wxt > $ > > Without wxt > $ gnuplot > > > G N U P L O T > Version 4.3 patchlevel 0 > last modified August 2009 > System: MS-Windows 32 bit > > : > : > > However, > $ gnuplot -e "plot sin(x); pause 1" > and > $ echo 'plot sin(x) ; pause 1' | gnuplot > > works even on gnuplot with wxt. > > I have struggled with gdb and found that > > (!isatty(fileno(stdin))) is false for the gnuplot without the wxt but true > for one without wxt. > I also found taht stdin, stdout, and stderr does not work. > > In short, gnuplot with wxt built on gcc/mingw does not have standard i/o. > > Perhaps this may be a side effect with gnuplot linked with wxWedgets. > > Michael Goffioul had built the console mode of gnuplot for windows with > wxt by MSVC++. > > This problem may be specific to the combination of GCC/mingw and wxt. > > Does anyone have ideas on this issue ? > The wxt link flags incorrectly include the setting "-mwindows", which causes gnuplot to be a gui-subsystem application, no longer a console-subsystem application. Thus stdin/stdout will not work. You have to modify the flags returned by wx-config. benjamin -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser |
|
From: Tatsuro M. <tma...@ya...> - 2009-09-24 10:15:31
|
Hello Fine!! Thanks a lot. --- Benjamin Lindner wrote: > The wxt link flags incorrectly include the setting "-mwindows", which causes gnuplot to be a > gui-subsystem application, no longer a console-subsystem application. Thus stdin/stdout will not > work. > You have to modify the flags returned by wx-config. > > benjamin Tatsuro -------------------------------------- Thanks 10 years! Yahoo! Shopping and Yahoo! Auctions http://pr.mail.yahoo.co.jp/ec10years/ |
|
From: Ethan M. <merritt@u.washington.edu> - 2009-10-06 01:50:54
|
On Wednesday 23 September 2009, Benjamin Lindner wrote: > > > I have posted a thread about a problem on console mode gnuplot for windows > > with wxt. > The wxt link flags incorrectly include the setting "-mwindows", which causes gnuplot to be a gui-subsystem application, no longer a console-subsystem application. Thus stdin/stdout will not work. > You have to modify the flags returned by wx-config. Could you please submit a patch for the INSTALL file or else a separate bit of documentation that explains this to people trying to build under MSWin? thanks, Ethan |
|
From: Ethan M. <merritt@u.washington.edu> - 2009-10-06 04:01:14
|
On Monday 05 October 2009, Ethan Merritt wrote: > On Wednesday 23 September 2009, Benjamin Lindner wrote: > > > > > I have posted a thread about a problem on console mode gnuplot for windows > > > with wxt. > > > The wxt link flags incorrectly include the setting "-mwindows", which causes gnuplot to be a gui-subsystem application, no longer a console-subsystem application. Thus stdin/stdout will not work. > > You have to modify the flags returned by wx-config. > > Could you please submit a patch for the INSTALL file or else > a separate bit of documentation that explains this to people > trying to build under MSWin? Sorry, I see that in working through a 2 week backlog of Email I missed a set of follow-on patch proposals. Was there a final patch version that I should apply? Ethan |
|
From: Tatsuro M. <tma...@ya...> - 2009-10-06 06:07:53
Attachments:
makefile.mgw.3.patch
|
Hello --- Ethan Merrt wrote: > > Sorry, I see that in working through a 2 week backlog of Email I missed > a set of follow-on patch proposals. Was there a final patch version that > I should apply? > I am sending a mail in which the final patch is attached again. Explanation Remove "-Wl,--subsystem,windows++" and "-mwindows" option to get correct link options for gnuplot for windows on MinGW platform It is also to be applied for makefile.cyg but I have never to used cross-compile circumstance for windows native application on cygwin. If my English for the explanation is not good please correct it. Regards Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ |