Swa*_*wap 1 android build linphone
我正在为Android构建Linphone应用程序.我使用Windows XP 32位.
1)下载android ndk 2)安装autotools:autoconf,automake,aclocal,libtoolize pkgconfig 3)运行./prepare_sources.sh/
我把终端的输出作为
$ ./prepare_sources.sh/cygdrive/d/android/androidNdk/android-ndk-r8d使用/ cygdrive/d/android/androidNdk/android-ndk-r8d作为android NDK ./prepare_sources.sh:line 23:git:command未找到将修补程序应用于ffmpeg无法在输入行3处找到要修补的文件也许您使用了错误的-p或--strip选项?
| --- submodules/externals/ffmpeg/libavcodec/arm/int_neon.S.orig 2011-09-30 19:43:21.935593025 +0200
文件补丁:
任何信息,问题或任何事实都非常感谢
Part 1
The following steps can help you create and install the build on your device or emulator(Tested on Mac):
Step1: you need to have the Android SDK and NDK configured and istalled Also install Autotools Mac users can use this link (Follow point 2.3 only in the link) Other platform users please make sure you install it correctly.
Step2: Mac users open up your terminal and clone the git repo on any directory you want to by running the following command: (Other users sorry i don't know how but i think you can figure it out that how you can get the git repo on your directory using command promt or whatever you are using)
$ git clone git://git.linphone.org/linphone-android.git --recursive
将Repo复制到目录后,转到目录并打开README文件并读出整个文件.
Step3:现在我们将按照README文件中的说明进行操作首先使用终端上的以下命令转到下载项目的根目录:
Mac users on terminal write cd and
then drag and drop the "linphone-android" folder on terminal
(when you drag and drop the folder terminal will get the path of the folder and then you can hit enter to get into the directory of that folder)
$ cd /Users/myname/Desktop/Android/linphone-android
Run Code Online (Sandbox Code Playgroud)
或者只是使用简单的命令cd进入该文件夹
$ cd Desktop
$ cd Android
$ cd linphone-android
Run Code Online (Sandbox Code Playgroud)
现在,当您进入终端上的目录时,请检查Mac运行中安装的SDK和NDK的PATH
$ echo $PATH
Run Code Online (Sandbox Code Playgroud)
如果您看到带有SDK和NDK位置的路径,则可以继续执行Step4并跳过下面的部分,如果没有,则需要在执行第4步中的make和make install脚本之前设置PATH:设置路径使用:
$ export PATH=/Users/myname/Documents/adt-bundle-mac-x86_64-20130729/sdk/platform-tools:/Users/myname/Documents/adt-bundle-mac-x86_64-20130729/sdk/tools:/Users/myname/Documents/android-ndk-r9:$PATH
Run Code Online (Sandbox Code Playgroud)
它就像导出PATH =(SDK平台工具文件夹的路径):( SDK工具文件夹的路径):(你的NDK文件夹的路径):$ PATH
这将设置路径并确认再次运行
$ echo $PATH
Run Code Online (Sandbox Code Playgroud)
现在您将看到SDK和NDK的路径就在那里.
第4步:现在如果路径已经设置,您可以简单地运行
$ make
Run Code Online (Sandbox Code Playgroud)
现在将您的设备连接到Mac/PC并查看eclipse是否已检测到它.设备连接后运行:
$ make install
$ make generate-sdk (optional)
Run Code Online (Sandbox Code Playgroud)
这会将应用程序安装到手机中.(您需要在应用程序中配置有效的SIP用户名和密码)
以上步骤对我有用,我能够在我的设备上运行该应用程序.
第2部分
导入Eclipse:完成构建之后,现在需要将其导入到eclipse中.
Step1: Go to eclipse click on File Menu then Import then select Existing Android Code into Workspace
Hit Next and Browse to the linphone-android project folder And Only tick linphone-android folder and Leave Copy project into workspace untick.
Do this Like the below image:

And hit finish. Now you right click on "linphone-android" (project name) and go to Properties and Java Build Path and then Order and Export and then reorder them as my image below and untick gcm.jar

Hit OK And Boom No errors Now just run it on device or emulator. (Make sure your minimum target SDK matches with your device or emulator.)
The above steps worked fine for me and it will work for you as well.
All the Best !!
| 归档时间: |
|
| 查看次数: |
6652 次 |
| 最近记录: |