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@???> 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 ‘FileSystem::FileSystem()’:
> > > filesystem.C:123:38: warning: ignoring return value of ‘char*
> > > getcwd(char*, size_t)’, declared with attribute warn_unused_result
> > > [-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 += -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
>