2016-06-14 63 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的目錄

做同樣缺少頭文件