tcpmp:移植:
————————————————————————————————————
TCPMP停止播放:
Player->Set(Player,PLAYER_STOP,NULL,0);
而不是:
// b = 1;
//Player->Set(Player,PLAYER_STOP,&b,sizeof(b));
——————————————————————————————————————————————————————————————————
if(Context_Init((tchar_t*)T("TCPMP"),(tchar_t*)T("0.72SRC"),3,NULL,
NULL))
{
//player* Player = (player *)Context()->Player;
//bool_t b = 0;
//Player->Set(Player,PLAYER_PLAY,&b,sizeof(b));
//int n = 0;
//Player->Set(Player,PLAYER_LIST_COUNT,&n,sizeof(n));
Context_Wnd((void*)(::GetDlgItem(m_hWnd, IDC_STATICPLAYER)));//必須要的
}
player* Player = (player *)Context()->Player;
bool_t b = 0;
//Player->Set(Player,PLAYER_PLAY,&b,sizeof(b));
//int n = 0;
//Player->Set(Player,PLAYER_LIST_COUNT,&n,sizeof(n));
LPCTSTR pszFileName = _T("//sdmmc//mp3//nocturne.mp3
");
PlayerAdd(Player, 0, (const tchar_t *)pszFileName, NULL);
//int vol = 50;
//Player->Set(Player,PLAYER_VOLUME,&vol,sizeof(int));//可以不要
b = 1;
Player->Set(Player,PLAYER_PLAY,&b,sizeof(b));
大家誰編譯過TCPMP
在網上下載了一個TCPMP0.72的源碼,evc4.0編譯,在emulator環境下可以運行。
但是到了ARMV4I下,common目錄編譯總是出錯,以下是出錯信息,各位誰編譯
成功過,指點一下
Linking...
Creating library ARMV4IDbg/common.lib and object
ARMV4IDbg/common.exp
platform.obj : error LNK2019: unresolved external symbol CPUSpeedClk
referenced in function CPUSpeed
block_c.obj : error LNK2019: unresolved external symbol CopyBlock8x8
referenced in function Copy420
block_half.obj : error LNK2019: unresolved external symbol CopyBlock8x8
referenced in function Copy420Half
block_wmmx.obj : error LNK2001: unresolved external symbol CopyBlock8x8
idct_c.obj : error LNK2001: unresolved external symbol CopyBlock8x8
block_c.obj : error LNK2019: unresolved external symbol CopyBlock16x16
referenced in function Copy420
block_c.obj : error LNK2019: unresolved external symbol IDCT_Block8x8
referenced in function Intra8x8
block_wmmx.obj : error LNK2001: unresolved external symbol IDCT_Block8x8
block_c.obj : error LNK2019: unresolved external symbol IDCT_Block4x8
referenced in function Intra8x8
block_wmmx.obj : error LNK2001: unresolved external symbol IDCT_Block4x8
block_c.obj : error LNK2019: unresolved external symbol
IDCT_Block8x8Swap referenced in function Intra8x8Swap
block_wmmx.obj : error LNK2001: unresolved external symbol
IDCT_Block8x8Swap
block_c.obj : error LNK2019: unresolved external symbol
IDCT_Block4x8Swap referenced in function Intra8x8Swap
block_wmmx.obj : error LNK2001: unresolved external symbol
IDCT_Block4x8Swap
block_wmmx.obj : error LNK2019: unresolved external symbol
WMMXIDCT_Const8x8 referenced in function WMMXInter8x8BackFwd
softidct.obj : error LNK2001: unresolved external symbol
CopyBlockHorVerRound
zhoupeng1979 2009-1-6 11:45
問題解決了,是彙編的問題
xiechuxin 2009-1-8 17:25
請教:如何解決
我也遇到同樣的問題,請教下如何解決
zhoupeng1979 2009-1-14 11:35
在幾個彙編文件上加上編譯選項:
armasm -32 -cpu xscale "$(InputPath)" "$(IntDir)/$(InputName).obj" -list
"$(IntDir)/$(InputName).lst"
輸出增加:
$(IntDir)/$(InputName).obj