移植TM**到Android | 编译

1. Android.mk LOCAL_C_INCLUDES

LOCAL_C_INCLUDES所指定的目录路径是Android源码目录下的直接路径.

LOCAL_C_INCLUDES := \
        work/unite_player/plugins/decoder/AAC/aacpp/include \
        work/unite_player/tmpc \


2.declared as function returning a function


3. undefined reference to
一是使用者自己定义的函数或者全局变量所在源代码文件,没有被编译、连接,或者干脆还没有定义,这需要使用者根据实际情况修改源程序,给出全局变量或者函数的定义体;


4conflicting types for '*****'

名字冲突

循环引用所致

更改头文件顺序


参数不匹配

void set_current_playspeed(tmpc_context *ptx, int num, int den)
void set_current_playspeed(void *ptx, int num, int den);


5expected declaration specifiers or ‘...’ before和 expected specifier-qualifier-lis

头文件包含混乱

例如,某结构体在A.h中定义,B.h利用到这个结构体。

解决方法,把头文件位置调换一下。


6

work/unite_player/tmpc/tmpc.c: In function 'tmpc_get_audio_volume':
work/unite_player/tmpc/tmpc.c:580: error: control reaches end of non-void function
work/unite_player/tmpc/tmpc.c: In function 'tmpc_set_audio_volume':
work/unite_player/tmpc/tmpc.c:575: error: control reaches end of non-void function
work/unite_player/tmpc/tmpc.c: In function 'tmpc_rotate':
work/unite_player/tmpc/tmpc.c:570: error: control reaches end of non-void function
work/unite_player/tmpc/tmpc.c: In function 'tmpc_get_player_state':
work/unite_player/tmpc/tmpc.c:565: error: control reaches end of non-void function
work/unite_player/tmpc/tmpc.c: In function 'tmpc_change_av_flag':
work/unite_player/tmpc/tmpc.c:560: error: control reaches end of non-void function


你可能感兴趣的:(android,function,reference,audio,returning,Types)