LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-23-2008, 07:32 PM   #1
shroder300
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware 12.1
Posts: 23

Rep: Reputation: 15
src2pkg cinelerra-4 problems


I tried to install cinelerra-4 by first running it through src2pkg. this is my first time using src2pkg.

I ran:

src2pkg cinelerra-4-src.tar.bz2

the last few lines of my output were:

Code:
Configuring sources using:
   CFLAGS=-O2 -march=i486 -mtune=i686 ./configure --prefix=/usr
Configuration has been - Successful!
Compiling sources - Using: 'make'
Compiling has been - Successful!
Checking for 'install' rule - Okay
Checking for DESTDIR, INSTALL_ROOT, PREFIX or CMAKE_INSTALL_PREFIX  - Not found
NOTICE - DESTDIR not supported. Falling back to JAIL install
Installing in jail root - Using: 'make install'
FATAL! Running '' has failed with error: 1
Try using INSTALL_LINE 'make -i install'  Exiting...
src2pkg FAILURE in make_install
are there options that I should have added?
 
Old 08-23-2008, 11:50 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
The source file name is different than convention, so you should specify the name and version manually using -n and -v. However, the showstopper here is probably caused by an improperly formed install rule that puts the executables in $SRC_DIR/bin, not in $PREFIX/bin. It looks like cinelerra isn't supposed to be installed or packaged but executed from inside the archive. It's actually fairly easy but time consuming to patch the Makefiles to listen to DESTDIR so that the files end up in the right places, but I'm not sure whether or not that would ultimately cause problems since the program may have some assumptions that would no longer be valid, which then causes erratic behavior.
 
Old 08-24-2008, 09:14 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Okay, I worked on this today. It's unfortunate that you are trying src2pkg for the first time with such a messy and unconventional source tarball. Still, src2pkg makes this fairly easy.

First, if you haven't removed the SRC_DIR which you already built (shoule be /tmp/cinerella-*-src-1) cd in there (inside the bin dir) and see if you have a bunch of files named *.plugin. If so, that means that you did get a successful build. On my system I didn't get a successful build at first.

First I had to build, package and install yasm, which was no problem with src2pkg. Then, the build was failing while compiling ffmpeg because of some erros that boiled down to using 'vhook'. For my system, I created a patch which configures ffmpeg with '--disable-vhook' to get past this. If you have the same problem you'll want to use the patch below:

Code:
--- ./quicktime/configure.00	2008-08-15 12:30:13.000000000 +0200
+++ ./quicktime/configure	2008-08-15 12:30:36.000000000 +0200
@@ -72,7 +72,7 @@
 # For the latest version,
 # delete faad tests in configure so it passes before faad is compiled.
 # Change -O3 to -O2 to fix compiler errors.
-cd thirdparty/ffmpeg* && ./configure --enable-pthreads --enable-libfaad --enable-gpl --disable-ffplay --extra-cflags=-I$TOPDIR/$LIBFAAD_PATH/include --extra-libs=-L$TOPDIR/$LIBFAAD_PATH/libfaad/.libs/ --disable-ffmpeg --disable-ffserver --disable-ffplay  && cd ../..
+cd thirdparty/ffmpeg* && ./configure --disable-vhook --enable-pthreads --enable-libfaad --enable-gpl --disable-ffplay --extra-cflags=-I$TOPDIR/$LIBFAAD_PATH/include --extra-libs=-L$TOPDIR/$LIBFAAD_PATH/libfaad/.libs/ --disable-ffmpeg --disable-ffserver --disable-ffplay  && cd ../..
 
 echo "CONFIGURING X264"
 # Currently using the last version which works with mplayer.
If you need that, just paste it into a new empty file and save it as:
'cinelerra-no-vhook.diff'

If you were able to build successfully without that change, then just comment out the line in the src2pkg build script below which begins with 'PATCHLIST'.

Code:
#!/bin/bash
## src2pkg script for: 	cinelerra-4
## src2pkg Copyright 2005-2008 Gilbert Ashley <amigo@ibilio.org>

SOURCE_NAME='cinelerra-4-src.tar.bz2'
ALT_NAME='cinelerra'
ALT_VERSION='4'
# ARCH='i486'
BUILD='1'
PRE_FIX='usr'
# Any extra options go here
# EXTRA_CONFIGS=''
# STD_FLAGS='-O2 -march=i486 -mtune=i686'
PATCHLIST='./cinelerra-no-vhook.diff'
DOCLIST='COPYING bin/doc/cinelerra.html'

# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;

# do_all_processes can substitute these 16 steps:

pre_process
find_source
make_dirs
unpack_source
fix_source_perms

(
cd $SRC_DIR/bin ;
rm cinelerra mpeg3cat mpeg3dump mpeg3peek mpeg3toc
)

configure_source
compile_source
#fake_install
cd $SRC_DIR && make install

