User Tools

Site Tools


build:compile_spidermonkey

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
build:compile_spidermonkey [2010/04/16 06:30]
j.m created
build:compile_spidermonkey [2012/11/11 08:51] (current)
Line 64: Line 64:
 === Edit the Makefile === === Edit the Makefile ===
  
-Edit the Makefile.ref to reflect the "​NSPR"​ install. Lines marked ​with in **bold** ​are the edited version of the original line above:+Edit the Makefile.ref to reflect the "​NSPR"​ install. Lines after the comments (starting ​with #) are the edited version of the original line:
  
   ifdef JS_THREADSAFE   ifdef JS_THREADSAFE
   DEFINES += -DJS_THREADSAFE   DEFINES += -DJS_THREADSAFE
   # INCLUDES += -I../​../​dist/​$(OBJDIR)/​include   # INCLUDES += -I../​../​dist/​$(OBJDIR)/​include
-  ​**INCLUDES += -I/​usr/​include/​nspr**+  INCLUDES += -I/​usr/​include/​nspr
   ifdef USE_MSVC   ifdef USE_MSVC
   OTHER_LIBS += ../​../​dist/​$(OBJDIR)/​lib/​libnspr${NSPR_LIBSUFFIX}.lib   OTHER_LIBS += ../​../​dist/​$(OBJDIR)/​lib/​libnspr${NSPR_LIBSUFFIX}.lib
   else   else
   # OTHER_LIBS += -L../​../​dist/​$(OBJDIR)/​lib -lnspr${NSPR_LIBSUFFIX}   # OTHER_LIBS += -L../​../​dist/​$(OBJDIR)/​lib -lnspr${NSPR_LIBSUFFIX}
-  ​**OTHER_LIBS += -L/​usr/​lib/​nspr -lnspr4**+  OTHER_LIBS += -L/​usr/​lib/​nspr -lnspr4
   endif   endif
   endif   endif
Line 116: Line 116:
   - Run these commands from a root console or with the **sudo** command if you are able: <​code>​install nspr-devel   - Run these commands from a root console or with the **sudo** command if you are able: <​code>​install nspr-devel
 yum install nspr-devel</​code>​ This will create the directory /​usr/​include/​nspr4/​. yum install nspr-devel</​code>​ This will create the directory /​usr/​include/​nspr4/​.
-  - Download SpiderMonkey to /tmp from [[http://​www.mozilla.org/​js/​spidermonkey/​|this website]]. We used version 1.5.rc4, but it should not really matter.+  - Download SpiderMonkey to /tmp from [[http://​www.mozilla.org/​js/​spidermonkey/​|the Mozilla ​website]]. We used version 1.5.rc4, but it should not really matter.
   - Extract the downloaded source file to /​usr/​local/​src. It should create a **js/** directory there.   - Extract the downloaded source file to /​usr/​local/​src. It should create a **js/** directory there.
   - Step into the main build directory <​code>​cd js/​src</​code>​   - Step into the main build directory <​code>​cd js/​src</​code>​
Line 126: Line 126:
 make</​code>​ make</​code>​
   - Copy (or link) the libjs.so just created to /usr/lib (so that it can be found in final Avidemux link step with no fuss) <​code>​cp Linux_All_DBG.OBJ/​libjs.so /​usr/​lib</​code>​   - Copy (or link) the libjs.so just created to /usr/lib (so that it can be found in final Avidemux link step with no fuss) <​code>​cp Linux_All_DBG.OBJ/​libjs.so /​usr/​lib</​code>​
-  - When you compile Avidemux itself, you need to run the **./​configure** with the argument **--with-jsapi-include=/​usr/​local/​src/​js/​src**+  - When you compile Avidemux itself, you need to run the **./​configure** with the argument **<​nowiki>​--</​nowiki>​with-jsapi-include=/​usr/​local/​src/​js/​src**
  
 ==== Slackware ==== ==== Slackware ====
Line 206: Line 206:
 ===== Library error/​failure ===== ===== Library error/​failure =====
  
-When doing the configure, if you used the --prefix for jsapi.h, but there is an error at the library stage, locate libsmjs.so or libjs.so or libmozjs.so on your system. Then symbolically link it to /​usr/​local/​lib or /usr/lib+When doing the configure, if you used the <​nowiki>​--</​nowiki>​prefix for jsapi.h, but there is an error at the library stage, locate libsmjs.so or libjs.so or libmozjs.so on your system. Then symbolically link it to /​usr/​local/​lib or /usr/lib
  
build/compile_spidermonkey.1271392229.txt.gz ยท Last modified: 2012/11/11 08:51 (external edit)