TCPMP 编译

来源:互联网 发布:公认最好的排序算法 编辑:程序博客网 时间:2024/05/24 06:36

为Windows CE编译tcpmp

1)解压tcpmp.src.0.72RC1.tar.bz2到E:/OpenSourceStudy/tcpmp-WinCE
2)用Embedded VC 4.0打开tcpmp.vcw,执行Build All。
  提示错误:E:/OpenSourceStudy/tcpmp-WinCE/common/portab.h(145): Could not find the file stdint.h.
  解决:注释掉此行。
3)继续Build All
  提示错误:
  Performing Custom Build Step on ./cpu/x86.asm
  'nasm' 不是内部或外部命令,也不是可运行的程序或批处理文件。
  Error executing c:/windows/system32/cmd.exe.
解决:下载nasm-2.05rc5-win32.zip,解压后拷贝nasm.exe到D:/Program Files/Microsoft eMbedded C++ 4.0/Common/EVC/Bin。
4)继续Build All.
  提示错误:
--------------------Configuration: amr - Win32 (WCE ARMV4) Release--------------------
Build : warning : failed to (or don't know how to) build 'E:/OpenSourceStudy/tcpmp-WinCE/amr/26204/if_rom.c'
Compiling...
amrnb.c
e:/opensourcestudy/tcpmp-wince/amr/amrnb.c(27) : fatal error C1083: Cannot open include file: '26104/interf_dec.h': No such file or directory
amrwb.c
e:/opensourcestudy/tcpmp-wince/amr/amrwb.c(27) : fatal error C1083: Cannot open include file: '26204/dec_if.h': No such file or directory

  解决:下载
    http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-610.zip
    
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-600.zip
    解压后分别copy到
    E:/OpenSourceStudy/tcpmp-WinCE/amr/26104  E:/OpenSourceStudy/tcpmp-WinCE/amr/26204

5)继续Build All
报错:
--------------------Configuration: asap - Win32 (WCE ARMV4) Release--------------------
e:/opensourcestudy/tcpmp-wince/asap/atari800/src/cpu.c(58) : fatal error C1083: Cannot open include file: 'config.h': No such file or directory
mzpokeysnd.c
e:/opensourcestudy/tcpmp-wince/asap/atari800/src/mzpokeysnd.c(25) : fatal error C1083: Cannot open include file: 'config.h': No such file or directory
pokeysnd.c
e:/opensourcestudy/tcpmp-wince/asap/atari800/src/pokeysnd.c(25) : fatal error C1083: Cannot open include file: 'config.h': No such file or directory
asap.c
e:/opensourcestudy/tcpmp-wince/asap/asap/asap.c(24) : fatal error C1083: Cannot open include file: 'config.h': No such file or directory
解决:如下图,对asap项目设置Preprocessor标示ASAP,并添加三个头文件目录。


6)继续Build All,会发现项目flac也需要重新设置。方法如下图:

 

 

 

flac 不影响播放,如果编译不过,去掉依赖性就可以了!本人用的汇编编译器是从VS2005中拷贝出来的ARMNASM.EXE

 

该贴转自http://dahui.blog.ccidnet.com/blog-htm-do-showone-uid-258875-itemid-787253-type-blog.html