2.13.2009

Build DLL - using CeGcc

目標是要 build DLL 檔。
剛好在 這裡 看到有一個 instruction ,target 是 DLL:

arm-wince-cegcc-gcc -shared *.o -o libvorbisidec.dll
看來應該是先用 -c compile 成 .o ,再用 -shareed *.o 把所有 .o 包裝成 DLL. (猜的)
這是build tremor : libvorbisidec.dll 的instruction.
順便看一下 Xiph.org , 原來是 ogg codec ,:
Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed audio format for mid to high quality (8kHz-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and variable bitrates from 16 to 128 kbps/channel.

所以大家 default 都要用這個才對,別再用 mp3 了..

照著這篇試試看..
svn co -r14321 http://svn.xiph.org/branches/lowmem-branch/Tremor
需要 libtool..
照著 make 就 fail, 說是 arm_asm 有不知道的定義,所以大概要用 0.50 版的 cegcc 吧!

最後是follow 同一篇的 zlib example 完成。
make 最後 example 時會fail,說是libz.a 沒有 index,要 run ranlib 產生,但是用 host 的 ranlib 還是沒效,要run 'arm-wince-cegcc-ranlib' 才有效。 run 過後再 make 就OK

沒有留言: