|
From: Tatsuro M. <tma...@ya...> - 2014-05-29 02:04:06
|
Hello I am trying to build gnuplot for windows with qt terminal on MinGW platform. In linking gnuplot_qt.exe, the following warnig appear: warning: cannot find entry symbol mainCRTStartup; defaulting to 00401000 Perhaps this is related to failure in executing qt terminal. Terminal type set to 'qt' gnuplot> plot sin(x) Could not connect to gnuplot_qt "qtgnuplot4832" . Starting a new one Warning: slow font initializationgnuplot> I'm now using Qt-4.8.6 build myself using the same gcc (4.8.2 MinGW-w64 win32) to build gnuplot and dependencies. Regards Tatsuro |
|
From: Daniel J S. <dan...@ie...> - 2014-05-29 02:25:53
|
On 05/28/2014 09:03 PM, Tatsuro MATSUOKA wrote:
> Hello
>
> I am trying to build gnuplot for windows with qt terminal on MinGW platform.
>
> In linking gnuplot_qt.exe, the following warnig appear:
> warning: cannot find entry symbol mainCRTStartup; defaulting to 00401000
>
> Perhaps this is related to failure in executing qt terminal.
Maybe, but I don't think so because the program runs. That warning is
indicating that the linker can't find main(){} for some reason and is
making a good guess at it.
> Terminal type set to 'qt'
> gnuplot> plot sin(x)
> Could not connect to gnuplot_qt "qtgnuplot4832" . Starting a new one
>
> Warning: slow font initializationgnuplot>
>
> I'm now using Qt-4.8.6 build myself using the same gcc (4.8.2 MinGW-w64 win32) to build
> gnuplot and dependencies.
This sounds like the issue that came up not too long ago about TrueType
fonts taking much longer than they should to load. There were two
TrueType fonts in particular found to be the problem, but I forget which.
Dan
|
|
From: Tatsuro M. <tma...@ya...> - 2014-05-29 03:30:38
|
--- On Thu, 2014/5/29, Daniel J Sebald wrote:
> On 05/28/2014 09:03 PM, Tatsuro MATSUOKA wrote:
> > Hello
> >
> > I am trying to build gnuplot for windows with qt terminal on MinGW platform.
> >
> > In linking gnuplot_qt.exe, the following warnig appear:
> > warning: cannot find entry symbol mainCRTStartup; defaulting to 00401000
> >
> > Perhaps this is related to failure in executing qt terminal.
>
> Maybe, but I don't think so because the program runs. That warning is
> indicating that the linker can't find main(){} for some reason and is
> making a good guess at it.
Thank you for your reply.
gnuplot_qt.cpp has apparently a main() function.
<snip>
#include "QtGnuplotApplication.h"
#include <QtCore>
#include <signal.h>
int main(int argc, char* argv[])
<snip>
>
>
> > Terminal type set to 'qt'
> > gnuplot> plot sin(x)
> > Could not connect to gnuplot_qt "qtgnuplot4832" . Starting a new one
> >
> > Warning: slow font initializationgnuplot>
> >
> > I'm now using Qt-4.8.6 build myself using the same gcc (4.8.2 MinGW-w64 win32) to build
> > gnuplot and dependencies.
>
> This sounds like the issue that came up not too long ago about TrueType
> fonts taking much longer than they should to load. There were two
> TrueType fonts in particular found to be the problem, but I forget which.
Mmmm. Does anyone remember the issue?
Anyway thanks for your pointer.
Tatsuro
|
|
From: Tatsuro M. <tma...@ya...> - 2014-05-29 04:17:30
|
--- On Thu, 2014/5/29, Tatsuro MATSUOKA wrote:
> --- On Thu, 2014/5/29, Daniel J Sebald wrote:
> > On 05/28/2014 09:03 PM, Tatsuro MATSUOKA wrote:
> > > Hello
> > >
> > > I am trying to build gnuplot for windows with qt terminal on MinGW platform.
> > >
> > > In linking gnuplot_qt.exe, the following warnig appear:
> > > warning: cannot find entry symbol mainCRTStartup; defaulting to 00401000
> > >
> > > Perhaps this is related to failure in executing qt terminal.
> >
> > Maybe, but I don't think so because the program runs. That warning is
> > indicating that the linker can't find main(){} for some reason and is
> > making a good guess at it.
>
> Thank you for your reply.
> gnuplot_qt.cpp has apparently a main() function.
>
> <snip>
> #include "QtGnuplotApplication.h"
> #include <QtCore>
> #include <signal.h>
>
> int main(int argc, char* argv[])
> <snip>
>
>
>
> >
> >
> > > Terminal type set to 'qt'
> > > gnuplot> plot sin(x)
> > > Could not connect to gnuplot_qt "qtgnuplot4832" . Starting a new one
> > >
> > > Warning: slow font initializationgnuplot>
> > >
> > > I'm now using Qt-4.8.6 build myself using the same gcc (4.8.2 MinGW-w64 win32) to build
> > > gnuplot and dependencies.
> >
> > This sounds like the issue that came up not too long ago about TrueType
> > fonts taking much longer than they should to load. There were two
> > TrueType fonts in particular found to be the problem, but I forget which.
>
> Mmmm. Does anyone remember the issue?
>
> Anyway thanks for your pointer.
>
> Tatsuro
>
I have referred msvc/Makefile. From the description "$(LD) /entry:mainCRTStartup" in it, I have used -Wl,-emainCRTStartup flag. I deleted this flag and I can see qt terminal plot but it is insufficient.
See:
http://www.geocities.jp/tmgpltwin/Files/Files.html#0058
20140529qt_mgw.png
On the command line I found the message:
gnuplot> plot sin(x)
Warning: slow font initializationqt_processTermEvent received a GE_fontprops eve
nt. This should not have happened.
Any suggestions?
Regards
Tatsuro
|
|
From: sfeam <sf...@us...> - 2014-05-29 04:48:34
|
On Thursday, 29 May 2014 01:17:20 PM Tatsuro MATSUOKA wrote:
> --- On Thu, 2014/5/29, Tatsuro MATSUOKA wrote:
> > --- On Thu, 2014/5/29, Daniel J Sebald wrote:
> > > On 05/28/2014 09:03 PM, Tatsuro MATSUOKA wrote:
> > > > Hello
> > > >
> > > > I am trying to build gnuplot for windows with qt terminal on MinGW platform.
> > > >
> > > > In linking gnuplot_qt.exe, the following warnig appear:
> > > > warning: cannot find entry symbol mainCRTStartup; defaulting to 00401000
> > > >
> > > > Perhaps this is related to failure in executing qt terminal.
> > >
> > > Maybe, but I don't think so because the program runs. That warning is
> > > indicating that the linker can't find main(){} for some reason and is
> > > making a good guess at it.
> >
> > Thank you for your reply.
> > gnuplot_qt.cpp has apparently a main() function.
> >
> > <snip>
> > #include "QtGnuplotApplication.h"
> > #include <QtCore>
> > #include <signal.h>
> >
> > int main(int argc, char* argv[])
> > <snip>
> >
> >
> >
> > >
> > >
> > > > Terminal type set to 'qt'
> > > > gnuplot> plot sin(x)
> > > > Could not connect to gnuplot_qt "qtgnuplot4832" . Starting a new one
> > > >
> > > > Warning: slow font initializationgnuplot>
> > > >
> > > > I'm now using Qt-4.8.6 build myself using the same gcc (4.8.2 MinGW-w64 win32) to build
> > > > gnuplot and dependencies.
> > >
> > > This sounds like the issue that came up not too long ago about TrueType
> > > fonts taking much longer than they should to load. There were two
> > > TrueType fonts in particular found to be the problem, but I forget which.
> >
> > Mmmm. Does anyone remember the issue?
> >
> > Anyway thanks for your pointer.
> >
> > Tatsuro
> >
>
> I have referred msvc/Makefile. From the description "$(LD) /entry:mainCRTStartup" in it, I have used -Wl,-emainCRTStartup flag. I deleted this flag and I can see qt terminal plot but it is insufficient.
>
> See:
> http://www.geocities.jp/tmgpltwin/Files/Files.html#0058
> 20140529qt_mgw.png
>
> On the command line I found the message:
>
> gnuplot> plot sin(x)
>
> Warning: slow font initializationqt_processTermEvent received a GE_fontprops eve
> nt. This should not have happened.
>
> Any suggestions?
Is the process gnuplot_qt running at this point, or has it died?
If gnuplot_qt is running then I think the problem really is due to the font
server, not gnuplot. The one time I saw this on linux, it was with a
newly installed Windows font. The first plot command in gnuplot produced
that error message and failed to obtain the font. However by the second
plot command the font had finished initializing and the message never appeared
again.
Ethan
>
> Regards
>
> Tatsuro
>
>
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
|
|
From: Tatsuro M. <tma...@ya...> - 2014-05-29 04:58:21
|
> > > > See: > > http://www.geocities.jp/tmgpltwin/Files/Files.html#0058 > > 20140529qt_mgw.png > > > > On the command line I found the message: > > > > gnuplot> plot sin(x) > > > > Warning: slow font initializationqt_processTermEvent received a GE_fontprops eve > > nt. This should not have happened. > > > > Any suggestions? > --- On Thu, 2014/5/29, sfeam wrote: > Is the process gnuplot_qt running at this point, or has it died? > > If gnuplot_qt is running then I think the problem really is due to the font > server, not gnuplot. The one time I saw this on linux, it was with a > newly installed Windows font. The first plot command in gnuplot produced > that error message and failed to obtain the font. However by the second > plot command the font had finished initializing and the message never appeared > again. > > Ethan Ethan. You are right. I restart gnuplot qt terminal begin works correctly but mousing and zooming seems not to work. Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2014-05-29 05:32:56
|
--- On Thu, 2014/5/29, Tatsuro MATSUOKA wrote: > You are right. I restart gnuplot qt terminal begin works correctly but mousing and zooming seems not to work. > > Tatsuro Mousing and zoom works but slow. Translation does not work. Tatsuro |
|
From: Bastian M. <bma...@we...> - 2014-05-29 18:18:33
|
I cannot reproduce your problems here using MSVC 2012 and pre-built Qt 5.1.2 (MSVC) on Windows 8. Also MinGW with pre-built Qt 5.1.2 (MinGW64) works as expected. That is actually somewhat surprising since this mixes MinGW's libs with MinGW64's ... Have you tried using the provided binary Qt versions for MinGW64? Bastian Am 29.05.2014 07:32, schrieb Tatsuro MATSUOKA: > --- On Thu, 2014/5/29, Tatsuro MATSUOKA wrote: > >> You are right. I restart gnuplot qt terminal begin works correctly but mousing and zooming seems not to work. >> >> Tatsuro > > Mousing and zoom works but slow. > Translation does not work. > Tatsuro > |
|
From: Tatsuro M. <tma...@ya...> - 2014-05-29 20:04:29
|
--- On Fri, 2014/5/30, Bastian Märkisch wrote: > I cannot reproduce your problems here using MSVC 2012 and pre-built Qt > 5.1.2 (MSVC) on Windows 8. Also MinGW with pre-built Qt 5.1.2 (MinGW64) > works as expected. That is actually somewhat surprising since this mixes > MinGW's libs with MinGW64's ... > > Have you tried using the provided binary Qt versions for MinGW64? > The MinGW64 projrcts provides both 64 bit and 32 bit compliers. Which one do you indicate by MinGW64. First try I have tried pre-built Qt 5.3.0 on MinGW 4.8.2 32bit. But the compliler is posix threads version. I have built my all dependencies using win32 threads. Therefore I build Qt 4.8.6 on MinGW w62-32 dawarf2 win32 thread and used. Regards Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2014-05-31 05:12:09
|
--- On Fri, 2014/5/30, Tatsuro MATSUOKA wrote: > --- On Fri, 2014/5/30, Bastian Märkisch wrote: > > > I cannot reproduce your problems here using MSVC 2012 and pre-built Qt > > 5.1.2 (MSVC) on Windows 8. Also MinGW with pre-built Qt 5.1.2 (MinGW64) > > works as expected. That is actually somewhat surprising since this mixes > > MinGW's libs with MinGW64's ... > > > > Have you tried using the provided binary Qt versions for MinGW64? > > > > The MinGW64 projrcts provides both 64 bit and 32 bit compliers. > Which one do you indicate by MinGW64. > > First try I have tried pre-built Qt 5.3.0 on MinGW 4.8.2 32bit. > But the compliler is posix threads version. > I have built my all dependencies using win32 threads. > > Therefore I build Qt 4.8.6 on MinGW w62-32 dawarf2 win32 thread and used. Although MinGW binary for Qt 5.3 is created by MinGW 4.8.2 with posix thread I heve tried again building gnuplot binary. As you told, the mouse operation can be done without problem. At the moment I will use Qt 5.3 pre-build binary and will y be replaced by self build one using MinGW with win32 thread. Thank you for your advise. Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2014-05-29 04:54:03
|
--- On Thu, 2014/5/29, Tatsuro MATSUOKA wrote:
> --- On Thu, 2014/5/29, Tatsuro MATSUOKA wrote:
> > --- On Thu, 2014/5/29, Daniel J Sebald wrote:
> > > On 05/28/2014 09:03 PM, Tatsuro MATSUOKA wrote:
> > > > Hello
> > > >
> > > > I am trying to build gnuplot for windows with qt terminal on MinGW platform.
> > > >
> > > > In linking gnuplot_qt.exe, the following warnig appear:
> > > > warning: cannot find entry symbol mainCRTStartup; defaulting to 00401000
> > > >
> > > > Perhaps this is related to failure in executing qt terminal.
> > >
> > > Maybe, but I don't think so because the program runs. That warning is
> > > indicating that the linker can't find main(){} for some reason and is
> > > making a good guess at it.
> >
> > Thank you for your reply.
> > gnuplot_qt.cpp has apparently a main() function.
> >
> > <snip>
> > #include "QtGnuplotApplication.h"
> > #include <QtCore>
> > #include <signal.h>
> >
> > int main(int argc, char* argv[])
> > <snip>
> >
> >
> >
> > >
> > >
> > > > Terminal type set to 'qt'
> > > > gnuplot> plot sin(x)
> > > > Could not connect to gnuplot_qt "qtgnuplot4832" . Starting a new one
> > > >
> > > > Warning: slow font initializationgnuplot>
> > > >
> > > > I'm now using Qt-4.8.6 build myself using the same gcc (4.8.2 MinGW-w64 win32) to build
> > > > gnuplot and dependencies.
> > >
> > > This sounds like the issue that came up not too long ago about TrueType
> > > fonts taking much longer than they should to load. There were two
> > > TrueType fonts in particular found to be the problem, but I forget which.
> >
> > Mmmm. Does anyone remember the issue?
> >
> > Anyway thanks for your pointer.
> >
> > Tatsuro
> >
>
> I have referred msvc/Makefile. From the description "$(LD) /entry:mainCRTStartup" in it, I have used -Wl,-emainCRTStartup flag. I deleted this flag and I can see qt terminal plot but it is insufficient.
>
> See:
> http://www.geocities.jp/tmgpltwin/Files/Files.html#0058
> 20140529qt_mgw.png
>
> On the command line I found the message:
>
> gnuplot> plot sin(x)
>
> Warning: slow font initializationqt_processTermEvent received a GE_fontprops eve
> nt. This should not have happened.
>
> Any suggestions?
I closed gnuplot and restart it and then
Terminal type set to 'qt'
gnuplot> plot sin(x)
gnuplot>
No meassage appeared and plot is appeared as:
http://www.geocities.jp/tmgpltwin/Files/Files.html#0059
20140529qt_mgw2.png
However, mouse zoom and grid buttom does not work. Other features (like save as) will be tested later.
Regards
Tatsuro
|
|
From: Daniel J S. <dan...@ie...> - 2014-05-29 04:32:57
|
On 05/28/2014 10:30 PM, Tatsuro MATSUOKA wrote:
> --- On Thu, 2014/5/29, Daniel J Sebald wrote:
>> On 05/28/2014 09:03 PM, Tatsuro MATSUOKA wrote:
>>> Hello
>>>
>>> I am trying to build gnuplot for windows with qt terminal on MinGW platform.
>>>
>>> In linking gnuplot_qt.exe, the following warnig appear:
>>> warning: cannot find entry symbol mainCRTStartup; defaulting to 00401000
>>>
>>> Perhaps this is related to failure in executing qt terminal.
>>
>> Maybe, but I don't think so because the program runs. That warning is
>> indicating that the linker can't find main(){} for some reason and is
>> making a good guess at it.
>
> Thank you for your reply.
> gnuplot_qt.cpp has apparently a main() function.
>
> <snip>
> #include "QtGnuplotApplication.h"
> #include<QtCore>
> #include<signal.h>
>
> int main(int argc, char* argv[])
> <snip>
Sorry Tatsuro, I could have been clearer. In the Makefile for is a
specification that the entry point should be mainCRTStartup:
gnuplot_qt.exe: ui_QtGnuplotSettings.h $(GNUPLOTQTOBJS)
$(LD) /entry:mainCRTStartup /subsystem:windows $(LDFLAGS)
/map:gnuplot_qt.map /out:$@ $(GNUPLOTQTOBJS) $(QTLIBS) shell32.lib
The linker is not finding that for some reason and defaults to the
main(){} function, which is most likely offset 00401000 if one were to
look at the linker map.
I'm not real familiar with the way Windows launches a program, but here
is a summary:
http://stackoverflow.com/questions/22934206/what-is-the-difference-between-main-and-maincrtstartup
>>> Terminal type set to 'qt'
>>> gnuplot> plot sin(x)
>>> Could not connect to gnuplot_qt "qtgnuplot4832" . Starting a new one
>>>
>>> Warning: slow font initializationgnuplot>
>>>
>>> I'm now using Qt-4.8.6 build myself using the same gcc (4.8.2 MinGW-w64 win32) to build
>>> gnuplot and dependencies.
>>
>> This sounds like the issue that came up not too long ago about TrueType
>> fonts taking much longer than they should to load. There were two
>> TrueType fonts in particular found to be the problem, but I forget which.
>
> Mmmm. Does anyone remember the issue?
I'm sure. We looked at this one for quite a while thinking we could
find a solution, but then realized there wasn't a good one if a font
library takes so long to load. But who knows? Perhaps you've found the
source of the very slow fonts. (It would be nice, but I'm not counting
on it.) Maybe (repeat "maybe") by going directly to main() and
bypassing the run-time library setup routines at the launch the system
fonts hash/tree/whatever isn't setup properly and the system has to
search for a long time to find the fonts rather than jumping right to them.
If you can figure out how to link your system to get rid of the warning
message, and if that solves the slow font problem, it could lead somewhere.
Dan
|