Сергей Паю
2006-Oct-20 05:22 UTC
[Speex-dev] To symbian and speex developers! Building instructions
Hello to everyone! During building speex library for Symbian OS I encountered some problems. All thess problems can be solved by modifying the speex sources. I don't have access to SVN repository of speex, so I will just describe the changes to be done: 1) mmp file in symbian derictory misses windows.c sources. You need to add this string into speex.mmp: SOURCES windows.c 2) Symbian OS doesn't support static writable data, so you have to modify filters.c sources file. You need to make all global definitions of shift_filt constant. Like this: const spx_word16_t shift_filt[3][7] = ... (just add 'const') Also it will be excellent if somebody can make symbian readme more informative. I think readme file should remind to symbian developer to include speex.lib as STATICLIBRARY reference. Otherwise symbian developer will waste a lot of time trying to find the reasons for linking problems, Thanks, Payu Sergey
Alfred E. Heggestad
2006-Oct-20 20:53 UTC
[Speex-dev] To symbian and speex developers! Building instructions
inline. ?????? ??? wrote:> Hello to everyone! > > During building speex library for Symbian OS I encountered some problems. All thess problems can be solved by modifying the speex sources. I don't have access to SVN repository of speex, so I will just describe the changes to be done: > > 1) mmp file in symbian derictory misses windows.c sources. You need to add this string into speex.mmp: > > SOURCES windows.c >attached is a patch that fixes the symbian build. Payu Sergey, could you please test it? if it works ok then it would be nice if Jean-Marc could apply it to svn.> 2) Symbian OS doesn't support static writable data, so you have to modify filters.c sources file. You need to make all global definitions of shift_filt constant. Like this: > > const spx_word16_t shift_filt[3][7] = ... (just add 'const') >not sure what you mean by "just add const" - could you please send a working patch to the mailing-list so I could test it ? /alfred> Also it will be excellent if somebody can make symbian readme more informative. I think readme file should remind to symbian developer to include speex.lib as STATICLIBRARY reference. Otherwise symbian developer will waste a lot of time trying to find the reasons for linking problems, > > Thanks, > Payu Sergey > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev-------------- next part -------------- A non-text attachment was scrubbed... Name: speex-symbian.patch Type: text/x-patch Size: 3360 bytes Desc: not available Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20061020/2d3a6713/speex-symbian.bin
Ashhar Farhan
2006-Oct-20 21:11 UTC
[Speex-dev] To symbian and speex developers! Building instructions
I think this mail was intended for the group. jean, please change that one line in filters.c (I too confirm this change in my symbian build). the mmp file should also be updated by including the windows.c. I also recommend taking out mfd.c from the mmp file as the ARM cpu is too slow to support echo cancellation and preprocessing that require floats. thanks payu, for the input. i remeber fixing this but i promptly forgot which filter was not const. - farhan On Tue, 17 Oct 2006, [koi8-r] ?????? ??? wrote:> Hello to everyone! > > During building speex library for Symbian OS I encountered some problems. All thess problems can be solved by modifying the speex sources. I don't have access to SVN repository of speex, so I will just describe the changes to be done: > > 1) mmp file in symbian derictory misses windows.c sources. You need to add this string into speex.mmp: > > SOURCES windows.c > > 2) Symbian OS doesn't support static writable data, so you have to modify filters.c sources file. You need to make all global definitions of shift_filt constant. Like this: > > const spx_word16_t shift_filt[3][7] = ... (just add 'const') > > Also it will be excellent if somebody can make symbian readme more informative. I think readme file should remind to symbian developer to include speex.lib as STATICLIBRARY reference. Otherwise symbian developer will waste a lot of time trying to find the reasons for linking problems, > > Thanks, > Payu Sergey > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >
Alfred E. Heggestad
2006-Oct-20 21:23 UTC
[Speex-dev] To symbian and speex developers! Building instructions
inline. ?????? ??? wrote:> Hello to everyone! > > During building speex library for Symbian OS I encountered some problems. All thess problems can be solved by modifying the speex sources. I don't have access to SVN repository of speex, so I will just describe the changes to be done: > > 1) mmp file in symbian derictory misses windows.c sources. You need to add this string into speex.mmp: > > SOURCES windows.c >attached is a patch that fixes the symbian build. Payu Sergey, could you please test it? if it works ok then it would be nice if Jean-Marc could apply it to svn.> 2) Symbian OS doesn't support static writable data, so you have to modify filters.c sources file. You need to make all global definitions of shift_filt constant. Like this: > > const spx_word16_t shift_filt[3][7] = ... (just add 'const') >not sure what you mean by "just add const" - could you please send a working patch to the mailing-list so I could test it ? /alfred> Also it will be excellent if somebody can make symbian readme more informative. I think readme file should remind to symbian developer to include speex.lib as STATICLIBRARY reference. Otherwise symbian developer will waste a lot of time trying to find the reasons for linking problems, > > Thanks, > Payu Sergey > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev-------------- next part -------------- A non-text attachment was scrubbed... Name: speex-symbian.patch Type: text/x-patch Size: 3361 bytes Desc: not available Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20061020/2d66a31b/speex-symbian.bin
Alfred E. Heggestad
2006-Oct-20 21:51 UTC
[Speex-dev] To symbian and speex developers! Building instructions
hi please see the attached patch which fixes some of the symbian issues.. /alfred ?????? ??? wrote:> Hello to everyone! > > During building speex library for Symbian OS I encountered some problems. All thess problems can be solved by modifying the speex sources. I don't have access to SVN repository of speex, so I will just describe the changes to be done: > > 1) mmp file in symbian derictory misses windows.c sources. You need to add this string into speex.mmp: > > SOURCES windows.c > > 2) Symbian OS doesn't support static writable data, so you have to modify filters.c sources file. You need to make all global definitions of shift_filt constant. Like this: > > const spx_word16_t shift_filt[3][7] = ... (just add 'const') > > Also it will be excellent if somebody can make symbian readme more informative. I think readme file should remind to symbian developer to include speex.lib as STATICLIBRARY reference. Otherwise symbian developer will waste a lot of time trying to find the reasons for linking problems, > > Thanks, > Payu Sergey > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev-------------- next part -------------- Index: symbian/bld.inf ==================================================================--- symbian/bld.inf (revision 11929) +++ symbian/bld.inf (working copy) @@ -30,6 +30,21 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +PRJ_EXPORTS + +..\include\speex\speex_bits.h \epoc32\include\speex\speex_bits.h +..\include\speex\speex_callbacks.h \epoc32\include\speex\speex_callbacks.h +..\include\speex\speex_config_types.h \epoc32\include\speex\speex_config_types.h +..\include\speex\speex_echo.h \epoc32\include\speex\speex_echo.h +..\include\speex\speex.h \epoc32\include\speex\speex.h +..\include\speex\speex_header.h \epoc32\include\speex\speex_header.h +..\include\speex\speex_jitter.h \epoc32\include\speex\speex_jitter.h +..\include\speex\speex_noglobals.h \epoc32\include\speex\speex_noglobals.h +..\include\speex\speex_preprocess.h \epoc32\include\speex\speex_preprocess.h +..\include\speex\speex_stereo.h \epoc32\include\speex\speex_stereo.h +..\include\speex\speex_types.h \epoc32\include\speex\speex_types.h + + PRJ_MMPFILES speex.mmp Index: symbian/speex.mmp ==================================================================--- symbian/speex.mmp (revision 11929) +++ symbian/speex.mmp (working copy) @@ -36,10 +36,10 @@ MACRO HAVE_CONFIG_H SOURCEPATH ..\libspeex SOURCE bits.c cb_search.c exc_5_64_table.c exc_5_256_table.c exc_8_128_table.c -SOURCE exc_10_16_table.c exc_10_32_table.c exc_20_32_table.c filters.c gain_table.c +SOURCE exc_10_16_table.c exc_10_32_table.c exc_20_32_table.c fftwrap.c filterbank.c filters.c gain_table.c SOURCE gain_table_lbr.c hexc_10_32_table.c hexc_table.c high_lsp_tables.c jitter.c SOURCE lbr_48k_tables.c lpc.c lsp.c lsp_tables_nb.c ltp.c math_approx.c mdf.c misc.c SOURCE modes.c nb_celp.c preprocess.c quant_lsp.c sb_celp.c smallft.c -SOURCE speex.c speex_callbacks.c speex_header.c stereo.c vbr.c vq.c +SOURCE speex.c speex_callbacks.c speex_header.c stereo.c vbr.c vq.c window.c USERINCLUDE . ..\include\speex SYSTEMINCLUDE \epoc32\include \epoc32\include\libc ..\include Index: libspeex/filterbank.c ==================================================================--- libspeex/filterbank.c (revision 11929) +++ libspeex/filterbank.c (working copy) @@ -47,6 +47,8 @@ FilterBank *bank; float df, max_mel, mel_interval; int i; + int id1; + int id2; df = .5*sampling/len; max_mel = toBARK(max_freq); mel_interval = max_mel/(banks-1); @@ -59,8 +61,6 @@ bank->filter_left = speex_alloc(len*sizeof(float)); bank->filter_right = speex_alloc(len*sizeof(float)); bank->scaling = speex_alloc(banks*sizeof(float)); - int id1; - int id2; for (i=0;i<len;i++) { Index: libspeex/fftwrap.c ==================================================================--- libspeex/fftwrap.c (revision 11929) +++ libspeex/fftwrap.c (working copy) @@ -103,8 +103,9 @@ if (in==out) { int i; + float scale; speex_warning("FFT should not be done in-place"); - float scale = 1./((struct drft_lookup *)table)->n; + scale = 1./((struct drft_lookup *)table)->n; for (i=0;i<((struct drft_lookup *)table)->n;i++) out[i] = scale*in[i]; } else {
Jean-Marc Valin
2006-Oct-21 12:59 UTC
[Speex-dev] To symbian and speex developers! Building instructions
> jean, please change that one line in filters.c (I too confirm this > change in my symbian build). the mmp file should also be updated by > including the windows.c.I already fixed filters.c in svn and will apply Alfred's patch soon.> I also recommend taking out mfd.c from the mmp file as the ARM cpu is > too slow to support echo cancellation and preprocessing that require > floats.Actually mdf.c can be compiled for fixed-point. Jean-Marc> thanks payu, for the input. i remeber fixing this but i promptly forgot > which filter was not const. > > - farhan > > On Tue, 17 Oct 2006, [koi8-r] ?????? ??? wrote: > >> Hello to everyone! >> >> During building speex library for Symbian OS I encountered some >> problems. All thess problems can be solved by modifying the speex >> sources. I don't have access to SVN repository of speex, so I will >> just describe the changes to be done: >> >> 1) mmp file in symbian derictory misses windows.c sources. You need to >> add this string into speex.mmp: >> >> SOURCES windows.c >> >> 2) Symbian OS doesn't support static writable data, so you have to >> modify filters.c sources file. You need to make all global definitions >> of shift_filt constant. Like this: >> >> const spx_word16_t shift_filt[3][7] = ... (just add 'const') >> >> Also it will be excellent if somebody can make symbian readme more >> informative. I think readme file should remind to symbian developer to >> include speex.lib as STATICLIBRARY reference. Otherwise symbian >> developer will waste a lot of time trying to find the reasons for >> linking problems, >> >> Thanks, >> Payu Sergey >> _______________________________________________ >> Speex-dev mailing list >> Speex-dev@xiph.org >> http://lists.xiph.org/mailman/listinfo/speex-dev >> > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev > >