如何解决此 linphone $ make 错误?
How do I resolve this linphone $ make error?
我能够成功 运行 顶级目录中的 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
^
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)
因此,如果您没有在该目录中看到头文件,请不要惊慌。哈哈。直接搜索整个linphone文件夹,从哪里复制到amrnb.c
目录下
对任何抱怨缺少头文件的错误执行相同的操作
我能够成功 运行 顶级目录中的 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 ^ 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)
因此,如果您没有在该目录中看到头文件,请不要惊慌。哈哈。直接搜索整个linphone文件夹,从哪里复制到amrnb.c
目录下对任何抱怨缺少头文件的错误执行相同的操作