gpt4 book ai didi

android - 如何解决此 linphone $ make 错误?

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:24:21 24 4
gpt4 key购买 nike

我能够在顶级目录中成功运行 prepare.py 脚本,没有错误。

但是,当我运行 $ make 命令时,出现以下错误。

谁能把我从这种折磨中拯救出来。

[ 33%] Building C object src/CMakeFiles/msamr.dir/amrnb.c.o
/home/pnwoke/linphone-android/submodules/msamr/src/amrnb.c:31:10: fatal error:
'amrnb/interf_dec.h' file not found
#include <amrnb/interf_dec.h>
^
1 error generated.
src/CMakeFiles/msamr.dir/build.make:77: recipe for target 'src/CMakeFiles/msamr.dir/amrnb.c.o' failed
make[6]: *** [src/CMakeFiles/msamr.dir/amrnb.c.o] Error 1
make[6]: Leaving directory '/home/pnwoke/linphone-android/WORK/android-arm/Build/msamr'
CMakeFiles/Makefile2:75: recipe for target 'src/CMakeFiles/msamr.dir/all' failed
make[5]: *** [src/CMakeFiles/msamr.dir/all] Error 2
make[5]: Leaving directory '/home/pnwoke/linphone-android/WORK/android-arm/Build/msamr'
Makefile:117: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/pnwoke/linphone-android/WORK/android-arm/Build/msamr'
CMakeFiles/EP_msamr.dir/build.make:111: recipe for target '/home/pnwoke/linphone-android/WORK/android-arm/Stamp/EP_msamr/EP_msamr-build' failed
make[3]: *** [/home/pnwoke/linphone-android/WORK/android-arm/Stamp/EP_msamr/EP_msamr-build] Error 2
make[3]: Leaving directory '/home/pnwoke/linphone-android/WORK/android-arm/cmake'
CMakeFiles/Makefile2:571: recipe for target 'CMakeFiles/EP_msamr.dir/all' failed
make[2]: *** [CMakeFiles/EP_msamr.dir/all] Error 2
make[2]: Leaving directory '/home/pnwoke/linphone-android/WORK/android-arm/cmake'
Makefile:76: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pnwoke/linphone-android/WORK/android-arm/cmake'
Makefile:148: recipe for target 'arm-build' failed
make: *** [arm-build] Error 2

最佳答案

显然发生错误是因为我的链接器没有选择头文件 interf_dec.h

所以我编辑了这个文件 /home/pnwoke/linphone-android/submodules/msamr/src/amrnb.c--->line:31:10 通过放置标题的绝对目录文件(例如:/home/pnwoke/linphone-android/submodules/msamr/src/interf_dec.h)

enter image description here

enter image description here

因此,如果您没有在该目录中看到头文件,请不要 panic 。哈哈。直接搜索整个linphone文件夹,从哪里复制到amrnb.c

目录下

对任何提示缺少头文件的错误执行相同的操作

关于android - 如何解决此 linphone $ make 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37811305/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com