LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Building Cinelerra-CV from git repository - syntax error (http://www.linuxquestions.org/questions/linux-software-2/building-cinelerra-cv-from-git-repository-syntax-error-820826/)

falmdavis 07-19-2010 05:34 PM

Building Cinelerra-CV from git repository - syntax error
 
New installation of Suse 11.3. Trying to build Cinelerra-CV from http://www.cinelerra.org/

Quote:

The source code of Cinelerra-CV is available from a git repository. To get a copy for compilation use the following command

git clone git://git.cinelerra.org/j6t/cinelerra.git my_cinelerra

You can modify this working copy, and submit your patches to the mailing list, or ask for your own repo or for permission to push to one of the existing ones.
From the README.BUILD file, you are told to build autoreconf -i. This gives an error:

Code:

autoreconf -i
autopoint: File m4/gettext.m4 has been locally modified.
autopoint: File po/Makefile.in.in has been locally modified.
autopoint: *** Some files have been locally modified. Not overwriting them because --force has not been specified. For your convenience, you find the local modifications in the file '/tmp/armLWFEY/gtOZ8WtA/autopoint.diff'.
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1

Running autoreconf with the "force" option works:

Code:

autoreconf -if
 autoreconf -if
Copying file ABOUT-NLS
Copying file config.rpath
Copying file m4/gettext.m4
Copying file mkinstalldirs
Copying file po/Makefile.in.in
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
configure.in:3: installing `./config.guess'
configure.in:3: installing `./config.sub'
configure.in:8: installing `./install-sh'
configure.in:8: installing `./missing'
cinelerra/Makefile.am:1: shell date: non-POSIX variable name
cinelerra/Makefile.am:1: (probably a GNU make extension)
cinelerra/Makefile.am:21: shell if [ -d $(top_srcdir: non-POSIX variable name
cinelerra/Makefile.am:21: (probably a GNU make extension)
cinelerra/Makefile.am:27: shell if [ -d $(top_srcdir: non-POSIX variable name
cinelerra/Makefile.am:27: (probably a GNU make extension)
cinelerra/Makefile.am: installing `./depcomp'

After running ./configure, and then make, there are errors:

Code:

make
...
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I./.. -DHAVE_MMX -DUSE_MMX -DX86_CPU -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT vlc.lo -MD -MP -MF .deps/vlc.Tpo -c vlc.c  -fPIC -DPIC -o .libs/vlc.o
mv -f .deps/vlc.Tpo .deps/vlc.Plo
/bin/sh ../../libtool --tag=CC  --mode=compile ../../admin/nasm -DHAVE_CONFIG_H -I. -I../.. -I./..    -g -O2 -MT mmxidct.lo -MD -MP -MF .deps/mmxidct.Tpo -c -o mmxidct.lo mmxidct.S
libtool: compile:  ../../admin/nasm -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT mmxidct.lo -MD -MP -MF .deps/mmxidct.Tpo -c mmxidct.S  -fPIC -DPIC -o .libs/mmxidct.o
\1 better written as $1 at ../../admin/nasm line 12.
Final $ should be \$ or $name at ../../admin/nasm line 32, near "$
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# Name of the PIC object.
"
syntax error at ../../admin/nasm line 35, near """
  (Might be a runaway multi-line "" string starting on line 27)
Execution of ../../admin/nasm aborted due to compilation errors.
make[3]: *** [mmxidct.lo] Error 1
make[3]: Leaving directory `/home/centaurus/linux/apps/cinelerra_cv/libmpeg3/video'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/centaurus/linux/apps/cinelerra_cv/libmpeg3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/centaurus/linux/apps/cinelerra_cv'
make: *** [all] Error 2


dugan 07-19-2010 05:59 PM

You could look and how Arch and Gentoo are building it. I've noticed that both apply many patches.

http://repos.archlinux.org/wsvn/comm...erra-cv/trunk/
http://sources.gentoo.org/cgi-bin/vi...deo/cinelerra/

falmdavis 07-19-2010 06:05 PM

Quote:

Fixing build with gcc 4.5

http://bugs.gentoo.org/show_bug.cgi?id=317991

Patch written by Kacper Kowalik <xarthisius.kk@gmail.com>

--- cinelerra/edits.C
+++ cinelerra/edits.C
@@ -47,7 +47,7 @@
this->edl = edl;
this->track = track;

- List<Edit>::List<Edit>();
+ List<Edit>();
default_edit->edl = edl;
default_edit->track = track;
default_edit->startproject = 0;
This is from the Arch patches for Cinelerra-CV mentioned by dugan. Can someone explain the C++ differences for the List<Edit>::List<Edit>();?
I'll take a look at the patches and see if that will help to build it.

Edit:
The syntax error was from a file not being built, which could mean that there is an error in the Makefile, which I was able to fix as in this web page:

http://www.linuxjournal.com/content/cinelerracv-project

Quote:

The compiler reported the following issue :

ar: .libs/reconmmx.o: No such file or directory

Thanks to Google I discovered this solution :

cd $HOME/src/my_cinelerra/libmpeg3/video
nasm -f elf reconmmx.s -o reconmmx.o
cp reconmmx.o .libs/reconmmx.o
Did not have the other errors in that web page on cinelerra. After applying the patch from the Arch site, by editing the file "cinelerra/edits.C" it built.

Now, I would like to run cinelerra without installing it, by giving the full path name to see that it runs. From a previous installation of Cinelerra, I remember that it had to have superuser privileges. Is that still the way it runs?

falmdavis 07-19-2010 07:17 PM

Cinelerra-CV runs
 
Cinelerra-CV did run after building it, installing it, and running the update library path command:

ldconfig

It would be good to know the reasons for the compile errors.


All times are GMT -5. The time now is 07:11 AM.