Error while compiling Web RTC for Android - android

I am developing app of video chat in Web RTC.
I am going through documentation of Web RTC.
I have followed all steps mentioned for Getting the Code
export GYP_DEFINES="OS=android"
fetch --nohooks webrtc_android
gclient sync
I have all src code of web rtc in my root directory. As per documentation say we have to compile source to use in our application. Here i got error while compiling source using following command.
$ gn gen out/Default --args='target_os="android" target_cpu="arm"'
ERROR at //build/config/android/internal_rules.gni:636:3: Can't load input file.
import("//third_party/ijar/ijar.gni")
^-----------------------------------
Unable to load:
/Users/c86/webrtc-checkout/src/third_party/ijar/ijar.gni
I also checked in the secondary tree for:
/Users/c86/webrtc-checkout/src/build/secondary/third_party/ijar/ijar.gni
See //build/config/android/rules.gni:8:1: whence it was imported.
import("//build/config/android/internal_rules.gni")
^-------------------------------------------------
See //webrtc/examples/BUILD.gn:12:3: whence it was imported.
import("//build/config/android/rules.gni")
^----------------------------------------
See //BUILD.gn:13:5: which caused the file to be included.
"//webrtc/examples",
^------------------
How can I solve this? Am I going in right direction to develop app of video chat on Web RTC?

Building WebRTC for Android is only supported on Ubuntu(14 / 16).
Currently not supported in macOS.

Related

Unable to build GStreamer pipeline; no element x265enc in Android

I am trying to implement H265 using the x265enc encoder in an android application using GStreamer. I have constructed the pipeline which works when using the terminal and gst-launch-1.0 and videotestsrc. However, when trying to execute the pipeline in android it doesn't work and gives the error gst_error_factory_make: no such element factory "x265enc"! and is unable to build the pipeline due to the element x265enc missing.
I have installed plugins-bad (contains x265enc) on the computer and it is in the android.mk file. When I look in the plugins.mk file I don't see x265 mentioned anywhere (x264 is mentioned and x264enc works). Is this an issue? Is there another way to install x265enc so that android can recognize it?
try to install gst-plugins-ugly-1.0 and it will solve your issue

Can't save core dump when using LLDB in android studio (osx)?

When using LLDB to debug an android project that uses native libraries, i'm unable to export the core dump.
I run my application and get a SIGSEGV in the debugger. Then I open the LLDB console in Android Studio and get the following when i try to export the core dump.
(lldb) process save-core ./core-20180730-174318
error: Failed to save core file for process: no ObjectFile plugins were able to save a core for this process
Currently SaveCore is only implemented for the MachO and PECOFF file formats, but not for ELF. Feel free to file a request for this with bugs.llvm.org and somebody will get around to it at some point. Or if you are interested in hacking on the debugger, you can have a go at implementing it yourself! The people on the lldb-dev (lldb-dev#lists.llvm.org) list would be more than happy to help you out if you want to try your hand at this.

Unable to find libPluginProtocol.jar while integrating Facebook plugin with Cocos2d-x android on windows

I am trying to integrate facebook using Plugin-x in cocos2d-x v3.5. I followed the following steps:
cd to MyProject/cocos2d/plugin/tools/
./publish.sh - on cygwin all the plugins get published one by one, for eg consider this Flurry trace
atarget dir is /Users/Shivam/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/publish/plugins/flurry
android project dir is /Users/Shivam/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/plugins/flurry/proj.android
Publish plugin for android
~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/plugins/flurry/proj.android ~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/tools ~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/tools
BUILD SUCCESSFUL
Total time: 0 seconds
BUILD FAILED
/Users/Shivam/Documents/Gautam/android-sdk-macosx/tools/ant/build.xml:542: Unable to resolve project target 'android-7'
Total time: 0 seconds
cp: /Users/Shivam/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/plugins/flurry/proj.android/bin/*.jar: No such file or directory
~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/tools
~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/tools
All the plugins get published in the similar manner. I don't have android API 7, because of which it is failing, so can this be the reason my libpluginProtocol.jar is not getting generated?
I see a proper structure under under MyProject/cocos2d/plugin/publish/plugins
I also used gameDevGuide.sh and selected facebook.
Still I don't see libPluginProtocol.jar and libPluginFacebook.jar.
Please help. TIA
Ok so I found the answer. the library gets generated only when you have all the Android APIs viz, 7,8,10,17 and 19 apart from your own target APIs

Modules do not start in Google App Engine Python on Development Server

Problem:
I am trying to create a simple app to try Modules in Google App Engine Python on Development Server(Development SDK 1.9.2). But I do not see the modules getting started at runtime(log messages specifying the ports on which they are started).
Logs when I start the app using the Launcher on the development server:
2014-04-13 02:40:47 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=11080', '--admin_port=8003', u'C:\\gaurav\\coding\\python\\androidbackend1']"
INFO 2014-04-13 02:40:50,572 devappserver2.py:764] Skipping SDK update check.
INFO 2014-04-13 02:40:50,627 api_server.py:171] Starting API server at: http://localhost:59432
INFO 2014-04-13 02:40:50,631 dispatcher.py:182] Starting module "default" running at: http://localhost:11080
INFO 2014-04-13 02:40:50,634 admin_server.py:117] Starting admin server at: http://localhost:8003
INFO 2014-04-13 02:40:56,062 module.py:627] default: "GET / HTTP/1.1" 200 12
This Modules doc page at GAE for Python does not mention anything about development server. From another link, I figured out that on development server, all the modules are started at the beginning of app execution and they only differ in the port number of their URLs
Context:
I created a new app using the Google Launcher which generates a default "main.py" and "app.yaml". I then copied the "main.py" into a file named "modulem1.py", while retaining "main.py". I copied "app.yaml" into a file named "modulem1.yaml", while retaining the "app.yaml" file. I added the following line to "modulem1.yaml":
module: modulem1
I want to use Google Endpoints API to interact between the web app and Android app. So I need to use module for that and therefore I am trying a small web app with modules
I should be missing something obvious. Appreciate any help
If you are using the Google App Engine Launcher, then you will need to provide the full path to your second yaml file modulem1.yaml
Then once you start it, you can view the Logs and see that the modulem1 module has been launched at http://localhost:8080 and the default module has been launched at http://localhost:8081

Error in Generating client library(Android) From Google app Engine(in Maven)

I am in the process of learning to create google-app-engine as well as to generate Endpoint client library(for Android) from my app-engine application.
So far I have done the following things
Step 1 : Create Endpoint API : Complete
I have followed the instructions given here(using Maven) and have successfully deployed the app-engine application
https://developers.google.com/appengine/docs/java/endpoints/getstarted/backend/
Step 2 : Generate Client Library(for Android) : Getting ERROR here
I have followed the instruction here
https://developers.google.com/appengine/docs/java/endpoints/gen_clients
I gave the following command from the root directory of my app-engine application
endpoints.sh get-client-lib Greetings
But getting the following error
Dec 16, 2013 5:47:43 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
SEVERE: Received exception processing ./war/WEB-INF/appengine-web.xml
com.google.apphosting.utils.config.AppEngineConfigException: Could not locate /Users/raj/Documents/workspace-maven/helloendpoints/./war/WEB-INF/appengine-web.xml
Give below are my questions,
Is this command execution right?
endpoints.sh get-client-lib Greetings
In the documentation in google ; the second argument is
specified as 'get-client-lib' I have given the same name while
executing the command ; is this right?
As you can see in the error ; it describes ; file -
helloendpoints/./war/WEB-INF/appengine-web.xml could not be located.
The file is indeed available in my application, but is located in a
different directory(indeed in 3 locations) ; What should I do here?
./src/main/webapp/WEB-INF/appengine-web.xml
./target/generated-sources/appengine-endpoints/WEB-INF/appengine-web.xml
./target/helloendpoints-1.0-SNAPSHOT/WEB-INF/appengine-web.xml
The documentation suggest me to edit 'web.xml' file. But the file is
available in 3 location and am not sure which one I have to edit(I
have edited the file in 3rd location)
./src/main/webapp/WEB-INF/web.xml
./target/generated-sources/appengine-endpoints/WEB-INF/web.xml
./target/helloendpoints-1.0-SNAPSHOT/WEB-INF/web.xml
I am finding it quite difficult to resolve this issue ; as there is no other documentation (or) examples available in web other than the Google official documentation.
Would appreciate if some-one can help me to resolve this. Thank you.
you just need to make sure that, you directory exist and that you have the required files into the directories. I can also use the maven goal to make the generation, I read a complete article on the issue here. http://thenavigatorme.blogspot.com/2014/05/how-to-resolve-google-cloud-endpoints.html
Hope this helps.

Categories

Resources