|
From: <pl...@pi...> - 2014-05-11 11:14:13
|
Hi,
just tried to update to v5 and it barfed at the QT stage.
Making timestamp.h
/tmp/x11-libs/qt-core-4.8.2/work/qt-everywhere-opensource-src-4.8.2/bin/uic
-o ui_QtGnuplotSettings.h qtterminal/QtGnuplotSettings.ui
make[4]:
/tmp/x11-libs/qt-core-4.8.2/work/qt-everywhere-opensource-src-4.8.2/bin/uic:
Command not found
make[4]: *** [ui_QtGnuplotSettings.h] Error 127
It seems to be looking for something in a temporary build directory that
gets cleaned out once it's installed.
Where is configure digging this up from? It should presumably be looking
for something in the installed location not in the build structure.
this is probably not new because IIRC, I do not usually build it with qt
anyway.
./configure --without-qt ; went fine and installed.
===
Also noted this, that did not look too reassuring:
In function 'snprintf',
inlined from 'get_data' at plot2d.c:712:12:
/usr/include/bits/stdio2.h:65:3: warning: call to
__builtin___snprintf_chk will always overflow destination buffer
/Peter
|
|
From: sfeam <sf...@us...> - 2014-05-11 15:52:09
|
On Sunday, 11 May 2014 12:54:29 PM pl...@pi... wrote:
> Hi,
>
> just tried to update to v5 and it barfed at the QT stage.
>
>
>
> Making timestamp.h
> /tmp/x11-libs/qt-core-4.8.2/work/qt-everywhere-opensource-src-4.8.2/bin/uic
> -o ui_QtGnuplotSettings.h qtterminal/QtGnuplotSettings.ui
> make[4]:
> /tmp/x11-libs/qt-core-4.8.2/work/qt-everywhere-opensource-src-4.8.2/bin/uic:
> Command not found
> make[4]: *** [ui_QtGnuplotSettings.h] Error 127
Those messages are obviously from qt4.8, not qt5.
Gnuplot's configure script will first try to find a qt5 installation.
If it can't, then it tries to find a qt4 installation.
> Where is configure digging this up from? It should presumably be looking
> for something in the installed location not in the build structure.
The check for qt5 is done by looking for installation of the following
modules:
Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport
You should be able to find what failed by looking in the configuration
log file config.log. I am guessing that even though you installed qt5
you didn't pull one or more of those optional modules.
> ===
>
> Also noted this, that did not look too reassuring:
>
> In function 'snprintf',
> inlined from 'get_data' at plot2d.c:712:12:
> /usr/include/bits/stdio2.h:65:3: warning: call to
> __builtin___snprintf_chk will always overflow destination buffer
That is indeed an error. I wonder why I don't get the same error
message when compiling here.
thanks,
Ethan
|
|
From: <pl...@pi...> - 2014-05-11 16:24:41
|
On 05/11/14 17:51, sfeam wrote: > The check for qt5 is done by looking for installation of the following > modules: > Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport > > You should be able to find what failed by looking in the configuration > log file config.log. I am guessing that even though you installed qt5 > you didn't pull one or more of those optional modules. I didn't say I'd installed qt5 and I haven't. Gnuplot correctly detects qt4 but is looking in a temporary build directory. ./configure wxt terminal: yes Qt terminal: yes (qt4) log: configure:14155: checking for QT configure:14163: $PKG_CONFIG --exists --print-errors "QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5" configure:14166: $? = 0 configure:14181: $PKG_CONFIG --exists --print-errors "QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5" configure:14184: $? = 0 configure:14260: result: yes configure:14274: WARNING: The Qt terminal will use Qt4. ... configure:16316: result: wxt terminal: yes configure:16326: result: Qt terminal: yes (qt4) ... pkg_cv_QT_CFLAGS='-DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtSvg ' pkg_cv_QT_LIBS='-L/usr/lib/qt4 -lQtNetwork -lQtSvg -lQtGui -lQtCore ' ... QT_CFLAGS='-DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtSvg ' QT_LIBS='-L/usr/lib/qt4 -lQtNetwork -lQtSvg -lQtGui -lQtCore ' .... UIC='/tmp/x11-libs/qt-core-4.8.2/work/qt-everywhere-opensource-src-4.8.2/bin/uic' So the question remains, where is it digging this "UIC" thing from ? Maybe whatever file it sources this from is incorrect. Where should I look to see what it's doing? Thx. |
|
From: <pl...@pi...> - 2014-05-11 16:24:46
|
On 05/11/14 17:51, sfeam wrote: >> Also noted this, that did not look too reassuring: >> > >> >In function 'snprintf', >> > inlined from 'get_data' at plot2d.c:712:12: >> >/usr/include/bits/stdio2.h:65:3: warning: call to >> >__builtin___snprintf_chk will always overflow destination buffer > That is indeed an error. I wonder why I don't get the same error > message when compiling here. > > thanks, > > Ethan > Note it's a warning , not an error. If you don't sit there watching closely or your hardware is fast you'll probably miss it. /Peter. |
|
From: sfeam <sf...@us...> - 2014-05-11 16:56:08
|
On Sunday, 11 May 2014 06:18:53 PM pl...@pi... wrote:
> On 05/11/14 17:51, sfeam wrote:
> > The check for qt5 is done by looking for installation of the following
> > modules:
> > Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport
> >
> > You should be able to find what failed by looking in the configuration
> > log file config.log. I am guessing that even though you installed qt5
> > you didn't pull one or more of those optional modules.
>
> I didn't say I'd installed qt5 and I haven't.
I misunderstood your introduction:
"just tried to update to v5 and it barfed at the QT stage."
> Gnuplot correctly detects
> qt4 but is looking in a temporary build directory.
>
> ./configure
>
> wxt terminal: yes
> Qt terminal: yes (qt4)
>
>
> log:
>
> configure:14155: checking for QT
> configure:14163: $PKG_CONFIG --exists --print-errors "QtCore >= 4.5
> QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5"
> configure:14166: $? = 0
> configure:14181: $PKG_CONFIG --exists --print-errors "QtCore >= 4.5
> QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5"
> configure:14184: $? = 0
> configure:14260: result: yes
> configure:14274: WARNING: The Qt terminal will use Qt4.
> ...
>
> configure:16316: result: wxt terminal: yes
> configure:16326: result: Qt terminal: yes (qt4)
>
> ...
> pkg_cv_QT_CFLAGS='-DQT_SHARED -I/usr/include/qt4
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtSvg '
> pkg_cv_QT_LIBS='-L/usr/lib/qt4 -lQtNetwork -lQtSvg -lQtGui -lQtCore '
>
> ...
>
> QT_CFLAGS='-DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore
> -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork
> -I/usr/include/qt4/QtSvg '
> QT_LIBS='-L/usr/lib/qt4 -lQtNetwork -lQtSvg -lQtGui -lQtCore '
> ....
>
> UIC='/tmp/x11-libs/qt-core-4.8.2/work/qt-everywhere-opensource-src-4.8.2/bin/uic'
>
>
> So the question remains, where is it digging this "UIC" thing from ?
It asks pkg-config, which is supposed to announce where things have
been installed on your machine. The key lines are these:
QT4LOC=`$PKG_CONFIG --variable=exec_prefix QtCore`
UIC=`$PKG_CONFIG --variable=uic_location QtCore`
MOC=`$PKG_CONFIG --variable=moc_location QtCore`
RCC=`$PKG_CONFIG --variable=rcc_location QtCore`
LRELEASE=`$PKG_CONFIG --variable=lrelease_location QtCore`
AC_MSG_WARN([The Qt terminal will use Qt4.])
If I run this command here I get:
[1] pkg-config --variable=uic_location QtCore
/usr/lib/qt4/bin/uic
> Maybe whatever file it sources this from is incorrect.
> Where should I look to see what it's doing?
Your pkg-config is apparently returning some garbage location.
Look for a file on your system named QtCore.pc and check what
it contains. E.g.
[1] locate QtCore.pc
/usr/lib/pkgconfig/QtCore.pc
[2] cat /usr/lib/pkgconfig/QtCore.pc
...
|
|
From: <pl...@pi...> - 2014-05-11 17:21:33
|
On 05/11/14 18:52, sfeam wrote: > > On Sunday, 11 May 2014 06:18:53 PM pl...@pi... wrote: >> On 05/11/14 17:51, sfeam wrote: >>> The check for qt5 is done by looking for installation of the following >>> modules: >>> Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport >>> >>> You should be able to find what failed by looking in the configuration >>> log file config.log. I am guessing that even though you installed qt5 >>> you didn't pull one or more of those optional modules. >> >> I didn't say I'd installed qt5 and I haven't. > > I misunderstood your introduction: > "just tried to update to v5 and it barfed at the QT stage." > >> Gnuplot correctly detects >> qt4 but is looking in a temporary build directory. >> >> ./configure >> >> wxt terminal: yes >> Qt terminal: yes (qt4) >> >> >> log: >> >> configure:14155: checking for QT >> configure:14163: $PKG_CONFIG --exists --print-errors "QtCore >= 4.5 >> QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5" >> configure:14166: $? = 0 >> configure:14181: $PKG_CONFIG --exists --print-errors "QtCore >= 4.5 >> QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5" >> configure:14184: $? = 0 >> configure:14260: result: yes >> configure:14274: WARNING: The Qt terminal will use Qt4. >> ... >> >> configure:16316: result: wxt terminal: yes >> configure:16326: result: Qt terminal: yes (qt4) >> >> ... >> pkg_cv_QT_CFLAGS='-DQT_SHARED -I/usr/include/qt4 >> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui >> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtSvg ' >> pkg_cv_QT_LIBS='-L/usr/lib/qt4 -lQtNetwork -lQtSvg -lQtGui -lQtCore ' >> >> ... >> >> QT_CFLAGS='-DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore >> -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork >> -I/usr/include/qt4/QtSvg ' >> QT_LIBS='-L/usr/lib/qt4 -lQtNetwork -lQtSvg -lQtGui -lQtCore ' >> .... >> >> UIC='/tmp/x11-libs/qt-core-4.8.2/work/qt-everywhere-opensource-src-4.8.2/bin/uic' >> >> >> So the question remains, where is it digging this "UIC" thing from ? > > It asks pkg-config, which is supposed to announce where things have > been installed on your machine. The key lines are these: > QT4LOC=`$PKG_CONFIG --variable=exec_prefix QtCore` > UIC=`$PKG_CONFIG --variable=uic_location QtCore` > MOC=`$PKG_CONFIG --variable=moc_location QtCore` > RCC=`$PKG_CONFIG --variable=rcc_location QtCore` > LRELEASE=`$PKG_CONFIG --variable=lrelease_location QtCore` > AC_MSG_WARN([The Qt terminal will use Qt4.]) > > If I run this command here I get: > [1] pkg-config --variable=uic_location QtCore > /usr/lib/qt4/bin/uic > >> Maybe whatever file it sources this from is incorrect. >> Where should I look to see what it's doing? > > Your pkg-config is apparently returning some garbage location. > Look for a file on your system named QtCore.pc and check what > it contains. E.g. > > [1] locate QtCore.pc > /usr/lib/pkgconfig/QtCore.pc > [2] cat /usr/lib/pkgconfig/QtCore.pc > ... > > Thanks QtCore.pc contains the same incorrect (build) location . /usr/lib/qt4 exists but does not have bin or bin/uic.. It would have been interesting to test gnuplot's qt terminal but I don't have time to chase this down now. Thanks for the the help. At least I have an up to the minute gnuplot build now. /Peter. |
|
From: Daniel J S. <dan...@ie...> - 2014-05-11 19:40:54
|
On 05/11/2014 12:21 PM, pl...@pi... wrote: > On 05/11/14 18:52, sfeam wrote: [skip] >>> Maybe whatever file it sources this from is incorrect. >>> Where should I look to see what it's doing? >> >> Your pkg-config is apparently returning some garbage location. >> Look for a file on your system named QtCore.pc and check what >> it contains. E.g. >> >> [1] locate QtCore.pc >> /usr/lib/pkgconfig/QtCore.pc >> [2] cat /usr/lib/pkgconfig/QtCore.pc >> ... >> >> > > Thanks QtCore.pc contains the same incorrect (build) location . > > /usr/lib/qt4 exists but does not have bin or bin/uic.. What platform and architecture are you running on? I'm running 64 bit so get: config.log:LRELEASE='/usr/lib64/qt4/bin/lrelease' config.log:MOC='/usr/lib64/qt4/bin/moc' config.log:RCC='/usr/lib64/qt4/bin/rcc' config.log:UIC='/usr/lib64/qt4/bin/uic' Perhaps there are some directory remnants of an old qt4 on your system and the actual qt4 is installed elsewhere. Dan |