90
edits
(→Steps) |
|||
| Line 46: | Line 46: | ||
* Get Mozilla source tree, by either [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS CVS] or [http://developer.mozilla.org/en/docs/Download_Mozilla_Source_Code FTP download]. | * Get Mozilla source tree, by either [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS CVS] or [http://developer.mozilla.org/en/docs/Download_Mozilla_Source_Code FTP download]. | ||
* Apply the [https://bugzilla.mozilla.org/attachment.cgi?id=324584 patch] against the tree, at <tt>mozilla/nsprpub/</tt>. | * Apply the [https://bugzilla.mozilla.org/attachment.cgi?id=324584 patch] against the tree, at <tt>mozilla/nsprpub/</tt>. | ||
* In NSPR tests, most output are written to <tt>stderr</tt>, but Symbian OS just ignores the <tt>stderr</tt> output. We have to do some tricks. In your Symbian SDK, for example <tt>D:\Symbian\9.1\S60_3rd_MR\Epoc32\include\stdapis</tt>, edit the <tt>stdio.h</tt>, change line 278 into the following lines:<br/> | * In NSPR tests, most output are written to <tt>stderr</tt>, but Symbian OS just ignores the <tt>stderr</tt> output. We have to do some tricks. In your Symbian SDK, for example <tt>D:\Symbian\9.1\S60_3rd_MR\Epoc32\include\stdapis</tt>, edit the <tt>stdio.h</tt>, change line 278 into the following lines:<br/> | ||
#ifdef MOZ_STDERR_TO_STDOUT | #ifdef MOZ_STDERR_TO_STDOUT | ||
| Line 59: | Line 52: | ||
#define stderr (__stderr()) | #define stderr (__stderr()) | ||
#endif | #endif | ||
* | * Assume your Mozilla source tree is located at <tt>D:\mozilla</tt>, configure for emulator build by | ||
configure --target=arm-none-symbianelf --enable-symbian-target=WINSCW | |||
* | or configure for target build by | ||
configure --target=arm-none-symbianelf --enable-symbian-target=GCCE --disable-debug | |||
* Then invoke the build process by <tt>make</tt> and build test cases by <tt>cd pr/tests; make</tt>. | |||
At this point, you have done building NSPR for Symbian OS. | At this point, you have done building NSPR for Symbian OS. | ||
edits