From lurker-index@localhost Wed Apr 27 01:02:06 2016
Return-Path: <good1.2guy@gmail.com>
Received: from lin16.mojsite.com (178.218.164.164:993) by g0n.xdwgrp with
  IMAP4-SSL; 26 Apr 2016 23:02:06 -0000
Envelope-to: miro.rovis@croatiafidelis.hr
Delivery-date: Tue, 26 Apr 2016 23:56:30 +0200
Received: from mail-wm0-f51.google.com ([74.125.82.51]:35726)
	by lin16.mojsite.com with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.86_1)
	(envelope-from <good1.2guy@gmail.com>)
	id 1avAy0-0001g4-2b
	for miro.rovis@croatiafidelis.hr; Tue, 26 Apr 2016 23:56:24 +0200
Received: by mail-wm0-f51.google.com with SMTP id e201so13553095wme.0
        for <miro.rovis@croatiafidelis.hr>; Tue, 26 Apr 2016 14:56:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to;
        bh=j1jhB2Qm0s9bDA8KmyDr+cxsarQq4YR2MByG0eMnTcI=;
        b=tsr9qm5BTFudt8+Bp5mYRtOqlk8PaQr2a1AceqwPlH/4pzW6/zkw2wuL1m4MtG4yCF
         zR27XlDHO7Exh/fO6n6XqJqkGExSfIWrg2FxfqegxuOl36I//TmV1r1LTm79VRxP6V4H
         rhwZO+cSHQGpFpdx+3nkNrp4mqSki50QVScV1o31aIfD7FYXcT5ym4/QVPw018OAV//1
         W/Pk2GOCRr9Gi9UrFG0WS+noPJthjBHN+dvnpkHM7rsyYhyOqNxv0vwz3Zjn4mmNKOuK
         oUzLOjFf328USMLmj6BsJy+jzd/4+tBG8poawA1whX8HQeV1U17dSOpCoyX/ouhwnXku
         2lUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to;
        bh=j1jhB2Qm0s9bDA8KmyDr+cxsarQq4YR2MByG0eMnTcI=;
        b=fSmczAzEgu04mumCOaIx+5zlv7T+o0GDhGruqbUWOBu8bdv9VWsmlhcOddAdw6GQYD
         kcWEFEe+eNjfFIfK3v9W+9WivSEprSvTlObM0uaibgl8HVp/zZ+cL5rSS2Fcl7UE7gRA
         45wSWKIAs15C0xrp7idvde1Qok9c+1Cl3DLi7GUnSsnN8azg/S0ya37s6W2nFmB+2ZHU
         0SAk0SetmTZE0X8ykS7Y2MdyfIooyqGaqFzsRq/Zinln/VlPT4wzGLhBuOWVc0oJmQyY
         lSaYZIGUuMzZc7C+3idpZ97zb0TQyb4t5jiJNgH7kI+MESVCr3CYk+F7evZ/4Kdq35mp
         B4wQ==
X-Gm-Message-State: AOPr4FVcNFAJ82wc8+rq/jiDelriPxOwrPikj6grxaECOeZdKL50VRy5ubxNkYix76qqc6gyx2fmGcoXW0AKEA==
MIME-Version: 1.0
X-Received: by 10.194.158.226 with SMTP id wx2mr5267982wjb.91.1461707783530;
 Tue, 26 Apr 2016 14:56:23 -0700 (PDT)
Received: by 10.194.152.169 with HTTP; Tue, 26 Apr 2016 14:56:23 -0700 (PDT)
In-Reply-To: <20160426213912.GD30714@g0n>
References: <1116852607.286658.1459012209035.JavaMail.yahoo@mail.yahoo.com>
	<540472551.2977197.1459819636209.JavaMail.yahoo@mail.yahoo.com>
	<57036BA6.9040807@nordland-teknikk.no>
	<2084737865.1254819.1460061762003.JavaMail.yahoo@mail.yahoo.com>
	<5707C4D5.8080901@nordland-teknikk.no>
	<CAC2VF9_ZzyGBNFPNWMtO60iJudvLYQd_WcVBTu1WV8nG=cjQCg@mail.gmail.com>
	<570A6B7B.3020105@nordland-teknikk.no>
	<CAC2VF9-a38yqhQPXyyTJQsxJhEOr_Lt0RhqWnj+dsCUxSmrDkg@mail.gmail.com>
	<570AAA40.2030903@nordland-teknikk.no>
	<CAC2VF983G0VTMeyF77+86jZ6YHn0MomOOM8EoKbB2dhPa8q+Fg@mail.gmail.com>
	<20160426213912.GD30714@g0n>
