LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-14-2007, 06:49 AM   #1
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
Avidemux install (Wiki addition)


I've been struggling with Avidemux and SpiderMonkey installation.
I couldn't find decent tutorial (not on Avidemux Wiki or elsewhere), and after successful installation, I decided to write a tutorial that would be helpful to LFS (and other) users.
I tried to add the tutorial to BLFS Wiki, but I don't have "WIKI_CREATE" permission.
I would appreciate if someone uploads it to BLFS Wiki.

Here's tutorial:

***********************

Avidemux

This page explains how to install Avidemux. Avidemux requires SpiderMonkey scripting engine, so it will be installed first.
  • Installing SpiderMonkey
    • Installing nspr
    • Installing js
  • Installing Avidemux
  • Comments

Installing SpiderMonkey

In order to install SpiderMonkey, Netscape Portable Runtime (NSPR) API needs to be instaled first.

Installing nspr

Download nspr form here: http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/. After unpacking the source, do the following:

Code:
cd mozilla/nsprpub
./configure --with-pthreads
make
rm -Rf dist/bin
tar -czhf nspr-bin.tar.gz -C dist/ .
Make yourself superuser, and install nspr by doing the following:

Code:
tar -C /usr/local/ -xzf nspr-bin.tar.gz
ldconfig
Installing js

Download js from here: http://ftp.mozilla.org/pub/mozilla.org/js/. Unpack it, cd into src directory and edit Makefile.ref file, so that it can find nspr.
Section

Code:
ifdef JS_THREADSAFE
DEFINES += -DJS_THREADSAFE
INCLUDES += -I../../dist/$(OBJDIR)/include
ifdef USE_MSVC
OTHER_LIBS += ../../dist/$(OBJDIR)/lib/libnspr${NSPR_LIBSUFFIX}.lib
else
OTHER_LIBS += -L../../dist/$(OBJDIR)/lib -lnspr${NSPR_LIBSUFFIX}
endif
endif
should be replaced with

Code:
ifdef JS_THREADSAFE
DEFINES += -DJS_THREADSAFE
INCLUDES += -I/usr/local/include/nspr
ifdef USE_MSVC
OTHER_LIBS += ../../dist/$(OBJDIR)/lib/libnspr${NSPR_LIBSUFFIX}.lib
else
OTHER_LIBS += -L/usr/local/lib -lnspr4
endif
endif
Next, compile js:

Code:
export JS_THREADSAFE=1
make -f Makefile.ref BUILD_OPT=1
Make yourself superuser, and install js:

Code:
mkdir /usr/local/include/js
cp *.h /usr/local/include/js
cd Linux_All_OPT.OBJ/
cp *.h /usr/local/include/js
cp js jscpucfg /usr/local/bin/
cp libjs.so libjs.a /usr/local/lib/
ldconfig
Now, you can proceed with installing Avidemux.

Installing Avidemux

Download latest Avidemux source code from http://www.avidemux.org.
Install it by typing:

Code:
./configure --prefix=/usr/local --with-jsapi-include=/usr/local/include/js
make
su
make install
Comments

This was tested with nspr 4.6.5, js 1.6 and Avidemux 2.3.
If you're using FreeType-2.1.7, you'll need to upgrade to newer version in order to install Avidemux 2.3.

***********************


Here's Wiki code:
Code:
= Avidemux =

This page explains how to install [http://www.avidemux.org Avidemux]. Avidemux requires [http://www.mozilla.org/js/spidermonkey/ SpiderMonkey] scripting engine, so it will be installed first.

  * Installing !SpiderMonkey[[br]]
    * Installing nspr[[br]]
    * Installing js[[br]]
  * Installing Avidemux
  * Comments

== Installing !SpiderMonkey ==

In order to install !SpiderMonkey, Netscape Portable Runtime (NSPR) API needs to be instaled first.

=== Installing nspr ===

Download nspr form here: [http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/].
After unpacking the source, do the following:
{{{
cd mozilla/nsprpub
./configure --with-pthreads
make
rm -Rf dist/bin
tar -czhf nspr-bin.tar.gz -C dist/ .
}}}

Make yourself superuser, and install nspr by doing the following:
{{{
tar -C /usr/local/ -xzf nspr-bin.tar.gz
ldconfig
}}}


=== Installing js ===

Download js from here: [http://ftp.mozilla.org/pub/mozilla.org/js/].
Unpack it, cd into src directory and edit Makefile.ref file, so that it can find nspr.[[BR]]
Section
{{{
ifdef JS_THREADSAFE
DEFINES += -DJS_THREADSAFE
INCLUDES += -I../../dist/$(OBJDIR)/include
ifdef USE_MSVC
OTHER_LIBS += ../../dist/$(OBJDIR)/lib/libnspr${NSPR_LIBSUFFIX}.lib
else
OTHER_LIBS += -L../../dist/$(OBJDIR)/lib -lnspr${NSPR_LIBSUFFIX}
endif
endif
}}}
should be replaced with
{{{
ifdef JS_THREADSAFE
DEFINES += -DJS_THREADSAFE
INCLUDES += -I/usr/local/include/nspr
ifdef USE_MSVC
OTHER_LIBS += ../../dist/$(OBJDIR)/lib/libnspr${NSPR_LIBSUFFIX}.lib
else
OTHER_LIBS += -L/usr/local/lib -lnspr4
endif
endif
}}}
Next, compile js:
{{{
export JS_THREADSAFE=1
make -f Makefile.ref BUILD_OPT=1
}}}
Make yourself superuser, and install js:
{{{
mkdir /usr/local/include/js
cp *.h /usr/local/include/js
cd Linux_All_OPT.OBJ/
cp *.h /usr/local/include/js
cp js jscpucfg /usr/local/bin/
cp libjs.so libjs.a /usr/local/lib/
ldconfig
}}}

Now, you can proceed with installing Avidemux.


== Installing Avidemux ==

Download latest Avidemux source code from [http://www.avidemux.org].[[BR]]
Install it by typing:
{{{
./configure --prefix=/usr/local --with-jsapi-include=/usr/local/include/js
make
su
make install
}}}


== Comments ==

This was tested with nspr 4.6.5, js 1.6 and Avidemux 2.3.[[BR]]
If you're using FreeType-2.1.7, you'll need to upgrade to newer version in order to install Avidemux 2.3.
Thanks in advance.

Last edited by Not now, John!; 02-14-2007 at 02:12 PM.
 
Old 02-19-2007, 09:43 PM   #2
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252

Rep: Reputation: 30
What part of the Avidemux wiki was not helpful for you? I wrote about half of the Avidemux Wiki, and I still maintain it daily, so if there is something you want added, please post about it.

If this tutorial of yours is complete, I think I may just move it into the documentation.
 
Old 02-20-2007, 07:49 PM   #3
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by sadarax
What part of the Avidemux wiki was not helpful for you?
There are several solutions on Avidemux Wiki, but I couldn't figure that it is necessary to compile threadsafe SpiderMonkey. I spent too much time to figure that. My problem was that older Avidemux version (2.1.2) compiled well with SpiderMonkey already installed on my system (non-threadsafe, I think), but 2.3.0 didn't compile. So I thought it was Avidemux problem.

Maybe current Wiki is too complicated (some solutions use Mozilla SpiderMonkey, some use independent library). Maybe, there should be tutorial for compiling from source, and distribution specific tutorials with package managers. Just a suggestion...

Quote:
Originally Posted by sadarax
If this tutorial of yours is complete, I think I may just move it into the documentation.
Yes, I wrote it. Please add it to Avidemux Wiki. It should be there. 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
How to install avidemux mannishboy Linux - Newbie 6 02-28-2007 12:23 AM
How to install avidemux/tovid? Need help badly depam Linux - Software 15 06-20-2006 08:18 AM
trying to install avidemux onironaut Linux - Software 0 04-26-2005 01:32 PM
avidemux 2.0.36 from source install errors Help! Blue1K Linux - Software 1 02-25-2005 11:22 PM
Avidemux-install recursive Fcm Linux - Software 1 08-28-2004 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:34 AM.

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