Linphone Android 如何导入库项目?
我正在开发 SIP 应用程序并使用 Linphone 库.我正在尝试在设备上制作和运行构建,但遇到的问题很少
I am working on SIP application and using Linphone Library. I am trying to make and run the build on the device but getting few issues
我已经在我的 Mac 上设置了 Android SDK 和 NDK.现在,当我使用命令通过终端复制 repo 时
I have setup the Android SDK and NDK set up on my Mac. Now when i copy the repo via Terminal using command
$ git clone git://git.linphone.org/linphone-android.git --recursive
比 Makefile 运行这段代码:
And than to Makefile ran this code:
$make
然后它显示构建成功.
现在我需要将这个项目导入 Eclipse,当我将这个导入的项目(名为linphone-adroid"的文件夹)导入到我的 Eclipse 中时,它显示了很多项目,我很困惑我应该使用哪一个,如果我选择所有然后它给了我很多其他人的错误(如下图所示)
Now i need to import this project into Eclipse and when i do this imported project (folder named "linphone-adroid") into my Eclipse it shows me alot's of projects i am confused which one should i use and if i choose all of them then it gives me lot's of errors in other's (Shown in image below)
liblinphone-android --> Ran this on Device 运行良好,但是当我拨打号码时,它会更改视图并显示持续时间 0:00 并且不拨打号码,然后我必须按下挂断按钮才能关闭通话.(无法拨打电话)
liblinphone-android --> Ran this on Device runs fine but when i call the numbers it changes it's view and shows duration 0:00 and does not calls the numbers then i have to press hang off button to dismiss the call. (Not able to make call's)
请建议我应该如何将这个项目导入到我的 Eclipse 中,以及我需要在终端上运行哪些脚本才能使其运行.到目前为止我所做的是对还是错?
Please suggest me how should i import this project into my eclipse and what else scripts i need to run on the terminal to make it run. So far what i have did is right or wrong?
推荐答案
构建库后,你必须在eclipse中导入它
文件 -> 新建 -> 其他... -> Android -> 来自现有代码的 Android 项目 -> Browse_your_project
after building the library you have to import it in eclipse
File -> New -> Other... -> Android -> Android Project from Existing Code -> Browse_your_project
现在打开您的应用程序(有活动的项目)并分配您之前加载的 linphone 库....
右键单击您的项目->从左侧选择Android选项卡->从底部库部分,单击添加..."->您将看到您在Eclipse工作区中列出的库->选择正确的库-> 点击OK" -> 现在刷新并清理项目 -> 构建并尝试运行
Now open your application (Project which have activity) and assign linphone library which you have earlier loaded....
Right click on your project -> select Android tab from left hand side -> from the bottom library section, click on "Add..." -> you will see the listed library which you have in your eclipse workspace -> select correct one -> click "OK" -> now refresh and clean the project -> build and try to run
相关文章