mkdir -p $PKG_DIR/usr/lib/cinelerra-4
cp -a $SRC_DIR/bin/* $PKG_DIR/usr/lib/cinelerra-4/

mkdir -p $PKG_DIR/usr/bin
cat > $PKG_DIR/usr/bin/cinelerra <<EOF
#!/bin/bash
cd /usr/lib/cinelerra-4
exec ./cinelerra

EOF

fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process
To use the above script, just paste the contents into an new empty file and save as:
cinelerra.src2pkg

Then, you can build cinelerra using src2pkg with the command:
'src2pkg -X'
although you may want to use 'src2pkg -X -VV' so you can see all the output from the commands which are run.

Now a little explanation. I didn't find any true SlackBuild script for cinerella, although I found a couple of scripts which use another build system and the packages. They both were building the 'community version' of cinerella which is quite different from the sources you chose. The community version builds only the core cinerella program and links to shared libraries for its' (*many*) dependencies. The sources you chose are for the development version and build static libraries of all the included dependencies. This makes it easier to build, but harder to package and the resulting binary is very large - around 14MB. Still, it works and saves you the headache of figuring out which versios to use for all the depends and building and installing them separately -there are around 40 programs and libs which are required and Slackware only comes with about 10 of them.

If you decide you want to build it that way, src2pkg will make building and packaging each prog/lib much easier and building cinelerra should also be straightforward. Building all the separate packages will, of course, take quite awhile. Building the combined sources you chose takes over 1.5 hours on my system and it took 3 builds to work out the kinks of installation. As tuxdev noted, the combined sources install everything into a subdir of the sources. So what the above src2pkg script does is copy/install these files into a subdir of /usr/lib and then create a wrapper script which installs in /usr/bin. This makes everything run as expected -the wrapper cd's into the dir /usr/lib/cinelerra-4 and execs the cinelerra program from there.

Here's a slack-desc file which you can use for the package also:
Code:
cinelerra: Cinelerra (A non-linear video editing application for Linux)
cinelerra:
cinelerra: Cinelerra is an advanced and complete audio and video authoring
cinelerra: application. It understands a lot of multimedia formats
cinelerra: (quicktime, avi, ogg) and audio/video compression codecs (divx,
cinelerra: xvid, mpeg1/2, etc).
cinelerra:
cinelerra: 
cinelerra: visit http://cv.cinelerra.org/
cinelerra:
cinelerra: Packaged by src2pkg
Just place that alongside the sources named as 'slack-desc' for use.

Here's a list of the requireds which was included with one of the packages I found:
a52dec >= 0.7.4
alsa-lib >= 1.0.14a
audiofile >= 0.2.6
e2fsprogs >= 1.39
esound >= 0.2.38
faac >= 1.25
faad2 >= 2.5
fftw >= 3.1.2
flac >= 1.1.2
freetype >= 2.3.4
gcc >= 4.1.2
ilmbase >= 1.0.1
lame >= 3.97
libX11 >= 1.1.1
libXau >= 1.0.3
libXdmcp >= 1.0.2
libXext >= 1.0.3
libXv >= 1.0.3
libXxf86vm >= 1.0.1
libavc1394 >= 0.5.3
libdrm >= 2.3.0
libdv >= 1.0.0
libiec61883 >= 1.1.0
libjpeg >= 6b
libogg >= 1.1.3
libpng >= 1.2.18
libraw1394 >= 1.2.1
libsndfile >= 1.0.17
libtheora >= 1.0alpha7
libtiff >= 3.8.2
libvorbis >= 1.1.2
libxcb >= 1.0
mesa >= 6.5.2
mjpegtools >= 1.9.0rc2
openexr >= 1.6.1
x264
zlib >= 1.2.3

The versions may or may not be the same for some other (community) version which try to build. The above was for cinelerra-cv from svn on 20071205. Of all the dependencies, ffmpeg is probably the most difficult to build. But if you build separate packages be sure to study carefully the version numbers required by the cinelerra sources.
 
Old 08-24-2008, 01:07 PM   #4
shroder300
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware 12.1
Posts: 23

Original Poster
Rep: Reputation: 15
well, first what do you suggest?

first I configured, maked and installed that same version already. I was trying to make a package in order to attempt to remove it because it didn't work. what i mean is that it runs but i cannot bring any video into it to edit. I tried to make uninstall but that didn't work.

I guessed right away that I was in over my head but gave it a try anyway. I did, as a side note get an openchrome driver to work using src2pkg.

I am not sure where to go from here. I am just looking for a decent video editor for Linux. I would like to at least have chroma key. but I am not sure how to remove the cinerella that I have installed already.

I have just upgraded to Slackware 12.1 and everythig is (even my printer) working great. I would have to reinstall 12.1 from scratch just to remove this software. I wish I would have found src2pkg before I installed cinelerra.
 
Old 08-24-2008, 01:25 PM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Do you mean you ran 'make install' inside the cinelerra-4 sources? That should only have installed the program locally, that is, inside the same sources directory(in the bin subdirectory of the sources).

If you unpacked and compiled the cinelerra-4 sources manually, the result should have been the same. If you want to check that, you can use the 'tracklist' tool included with src2pkg -just cd into the sources and run 'tracklist make install'. That will create a list of the files created when running the 'make install' command. The output will be echoed to the terminal and will also be found in your $HOME directory in a file called FILELIST. The files can then be removed manually, if needed. If they were just installed inside the SRC_DIR/bin directory, then you can simply delete the whole source directory to remove the files.

It might be worth posting a thread about the problem with editing video files using cinelerra, or about what might be a good alternative video editor.
 
Old 08-24-2008, 02:54 PM   #6
shroder300
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware 12.1
Posts: 23

Original Poster
Rep: Reputation: 15
yes, i did. I have to be in the bin dir of the source directory I created. I will try that and get back to you.

as for another post I will do some more looking before that happens. maybe I will look into the other cinelerra project.
 
Old 08-24-2008, 03:06 PM   #7
shroder300
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware 12.1
Posts: 23

Original Poster
Rep: Reputation: 15
i ran tracklist and all the files were in my source directory so I just deleted the entire directory.

thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where to download src2pkg matters Slackware 8 01-28-2017 03:20 AM
Problems on removing Cinelerra evandropig Linux - Software 3 05-21-2008 08:03 AM
New src2pkg release available for download -Introducing the src2pkg WIKI gnashley Slackware 11 05-06-2008 11:09 AM
Lockdev src2pkg "make install" problems piete Amigo 2 02-18-2008 03:41 PM
src2pkg + qt 4.3.3 dive Slackware 9 01-24-2008 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration