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.