Gnuplot + aquaterm

Erik Luijten <[email protected]> Sat, 25 Jan 2025 22:10:43 -0600
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <CAM4Pt--jst=Y0vQ8JCXwL+8A2O=dM2wRH8x=vMY5hVohXUOJ3w@mail.gmail.com>
--===============1521501666727530182==
Content-Type: multipart/alternative; boundary="0000000000006ab6a9062c9425bd"

--0000000000006ab6a9062c9425bd
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi (I took the liberty to change the subject),

Here is an update:

1. configuration with "--with-aquaterm" completely throws off the
compilation. I found that this is caused by a specific line in the
./configure script (line 10668 in Gnuplot 6.0.2):

    CFLAGS=3D"$CFLAGS -ObjC"; LDFLAGS=3D"$LDFLAGS -framework Foundation
-framework AquaTerm"

The LDFLAGS make the configure script subsequently fail finding various
libraries (GNU readline, etc.) and the configuration of the source code is
completely wrong (numerous error messages during compilation). The problem
occurs in 5.4.10 and 6.0.2, and both on my old Intel-based Mac running
macOS Catalina and my ARM-based Mac running macOS Sequioa. I do not
understand why this happens.


2. Despite the above, I was able to compile (by changing the configure
script) Gnuplot with AquaTerm. On the Intel machine, this was
straightforward using the precompiled AquaTerm package on sourceforge. The
compiled version of Gnuplot can also be run on an ARM Mac, via emulation.
On the other hand, attempting direct compilation of Gnuplot with aquaterm
on my ARM Mac caused a problem during linking, since the sourceforge
AquaTerm framework does not provide arm64 object code.



3. To circumvent this, I tried building AquaTerm on ARM using "xcodebuild
build"; however, this failed. I admittedly do not have the bandwidth to
sort this out; pointers would be very welcome! One problem is that "
Message/NSMailDelivery.h" is used, which has been deprecated by Apple. This
may be easy to address - I simply do not know.



4. I can confirm Jun's statement: Copy/Paste from an AquaTerm window yields
a scalable (vector) object. On the other hand, Copy/Paste from a wxt
terminal seems to be a bitmap.



So, as a brief summary:
- I can make available an x86_64 version of Gnuplot with aquaterm, which
will run on ARM machines as well (but not natively).
- I would much appreciate help in building AquaTerm (
https://sourceforge.net/projects/aquaterm/files/AquaTerm/v1.1.1/) on an
arm-based Mac.



Apologies for the long message!


Erik




On Fri, Jan 24, 2025 at 2:23=E2=80=AFAM Jun T <[email protected]=
> wrote:

>
> > 2025/01/24 14:08=E3=80=81Ethan A Merritt <[email protected]>=E3=81=AE=E3=
=83=A1=E3=83=BC=E3=83=AB:
> >
> > The wxt and qt terminals can both dump PDF output of the plot currently
> > on the screen.  Is the issue that you would like it sent to a clipboard
> rather
> > than to a file?
>
> With wxt, you can copy the plot into the clipboard by pushing
> a button in the title bar of the wxt window.
> With qt, you can select the 'copy to clipboard' from the pull-down
> menu in the title bar of the qt window.
> But in both cases the plot is copied in bitmap format, not as
> vector graphics.
>
> On macOS with aquaterm, I can use the key combination Cmd-C
> to copy the plot to the clipboard in PDF format, and paste it into
> PowerPoint etc. by hitting Cmd-V.
>
>
>
>
> _______________________________________________
> gnuplot-beta mailing list
> [email protected]
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>

--0000000000006ab6a9062c9425bd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi (I took the liberty to change the subject),<br><br=
>Here is an update:<br><br>1. configuration with &quot;--with-aquaterm&quot=
; completely throws off the compilation. I found that this is caused by a s=
pecific line in the ./configure script (line 10668 in Gnuplot 6.0.2):</div>=
<div><br></div><div>





<p class=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span cla=
ss=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures"><span =
class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0=C2=A0</span>CFLAGS=3D&q=
uot;$CFLAGS -ObjC&quot;; LDFLAGS=3D&quot;$LDFLAGS -framework Foundation -fr=
amework AquaTerm&quot;</span></p><br>





<p class=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span sty=
le=3D"font-family:Arial,Helvetica,sans-serif;font-size:small;color:rgb(34,3=
4,34)">The=C2=A0LDFLAGS make the configure script subsequently fail=C2=A0fi=
nding various libraries (GNU readline, etc.) and the configuration of the s=
ource code is completely wrong (numerous error messages during compilation)=
. The problem occurs in 5.4.10 and 6.0.2, and both on my old Intel-based Ma=
c running macOS Catalina and my=C2=A0ARM-based Mac running macOS </span>Seq=
uioa<span style=3D"font-family:Arial,Helvetica,sans-serif;font-size:small;c=
olor:rgb(34,34,34)">. I do not understand why this happens.<br><br><br>2. D=
espite the above, I was able to compile (by changing the configure script) =
Gnuplot with AquaTerm. On the Intel machine, this=C2=A0was straightforward =
using the precompiled AquaTerm package on sourceforge. The compiled version=
 of Gnuplot can also be run on an ARM Mac, via emulation.=C2=A0 On the othe=
r hand, attempting direct compilation of Gnuplot with aquaterm on my ARM Ma=
c caused a problem during linking, since the sourceforge AquaTerm framework=
 does not provide arm64 object code.</span></p><p class=3D"gmail-p1" style=
=3D"margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;f=
ont-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-=
feature-settings:normal;font-stretch:normal;font-size:11px;line-height:norm=
al;font-family:Menlo;color:rgb(0,0,0)"><span style=3D"font-family:Arial,Hel=
vetica,sans-serif;font-size:small;color:rgb(34,34,34)"><br><br>3. To circum=
vent this, I tried building AquaTerm on ARM using &quot;</span><span style=
=3D"font-variant-ligatures:no-common-ligatures">xcodebuild build</span><spa=
n style=3D"color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-=
size:small">&quot;; however, this failed. I admittedly do not have the band=
width to sort this out; pointers would be very welcome! One problem is that=
 &quot;</span><span style=3D"font-variant-ligatures:no-common-ligatures">Me=
ssage/NSMailDelivery.h</span><span style=3D"color:rgb(34,34,34);font-family=
:Arial,Helvetica,sans-serif;font-size:small">&quot; is used, which has been=
 deprecated by Apple. This may be easy to address - I simply do not know.</=
span></p><p class=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:nor=
mal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size=
-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:no=
rmal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">=
<span style=3D"color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;f=
ont-size:small"><br></span></p><p class=3D"gmail-p1" style=3D"margin:0px;fo=
nt-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alter=
nates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:=
normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Me=
nlo;color:rgb(0,0,0)"><span style=3D"color:rgb(34,34,34);font-family:Arial,=
Helvetica,sans-serif;font-size:small"><br></span></p><p class=3D"gmail-p1" =
style=3D"margin:0px;font-variant-numeric:normal;font-variant-east-asian:nor=
mal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;=
font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height=
:normal;font-family:Menlo;color:rgb(0,0,0)"><span style=3D"color:rgb(34,34,=
34);font-family:Arial,Helvetica,sans-serif;font-size:small">4. I can confir=
m Jun&#39;s statement: Copy/Paste from an AquaTerm window yields a scalable=
 (vector) object. On the other hand, Copy/Paste from a wxt terminal seems t=
o be a bitmap.</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font-var=
iant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:=
normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal=
;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;co=
lor:rgb(0,0,0)"><span style=3D"color:rgb(34,34,34);font-family:Arial,Helvet=
ica,sans-serif;font-size:small"><br></span></p><p class=3D"gmail-p1" style=
=3D"margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;f=
ont-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-=
feature-settings:normal;font-stretch:normal;font-size:11px;line-height:norm=
al;font-family:Menlo;color:rgb(0,0,0)"><span style=3D"color:rgb(34,34,34);f=
ont-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p cl=
ass=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:normal;font-varia=
nt-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;f=
ont-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size=
:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style=3D=
"color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small=
">So, as a brief summary:<br>- I can make available an x86_64 version of Gn=
uplot with aquaterm, which will run on ARM machines as well (but not native=
ly).<br>- I would much appreciate help in building AquaTerm (</span><span s=
tyle=3D"font-family:Arial,Helvetica,sans-serif;font-size:small;color:rgb(34=
,34,34)"><a href=3D"https://sourceforge.net/projects/aquaterm/files/AquaTer=
m/v1.1.1/">https://sourceforge.net/projects/aquaterm/files/AquaTerm/v1.1.1/=
</a>)=C2=A0</span><span style=3D"color:rgb(34,34,34);font-family:Arial,Helv=
etica,sans-serif;font-size:small">on an arm-based Mac.</span></p><p class=
=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:normal;font-variant-=
east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font=
-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11=
px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style=3D"co=
lor:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small"><=
br></span></p><p class=3D"gmail-p1" style=3D"margin:0px;font-variant-numeri=
c:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font=
-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stret=
ch:normal;line-height:normal"><br>Apologies for the long message!</p><p cla=
ss=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:normal;font-varian=
t-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;fo=
nt-kerning:auto;font-feature-settings:normal;font-stretch:normal;line-heigh=
t:normal"><br></p><p class=3D"gmail-p1" style=3D"margin:0px;font-variant-nu=
meric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;=
font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-s=
tretch:normal;line-height:normal">Erik</p><p class=3D"gmail-p1" style=3D"ma=
rgin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-va=
riant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-featur=
e-settings:normal;font-stretch:normal;line-height:normal"><br></p></div><di=
v><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Fri, Jan 24, 2025 at 2:23=E2=80=AFAM Jun T &lt;<a href=3D"mailto:t=
[email protected]" target=3D"_blank">[email protected]=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
<br>
&gt; 2025/01/24 14:08=E3=80=81Ethan A Merritt &lt;<a href=3D"mailto:merritt=
@uw.edu" target=3D"_blank">[email protected]</a>&gt;=E3=81=AE=E3=83=A1=E3=83=
=BC=E3=83=AB:<br>
&gt; <br>
&gt; The wxt and qt terminals can both dump PDF output of the plot currentl=
y<br>
&gt; on the screen.=C2=A0 Is the issue that you would like it sent to a cli=
pboard rather<br>
&gt; than to a file?<br>
<br>
With wxt, you can copy the plot into the clipboard by pushing<br>
a button in the title bar of the wxt window.<br>
With qt, you can select the &#39;copy to clipboard&#39; from the pull-down<=
br>
menu in the title bar of the qt window.<br>
But in both cases the plot is copied in bitmap format, not as<br>
vector graphics.<br>
<br>
On macOS with aquaterm, I can use the key combination Cmd-C<br>
to copy the plot to the clipboard in PDF format, and paste it into<br>
PowerPoint etc. by hitting Cmd-V.<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
gnuplot-beta mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">gnu=
[email protected]</a><br>
Membership management via: <a href=3D"https://lists.sourceforge.net/lists/l=
istinfo/gnuplot-beta" rel=3D"noreferrer" target=3D"_blank">https://lists.so=
urceforge.net/lists/listinfo/gnuplot-beta</a><br>
</blockquote></div>
</div>

--0000000000006ab6a9062c9425bd--


--===============1521501666727530182==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1521501666727530182==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

--===============1521501666727530182==--