From lurker-index@localhost Tue Apr 26 23:39:12 2016
Date: Tue, 26 Apr 2016 23:39:12 +0200
From: Miroslav Rovis <miro.rovis@croatiafidelis.hr>
To: Good Guy <good1.2guy@gmail.com>
Subject: Re: [CinCV TNG] Building in Gentoo; Was: misreplied non-related
Message-ID: <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>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="XvKFcGCOAo53UbWW"
Content-Disposition: inline
In-Reply-To: <CAC2VF983G0VTMeyF77+86jZ6YHn0MomOOM8EoKbB2dhPa8q+Fg@mail.gmail.com>
User-Agent: Mutt/1.5.23+116 (55ea6e829b46) (2014-03-12)


--XvKFcGCOAo53UbWW
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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_res=
ult
> > [-Wunused-result]
> >   (void)getcwd(current_dir, BCTEXTLEN);
> >                                       ^
> >
>=20
> this fragment is from the first build error in the log.
>=20
> 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:
>=20
> [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
>=20
> 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.
>=20
> 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
>=20
> 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]

>=20
> gg
>=20

Regards!
--=20
Miroslav Rovis
Zagreb, Croatia
http://www.CroatiaFidelis.hr

--XvKFcGCOAo53UbWW
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJXH+AAAAoJEOqYhIhPuvCuvFYP/1myuVbPwXa5fP8s9R3uQzH/
niCY/xgKXS0ebFmZ8vuwshus3WjNw0+tdkOlBZxW7kVjpF9aBG0UduMDchn4JdhI
VndigZzEuaPIUCWN5MrM54HCXxggc8yXloNCJyVdH2xQ+oXSCo6S3uLcjtpn9Cj3
rOuujRqTFZrzyzcSfDXobWTctQJ9V4qa3P4L5va9Lc4dighK8QF4FEqoQhLbn6EU
pLJZrnTeokQXl/jEjDKws2iyyYUg6SHQE4B1ZJMjf8LAwlqCUZZe0gvpvtLURxCu
xLr4oyzGSAFs04HIuRg+EVXjcL0c87y5X3JKCMgE80Hwua09nVwC7jioRzu6PeQa
3mqDNlYuobr4+p/Iz3h1fl7QBJdvTuZNy+Rg33n6r5p++rhXWRwI7Q89IrssC1hQ
HgdEV3MOANCxfTb8RhjwP31p6uzet1ocgbDp+Kaft9tOwmUtpqpylJ9AnjEOhdKj
deYXjWjLNioYyOraObel7tR/Fl6rSPJJgY4NZWzjqRNtzVOIAnzkYJYm7/Q6L5gd
TGx/k4saGET9CyW/ZRc2DR+XHLeKFuHwGTMBlI8se4xvcqUi+UfE9n4TldaNt8gg
uupYFbfgaM078f/KLr+Ua3o263K4iCFiKXA8NT28plG9XnzTT8dxhKIkfL+8wNJr
TB8XKTjBwTMxCjbt2w/d
=xbv3
-----END PGP SIGNATURE-----

--XvKFcGCOAo53UbWW--
