This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
build:compiling_avidemux [2010/04/17 09:00] j.m |
build:compiling_avidemux [2010/04/17 09:18] j.m |
||
---|---|---|---|
Line 397: | Line 397: | ||
- Run the Pthreads-w32 exe to extract required files to a temporary folder. | - Run the Pthreads-w32 exe to extract required files to a temporary folder. | ||
- | - Copy the contents of the **Pre-built.1include** folder to the MinGW **include** folder. | + | - Copy the contents of the **<nowiki>Pre-built.1\include</nowiki>** folder to the MinGW **include** folder. |
- | - Copy all **a** and **lib** files from the **Pre-built.1lib** folder to the MinGW **lib** folder. | + | - Copy all **a** and **lib** files from the **<nowiki>Pre-built.1\lib</nowiki>** folder to the MinGW **lib** folder. |
- | - Copy all **dll** files from the **Pre-built.1lib** folder to the MinGW **bin** folder. | + | - Copy all **dll** files from the **<nowiki>Pre-built.1\lib</nowiki>** folder to the MinGW **bin** folder. |
== Zlib == | == Zlib == | ||
Line 414: | Line 414: | ||
//Using Microsoft Visual C++ 6.0:// | //Using Microsoft Visual C++ 6.0:// | ||
* a. Open the **js.mak** file in the Spridermonkey **src** folder with a text editor. | * a. Open the **js.mak** file in the Spridermonkey **src** folder with a text editor. | ||
- | * b. Update the compiler options to refer to the Netscape Portable Runtime by replacing all occurrences of: <code>CPP_PROJ=</code> with (includes a trailing space): <code>CPP_PROJ=/I c:\devnspr-4.4.1\include /D "JS_THREADSAFE" </code> | + | * b. Update the compiler options to refer to the Netscape Portable Runtime by replacing all occurrences of: <code>CPP_PROJ=</code> with (includes a trailing space): <code>CPP_PROJ=/I c:\dev\nspr-4.4.1\include /D "JS_THREADSAFE" </code> |
- | * c. Update the linker options to refer to the Netscape Portable Runtime by replacing all occurrences of: <code>LINK32_FLAGS=</code> with (includes a trailing space): <code>LINK32_FLAGS=/libpath:c:devnspr-4.4.1lib libnspr4.lib </code> | + | * c. Update the linker options to refer to the Netscape Portable Runtime by replacing all occurrences of: <code>LINK32_FLAGS=</code> with (includes a trailing space): <code>LINK32_FLAGS=/libpath:c:\dev\nspr-4.4.1\lib libnspr4.lib </code> |
* d. Save the file and close the editor. | * d. Save the file and close the editor. | ||
- | * e. Start a command prompt and run **VCVARS32.BAT** from the Visual C++ **bin** folder. <code>"C:\Program Files\Microsoft Visual StudioVC98\Bin\VCVARS32.BAT"</code> | + | * e. Start a command prompt and run **VCVARS32.BAT** from the Visual C++ **bin** folder. <code>"C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"</code> |
- | * f. Change directory to the Spidermonkey **src** folder. <code>cdDevjssrc</code> | + | * f. Change directory to the Spidermonkey **src** folder. <code>cd\Dev\js\src</code> |
* g. Run **NMAKE** on **js.mak** using the **jsshell – Win32 Release** configuration. <code>nmake /f js.mak CFG="jsshell - Win32 Release"</code> | * g. Run **NMAKE** on **js.mak** using the **jsshell – Win32 Release** configuration. <code>nmake /f js.mak CFG="jsshell - Win32 Release"</code> | ||
* h. Close the command prompt. | * h. Close the command prompt. | ||
* i. Start MSYS. | * i. Start MSYS. | ||
- | * j. Change directory to the Spidermonkey **srcRelease** folder. <code>cd /c/Dev/js/src/Release</code> | + | * j. Change directory to the Spidermonkey **<nowiki>src\Release</nowiki>** folder. <code>cd /c/Dev/js/src/Release</code> |
* k. Using **pexports**, create a module-definition file for the newly created **js32.dll**: <code>pexports js32.dll > js32.def</code> | * k. Using **pexports**, create a module-definition file for the newly created **js32.dll**: <code>pexports js32.dll > js32.def</code> | ||
* l. Use **dlltool** to produce a **libjs** import library. <code>dlltool -d js32.def -l /mingw/lib/libjs.a</code> | * l. Use **dlltool** to produce a **libjs** import library. <code>dlltool -d js32.def -l /mingw/lib/libjs.a</code> | ||
Line 461: | Line 461: | ||
ar r $(BIN) $(OBJECTS) | ar r $(BIN) $(OBJECTS) | ||
ranlib $(BIN)</code> | ranlib $(BIN)</code> | ||
- | * c. Make sure all indentations in the script are tabbed and not spaced. Also ensure **SRCDIR** is correctly set to the Spridermonkey **srcfdlibm** folder. | + | * c. Make sure all indentations in the script are tabbed and not spaced. Also ensure **SRCDIR** is correctly set to the Spidermonkey **<nowiki>src\fdlibm</nowiki>** folder. |
* d. Create a text file named **makefile** in the Spidermonkey **src** folder. | * d. Create a text file named **makefile** in the Spidermonkey **src** folder. | ||
* e. Paste the following script into **makefile**:<code make># Project: js32 | * e. Paste the following script into **makefile**:<code make># Project: js32 | ||
Line 527: | Line 527: | ||
* f. Make sure all indentations in the script are tabbed and not spaced. Also ensure **LIBS** and **CFLAGS** are correctly set to the appropriate Netscape Portable Runtime subdirectories and **SRCDIR** is correctly set to the Spridermonkey **src** folder. | * f. Make sure all indentations in the script are tabbed and not spaced. Also ensure **LIBS** and **CFLAGS** are correctly set to the appropriate Netscape Portable Runtime subdirectories and **SRCDIR** is correctly set to the Spridermonkey **src** folder. | ||
* g. Start MSYS. | * g. Start MSYS. | ||
- | * Make the fdlibm library. <code>cd /c/Dev/js/src/fdlibm | + | * h. Make the fdlibm library. <code>cd /c/Dev/js/src/fdlibm |
make</code> | make</code> | ||
* i. Make the SpiderMonkey library. <code>cd /c/Dev/js/src | * i. Make the SpiderMonkey library. <code>cd /c/Dev/js/src | ||
Line 692: | Line 692: | ||
* p. Copy **vorbisenc.dll** in the Vorbis **win32\VorbisEnc_Dynamic_Release** folder to the MinGW **bin** folder. | * p. Copy **vorbisenc.dll** in the Vorbis **win32\VorbisEnc_Dynamic_Release** folder to the MinGW **bin** folder. | ||
* q. Copy **vorbisfile.dll** in the Vorbis **win32\VorbisFile_Dynamic_Release** folder to the MinGW **bin** folder. | * q. Copy **vorbisfile.dll** in the Vorbis **win32\VorbisFile_Dynamic_Release** folder to the MinGW **bin** folder. | ||
- | * Copy the Vorbis **include\vorbis** folder to the MinGW **include** folder. | + | * r. Copy the Vorbis **include\vorbis** folder to the MinGW **include** folder. |
* s. Start MSYS. | * s. Start MSYS. | ||
* t. Using **pexports**, create a module-definition file for the Ogg Vorbis runtimes: <code>pexports /mingw/bin/vorbis.dll > vorbis.def | * t. Using **pexports**, create a module-definition file for the Ogg Vorbis runtimes: <code>pexports /mingw/bin/vorbis.dll > vorbis.def | ||
Line 722: | Line 722: | ||
make install</code> | make install</code> | ||
- 5. Close MSYS. | - 5. Close MSYS. | ||
- | 6. If you prefer a Microsoft Visual C++ compiled runtime, extract **SDL.dll** in the SDL-dev zip file to the MinGW **bin** folder. Alternatively, compile the supplied **SDL.dsw** using Microsoft Visual C++ 6.0. | + | - If you prefer a Microsoft Visual C++ compiled runtime, extract **SDL.dll** in the SDL-dev zip file to the MinGW **bin** folder. Alternatively, compile the supplied **SDL.dsw** using Microsoft Visual C++ 6.0. |
== x264 == | == x264 == |