|
From: Mojca M. <moj...@gm...> - 2014-02-24 21:09:24
|
On Mon, Feb 24, 2014 at 9:12 PM, Bastian Märkisch <bma...@we...> wrote: > Am 24.02.2014 20:39, schrieb Ethan A Merritt: >> On Monday, 24 February, 2014 20:28:05 Mojca Miklavec wrote: >>> On Mon, Feb 24, 2014 at 7:25 PM, Ethan A Merritt wrote: >>> >>> The problem is that -I/opt/local/include seems to be the first >>> argument to compiler "no matter what". I inspected the Makefiles a bit >>> and it seems that this is set by CPPFLAGS. I'm not exactly sure what >>> sets it, but the workaround seems to be to set >>> export INCLUDES="$QT_CFLAGS" >>> which puts the paths to Qt5 in front of everything else. Without that, >>> Qt4 is always found first. >>> >>> Despite this, I still believe that configuration should work properly >>> when pkg-config is absent. >>> >>> Weird enough, after I have compiled gnuplot in a slightly different >>> way (without excluding MacPorts libraries, but maybe only the timing >>> has changed), I get >>> >>> gnuplot> plot sin(x) >>> QIODevice::write: device not open >>> QIODevice::write: device not open > > Adding this snippet to qt_flushOutBuffer() solves that problem: > > if (!qt || !qt->socket.isValid()) > return; This avoids the QIODevice warnings/errors. But in general I still get either Terminal type set to 'qt' gnuplot> plot sin(x) Error: short read from gnuplot_qt socket gnuplot> quit $ Event not swallowed ! 1041 ############### WRONG readEvent 0 6851 or Terminal type set to 'qt' gnuplot> plot sin(x) Error: short read from gnuplot_qt socket gnuplot> qt_processTermEvent received a GE_fontprops event. This should not have happened gnuplot> plot sin(x) depending on how much I wait before quitting. Mojca |