Date: Tue, 26 Apr 2016 15:56:23 -0600
Message-ID: <CAC2VF98meF2iyEu7HWd96BrWD3DGeq6_QeNT-g2TzTJedWLK3g@mail.gmail.com>
Subject: Re: [CinCV TNG] Building in Gentoo; Was: misreplied non-related
From: Good Guy <good1.2guy@gmail.com>
To: Miroslav Rovis <miro.rovis@croatiafidelis.hr>
Content-Type: multipart/alternative; boundary=089e01184cc633ef0505316a5d61
X-PlusHosting-MailScanner-Information: Please contact the ISP for more information
X-PlusHosting-MailScanner-ID: 1avAy0-0001g4-2b
X-PlusHosting-MailScanner: Found to be clean
X-PlusHosting-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,
	score=0.082, required 5, BAYES_50 0.80, FREEMAIL_FROM 0.00,
	HTML_MESSAGE 0.00, RCVD_IN_DNSWL_LOW -0.70, RCVD_IN_MSPIKE_H3 -0.01,
	RCVD_IN_MSPIKE_WL -0.01, SPF_PASS -0.00, URIBL_BLOCKED 0.00)
X-PlusHosting-MailScanner-From: good1.2guy@gmail.com
X-Spam-Status: No
X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=

--089e01184cc633ef0505316a5d61
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Good!  Yeah!

Hope the rest goes well.

If you have more issues, let me know.

gg


On Tue, Apr 26, 2016 at 3:39 PM, Miroslav Rovis <
miro.rovis@croatiafidelis.hr> wrote:

> Good news! The suggestion below...
>
> On 160426-14:54-0600, Good Guy wrote:
> > >
> > > python < ./bccmdl.py > bcxfer.C
> > > g++ `cat x86_64/c_flags` -c condition.C -o x86_64/condition.o
> > > g++ `cat x86_64/c_flags` -c errorbox.C -o x86_64/errorbox.o
> > > g++ `cat x86_64/c_flags` -c filesystem.C -o x86_64/filesystem.o
> > >   File "<stdin>", line 498
> > >     print "%svoid %sxfer_%s_to_%s" % (pfx, cls, fr_cmdl[3:],
> to_cmdl[3:]),
> > >                                  ^
> > > SyntaxError: invalid syntax
> > > Makefile:121: recipe for target 'bcxfer.C' failed
> > > make[2]: *** [bcxfer.C] Error 1
> > > make[2]: *** Waiting for unfinished jobs....
> > > filesystem.C: In constructor =E2=80=98FileSystem::FileSystem()=E2=80=
=99:
> > > filesystem.C:123:38: warning: ignoring return value of =E2=80=98char*
> > > getcwd(char*, size_t)=E2=80=99, declared with attribute warn_unused_r=
esult
> > > [-Wunused-result]
> > >   (void)getcwd(current_dir, BCTEXTLEN);
> > >                                       ^
> > >
> >
> > this fragment is from the first build error in the log.
> >
> > It occurs in the guicast llbrary build, which is part of cinelerra
> proper.
> > This script is a "code generator", which outputs a program which are
> > the colormodel transfer functions.  All that said, the args of the the
> > "print"
> > are strings, and this is an example of pasting it into a python2.7
> > interpreter:
> >
> > [root@telluride Downloads]# python2.7
> > Python 2.7.11 (default, Mar 31 2016, 20:46:51)
> > [GCC 5.3.1 20151207 (Red Hat 5.3.1-2)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> print "%svoid %sxfer_%s_to_%s" % ("arg1 ", "arg2 ", "arg3 ", "arg4"=
),
> > arg1 void arg2 xfer_arg3 _to_arg4
> >
> > which operates without errors.
> > and now, this is what happens when you use python3:
> > [root@telluride Downloads]# python3
> > Python 3.4.3 (default, Mar 31 2016, 20:42:37)
> > [GCC 5.3.1 20151207 (Red Hat 5.3.1-2)] on linux
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> print "%svoid %sxfer_%s_to_%s" % ("arg1 ", "arg2 ", "arg3 ", "arg4"=
),
> >   File "<stdin>", line 1
> >     print "%svoid %sxfer_%s_to_%s" % ("arg1 ", "arg2 ", "arg3 ", "arg4"=
),
> >                                  ^
> > SyntaxError: invalid syntax
> >
>
> these, which are instructions actually:
>
> > which looks just like the error message.  So, here is another attempt
> > at making sure that python2.7 is used.
> >
> > cd cinelerra5/cinelerra-5.1
> > echo "EXTRA_LIBS +=3D -lva" >> global_config
> > sed -e '1,1c#!/usr/bin/python2.7' -i guicast/bccmdl.py
> > sed -e '/^bcxfer.C:/,+1s/python/python2.7/' -i guicast/Makefile
> > ./configure shared
> > make >& log
> >
>
> That worked. make compiled it without errors whatsoever.
>
> The patch did look like this below:
> > This patch should look like:
> > [root@telluride guicast]# diff Makefile
> > /mnt0/cinelerra5/cinelerra-5.1/guicast/Makefile
> > 121c121
> > <       python2.7 < ./bccmdl.py > bcxfer.C
> > ---
> > >       python < ./bccmdl.py > bcxfer.C
> >
> > You should use both seds.
> > Pretty sure this is the first big problem.  It does not mean it is the
> > last, but it is
> > in the path.  Stay in touch, and let me know what your schedule may be
> so I
> > can try to plan.
>
> I already told you about the schedule...
>
> And I'll try and use the rest of your instructions, as can be read at:
>
> http://lists.cinelerra-cv.org/pipermail/cinelerra/2016q2/004678.html
>
> The remaining part [PASTING]:
>
> If this does not report errors, then run:
> make install >> log
>
> on the oft chance that it actually builds on the first try, I would
> copy the bin directory to a a good spot, and reset the file permissions
> to match the needed user/group etc...
>
> mkdir /opt
> cp -a /<build_path>/cinelerra5/cinelerra-5.1/lbin /opt/cin
> chown -R "owner:group" /opt/cin
>
> [PASTED]
>
> >
> > gg
> >
>
> Regards!
> --
> Miroslav Rovis
> Zagreb, Croatia
> http://www.CroatiaFidelis.hr
>

--089e01184cc633ef0505316a5d61
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div>Good!=C2=A0 Yeah!<br><br></div>Hope the res=
t goes well.<br><br></div>If you have more issues, let me know.<br><br></di=
v>gg<br><br></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"=
>On Tue, Apr 26, 2016 at 3:39 PM, Miroslav Rovis <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:miro.rovis@croatiafidelis.hr" target=3D"_blank">miro.rovis@cr=
oatiafidelis.hr</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Goo=
d news! The suggestion below...<br>
<br>
On 160426-14:54-0600, Good Guy wrote:<br>
&gt; &gt;<br>
&gt; &gt; python &lt; ./bccmdl.py &gt; bcxfer.C<br>
&gt; &gt; g++ `cat x86_64/c_flags` -c condition.C -o x86_64/condition.o<br>
&gt; &gt; g++ `cat x86_64/c_flags` -c errorbox.C -o x86_64/errorbox.o<br>
&gt; &gt; g++ `cat x86_64/c_flags` -c filesystem.C -o x86_64/filesystem.o<b=
r>
&gt; &gt;=C2=A0 =C2=A0File &quot;&lt;stdin&gt;&quot;, line 498<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0print &quot;%svoid %sxfer_%s_to_%s&quot; % (pf=
x, cls, fr_cmdl[3:], to_cmdl[3:]),<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
&gt; &gt; SyntaxError: invalid syntax<br>
&gt; &gt; Makefile:121: recipe for target &#39;bcxfer.C&#39; failed<br>
&gt; &gt; make[2]: *** [bcxfer.C] Error 1<br>
&gt; &gt; make[2]: *** Waiting for unfinished jobs....<br>
&gt; &gt; filesystem.C: In constructor =E2=80=98FileSystem::FileSystem()=E2=
=80=99:<br>
&gt; &gt; filesystem.C:123:38: warning: ignoring return value of =E2=80=98c=
har*<br>
&gt; &gt; getcwd(char*, size_t)=E2=80=99, declared with attribute warn_unus=
ed_result<br>
&gt; &gt; [-Wunused-result]<br>
&gt; &gt;=C2=A0 =C2=A0(void)getcwd(current_dir, BCTEXTLEN);<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^<=
br>
&gt; &gt;<br>
&gt;<br>
&gt; this fragment is from the first build error in the log.<br>
&gt;<br>
&gt; It occurs in the guicast llbrary build, which is part of cinelerra pro=
per.<br>
&gt; This script is a &quot;code generator&quot;, which outputs a program w=
hich are<br>
&gt; the colormodel transfer functions.=C2=A0 All that said, the args of th=
e the<br>
&gt; &quot;print&quot;<br>
&gt; are strings, and this is an example of pasting it into a python2.7<br>
&gt; interpreter:<br>
&gt;<br>
&gt; [root@telluride Downloads]# python2.7<br>
&gt; Python 2.7.11 (default, Mar 31 2016, 20:46:51)<br>
&gt; [GCC 5.3.1 20151207 (Red Hat 5.3.1-2)] on linux2<br>
&gt; Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &=
quot;license&quot; for more information.<br>
&gt; &gt;&gt;&gt; print &quot;%svoid %sxfer_%s_to_%s&quot; % (&quot;arg1 &q=
uot;, &quot;arg2 &quot;, &quot;arg3 &quot;, &quot;arg4&quot;),<br>
&gt; arg1 void arg2 xfer_arg3 _to_arg4<br>
&gt;<br>
&gt; which operates without errors.<br>
&gt; and now, this is what happens when you use python3:<br>
&gt; [root@telluride Downloads]# python3<br>
&gt; Python 3.4.3 (default, Mar 31 2016, 20:42:37)<br>
&gt; [GCC 5.3.1 20151207 (Red Hat 5.3.1-2)] on linux<br>
&gt; Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &=
quot;license&quot; for more information.<br>
&gt; &gt;&gt;&gt; print &quot;%svoid %sxfer_%s_to_%s&quot; % (&quot;arg1 &q=
uot;, &quot;arg2 &quot;, &quot;arg3 &quot;, &quot;arg4&quot;),<br>
&gt;=C2=A0 =C2=A0File &quot;&lt;stdin&gt;&quot;, line 1<br>
&gt;=C2=A0 =C2=A0 =C2=A0print &quot;%svoid %sxfer_%s_to_%s&quot; % (&quot;a=
rg1 &quot;, &quot;arg2 &quot;, &quot;arg3 &quot;, &quot;arg4&quot;),<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
&gt; SyntaxError: invalid syntax<br>
&gt;<br>
<br>
these, which are instructions actually:<br>
<br>
&gt; which looks just like the error message.=C2=A0 So, here is another att=
empt<br>
&gt; at making sure that python2.7 is used.<br>
&gt;<br>
&gt; cd cinelerra5/cinelerra-5.1<br>
&gt; echo &quot;EXTRA_LIBS +=3D -lva&quot; &gt;&gt; global_config<br>
&gt; sed -e &#39;1,1c#!/usr/bin/python2.7&#39; -i guicast/bccmdl.py<br>
&gt; sed -e &#39;/^bcxfer.C:/,+1s/python/python2.7/&#39; -i guicast/Makefil=
e<br>
&gt; ./configure shared<br>
&gt; make &gt;&amp; log<br>
&gt;<br>
<br>
That worked. make compiled it without errors whatsoever.<br>
<br>
The patch did look like this below:<br>
&gt; This patch should look like:<br>
&gt; [root@telluride guicast]# diff Makefile<br>
&gt; /mnt0/cinelerra5/cinelerra-5.1/guicast/Makefile<br>
&gt; 121c121<br>
&gt; &lt;=C2=A0 =C2=A0 =C2=A0 =C2=A0python2.7 &lt; ./bccmdl.py &gt; bcxfer.=
C<br>
&gt; ---<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0python &lt; ./bccmdl.py &gt; bcxfer.C<b=
r>
&gt;<br>
&gt; You should use both seds.<br>
&gt; Pretty sure this is the first big problem.=C2=A0 It does not mean it i=
s the<br>
&gt; last, but it is<br>
&gt; in the path.=C2=A0 Stay in touch, and let me know what your schedule m=
ay be so I<br>
&gt; can try to plan.<br>
<br>
I already told you about the schedule...<br>
<br>
And I&#39;ll try and use the rest of your instructions, as can be read at:<=
br>
<br>
<a href=3D"http://lists.cinelerra-cv.org/pipermail/cinelerra/2016q2/004678.=
html" rel=3D"noreferrer" target=3D"_blank">http://lists.cinelerra-cv.org/pi=
permail/cinelerra/2016q2/004678.html</a><br>
<br>
The remaining part [PASTING]:<br>
<br>
If this does not report errors, then run:<br>
make install &gt;&gt; log<br>
<br>
on the oft chance that it actually builds on the first try, I would<br>
copy the bin directory to a a good spot, and reset the file permissions<br>
to match the needed user/group etc...<br>
<br>
mkdir /opt<br>
cp -a /&lt;build_path&gt;/cinelerra5/cinelerra-5.1/lbin /opt/cin<br>
chown -R &quot;owner:group&quot; /opt/cin<br>
<br>
[PASTED]<br>
<br>
&gt;<br>
&gt; gg<br>
&gt;<br>
<br>
Regards!<br>
<span class=3D"HOEnZb"><font color=3D"#888888">--<br>
Miroslav Rovis<br>
Zagreb, Croatia<br>
<a href=3D"http://www.CroatiaFidelis.hr" rel=3D"noreferrer" target=3D"_blan=
k">http://www.CroatiaFidelis.hr</a><br>
</font></span></blockquote></div><br></div>

--089e01184cc633ef0505316a5d61--
