Fedora Linux Support Community & Resources Center
  #1  
Old 2nd January 2007, 02:10 PM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
building avidemux 2.3

I've run into a snag building avidemux 2.3

here are the spec file (Below) & source I'm building with. source is here http://jimlawrnc.mine.nu/mywiki/AvidemuxAvi

I did find a spidermonkey rpm and installed but same error
spidermonkey rpm here -->http://packages.ccux-linux.de/index.php?pdetail=1027
Quote:
%define name avidemux
%define ver 2.3.0
%define rel 1
%define prefix /usr

Summary: A graphical multiplex/demultiplex tool using GTK.
Name: %name
Version: %ver
Release: %rel
License: GPL
Group: Applications/Multimedia
Packager: James Lawrence <jimlawrnc@gmail.com>

Source: %{name}-%{version}.tar.gz
URL: http://fixounet.free.fr/avidemux/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gcc >= 2.96
BuildRequires: glib-devel
BuildRequires: gtk+-devel >= 2.0.0
BuildRequires: nasm >= 0.98.22
Requires: glib
Requires: gtk+ >= 2.0.0

%description
Avidemux is a graphical tool to edit AVI. It allows you to multiplex and
demultiplex audio to/from video.

It is able to cut video, import BMP, MJPEG and MPEG video, and encode them.
You can also process video with included filters. It requires a DivX
compatible encoder and the Gimp Toolkit (GTK) libraries.

%prep
%setup

%build

LC_MESSAGES=C ; export LC_MESSAGES

if [ ! -f configure ]; then
CC=gcc CXX=g++ \
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
./autogen.sh \
--prefix=%{_prefix} \
--datadir=%{_datadir}/%{name} \
--sysconfdir=%{_sysconfdir}/%{name} \
--host=%{_target_platform} \
--disable-warnings
else
CC=gcc CXX=g++ \
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --with-jsapi-include=/usr/include/firefox-2.0.0.1/js/jsapi.h \
--prefix=%{_prefix} \
--datadir=%{_datadir}/%{name} \
--sysconfdir=%{_sysconfdir}/%{name} \
--host=%{_target_platform} \
--disable-warnings

fi

# if RPM_BUILD_NCPUS unset, set it
if [ -z "$RPM_BUILD_NCPUS" ] ; then
if [ -x /usr/bin/getconf ] ; then
RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
if [ $RPM_BUILD_NCPUS -eq 0 ]; then
RPM_BUILD_NCPUS=1
fi
else
RPM_BUILD_NCPUS=1
fi
fi

#make -j$RPM_BUILD_NCPUS
make

%install
rm -rf %{buildroot}
%makeinstall

%clean
rm -rf %{buildroot}

%files
%defattr(755, root, root)

%{_bindir}/%{name}

%changelog
* Tue Jan 02 2007 James Lawrence <jimlawrnc@gmail.com> 2.3.0
- built for 2.3 release
- configure with firefox 2.0
Error

Quote:
checking for jsapi.h... no
configure: WARNING: I did not find a working copy of jsapi.h and the associated library.
configure: WARNING: <1>- Not reachable : Make sure you have spidermonkey installed
configure: WARNING: Then use --with-jsapi-include=/path/to/jsapi.h/
configure: WARNING: <2>- Make sure the library is in your LD_LIBRARY_PATH and/or LDFLAGS
configure: WARNING: <3>- Make sure multithreading is enabled in your spidermonkey
configure: WARNING: The ones from mozilla-dev or firefox-dev are ok
configure: error: *** Working SPIDERMONKEY javascript engine not found !***
error: Bad exit status from /var/tmp/rpm-tmp.41459 (%build)
hence in the configure section of the spec file above highlighted in red
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #2  
Old 2nd January 2007, 02:37 PM
LocutusOfBorg Offline
Registered User
 
Join Date: Aug 2005
Posts: 684
spidermonkey is in extras (js and js-devel).
in my specfile i use
Code:
%_configure --prefix=%{_prefix} --with-jsapi-include=%{_includedir}
__________________
I am Bill of Borg. Resistance izkx GPF 0x5654 8820 Application
RESIST.EXE has performed an illegal operation and will be shut down.
Reply With Quote
  #3  
Old 2nd January 2007, 03:09 PM
wmc1369 Offline
Registered User
 
Join Date: Dec 2006
Location: Costa Rica
Posts: 137
If you use the livna repo you can just do "yum install avidemux". That's how I got it and it works fine for me.
Reply With Quote
  #4  
Old 2nd January 2007, 04:02 PM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
Quote:
Originally Posted by wmc1369
If you use the livna repo you can just do "yum install avidemux". That's how I got it and it works fine for me.
what version ?
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #5  
Old 2nd January 2007, 04:05 PM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
Quote:
Originally Posted by LocutosOfBorg
spidermonkey is in extras (js and js-devel).
in my specfile i use
Code:
%_configure --prefix=%{_prefix} --with-jsapi-include=%{_includedir}
can you post the spec file your using?
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #6  
Old 2nd January 2007, 04:07 PM
wmc1369 Offline
Registered User
 
Join Date: Dec 2006
Location: Costa Rica
Posts: 137
Available Packages
avidemux.i386 2.1.2-1.lvn6 livna
Reply With Quote
  #7  
Old 2nd January 2007, 04:09 PM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
Quote:
Originally Posted by wmc1369
Available Packages
avidemux.i386 2.1.2-1.lvn6 livna
I'm trying to build v. 2.3.0 final release
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #8  
Old 2nd January 2007, 04:09 PM
LocutusOfBorg Offline
Registered User
 
Join Date: Aug 2005
Posts: 684
It's basically the livna specfile, modified to suit my needs.
The %_configure macro simply run the ./configure script (that's different from %configure).
Attached Files
File Type: spec avidemux.spec (2.5 KB, 65 views)
__________________
I am Bill of Borg. Resistance izkx GPF 0x5654 8820 Application
RESIST.EXE has performed an illegal operation and will be shut down.
Reply With Quote
  #9  
Old 2nd January 2007, 05:49 PM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
using the above spec file and all dependencies installed

Quote:
rpmbuild -ba ~/rpmbuild/SPECS/*.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.64984
+ umask 022
+ cd /home/jim/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/jim/rpmbuild/BUILD
+ rm -rf avidemux_2.3.0
+ /bin/gzip -dc /home/jim/rpmbuild/SOURCES/avidemux_2.3.0.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd avidemux_2.3.0
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.57168
+ umask 022
+ cd /home/jim/rpmbuild/BUILD
+ cd avidemux_2.3.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ %_configure --prefix=/usr --with-jsapi-include=/usr/include
/var/tmp/rpm-tmp.57168: line 27: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.57168 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.57168 (%build)
/var/tmp/rpm-tmp.57168 shows

Quote:
#!/bin/sh

RPM_SOURCE_DIR="/home/jim/rpmbuild/SOURCES"
RPM_BUILD_DIR="/home/jim/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables"
RPM_ARCH="i386"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="avidemux"
RPM_PACKAGE_VERSION="2.3.0"
RPM_PACKAGE_RELEASE="1.%{_dist}"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/var/tmp/avidemux-2.3.0-1.%{_dist}-root-jim"
export RPM_BUILD_ROOT


set -x
umask 022
cd /home/jim/rpmbuild/BUILD
cd avidemux_2.3.0
LANG=C
export LANG
unset DISPLAY

%_configure --prefix=/usr --with-jsapi-include=/usr/include


make -j3


exit 0
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?

Last edited by jim; 2nd January 2007 at 05:52 PM.
Reply With Quote
  #10  
Old 2nd January 2007, 06:04 PM
LocutusOfBorg Offline
Registered User
 
Join Date: Aug 2005
Posts: 684
I warned you above that the %_configure macro is defined only for me (it's defined in my ~/.rpmmacros file) - replace it with a simple
Code:
./configure
BTW, change even the .%{_dist} in the version tag with %{?dist} (without the dot after the number). It should look like
Code:
0%{?dist}.jim
__________________
I am Bill of Borg. Resistance izkx GPF 0x5654 8820 Application
RESIST.EXE has performed an illegal operation and will be shut down.
Reply With Quote
Reply

Tags
avidemux, building

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Avidemux mpg187 Using Fedora 5 25th September 2009 10:01 PM
avidemux-2.5.0 for fc11 TheBigRed Using Fedora 4 18th July 2009 02:15 AM
avidemux installation Hiisi Installation, Upgrades and Live Media 2 19th June 2009 10:10 PM
devede and avidemux pedora Using Fedora 1 8th December 2008 04:49 AM
avidemux troubleshooting lazlow Using Fedora 2 11th February 2006 09:40 PM


Current GMT-time: 12:01 (Saturday, 19-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat