2016-06-14 89 views
1

我能够成功运行顶级目录中的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
+0

输出VERBOSE的是抱怨任何错误复制= YES,哪里是头编译器正在寻找位于哪个文件? – arved

+0

DId你安装opencore-amr吗?也告诉我们一些关于环境的问题 – khrm

+0

我对linphone很陌生,所以我对头文件不熟悉......我只按照[这里]指示的步骤(http://www.coders-hub.com/2015 /04/start-working-on-linphone-android-part-1.html) –

回答

0

,因为我的连接没有采摘头文件interf_dec.h

显然发生了错误所以我编辑这个文件/家庭/ pnwoke/Linphone中,机器人/子模块/ 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

所以,如果你没有看到该目录中的头文件,请不要惊慌。大声笑。只要搜索整个Linphone中文件夹,不管它是amrnb.c的目录

做同样缺少头文件