ndk集成fmod过程中遇到的问题

1、F:\kotlin\flutter_trip\flutter_trip\qq_voicer_change\app\src\main\jni/common.h:9:10: fatal error: 'fmod.h' file not found

ndk集成fmod过程中遇到的问题

 

原因:

common.h与fmod.h不在同一个文件夹下导致引用不到头文件 fmod.h

解决办法:include fmod.h完整的路径名

ndk集成fmod过程中遇到的问题

 

 

2、error: undefined reference to 'Common_Init(void**)'

F:\kotlin\flutter_trip\flutter_trip\qq_voicer_change\app\src\main\jni/play_sound.cpp:23: error: undefined reference to 'Common_Init(void**)'

ndk集成fmod过程中遇到的问题

原因:编译时没有引入相应的源文件

解决办法:指定所需要的相应的源文件

ndk集成fmod过程中遇到的问题

 


 

3、error: undefined reference to 'FMOD::System::getVersion(unsigned int*)'

ndk集成fmod过程中遇到的问题

原因:编译所需要的.so时,需要预编译的.so

解决办法:指定预编译所需要的.so

ndk集成fmod过程中遇到的问题

 

4、error: ../../../../libs/armeabi/libfmod.so: incompatible target

原因:与所要生成的.so类型不匹配

ndk集成fmod过程中遇到的问题

解决办法:指定为相同的类型

ndk集成fmod过程中遇到的问题