Following the instructions given here to build WebRTC for iOS. I did the gclient sync and download was successful. I was able to successfully check out the code, now I'm trying to configure the build. I'm using GN to configure as given in instructions, however I get this error: gn.py: Could not find gn executable at: ../Desktop/webRtc/buildtools/mac/gn
What am I doing wrong and how can I fix this?
Thanks!
Related
I have created fresh project(Hello World) in KMM followed by their official website. In android it works smooth but when I am trying to run in XCode it's giving errors because of which I am unable to build / run the xcode project. I have attached screenshots and logs for my errors. Somehow xcode scheme is not getting generated in the KMM platform that's what I am guessing.
Can anyone please help me understand what am I missing?
Any help would be appriciated.
Following is my dev env:
Xcode 11.4.1
Android 4.1.2
Kotling Plugin version 1.4.30 (stable)
KMM 0.2.0```
XCode Logs:
> Task :shared:compileKotlinIosX64
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Extracting dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz into /Users/fatin/.konan/dependencies
e: java.lang.RuntimeException: Cannot extract archive with dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz.
> Task :shared:compileKotlinIosX64 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileKotlinIosX64'.
> Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
1 actionable task: 1 executed
Command PhaseScriptExecution failed with a nonzero exit code ```
[![enter image description here][3]][3]
I reached out to community for this and finally found the solution. Here is the link to that issue which I raised and solved this problem.
If anyone else is going through this same issue it mostly cause of corrupted kotlin file.
Also try checking your cmd line tools in XCode as per comments.
Hope this helps someone. Cheers.
If the project doesn't run right away even on opening it from Xcode and shows the shared framework is missing, Then try generating the shared framework for iOS platform using terminal. Navigate to the project folder and execute
Command: ./gradlew packForXcode Now the shared framework should have a xcode-frameworks product and you should be able to build and run the project through Xcode.
This could happen if there are two libraries, where one library was compiled against the different version of the other library than the one currently used in the project. Please check that the project configuration is correct and has consistent versions of dependencies.
I am using Respeaker core v2.0 with Google Assistant and trying to install the Google Assistant SDK and run the sample code:
http://wiki.seeedstudio.com/Google_Assistant/
I am referring to the steps involved in the above links. After generating the credentials and providing access to the model. I have installed the Respeakerd which is the last step of the above documentation and also cloned the GitHub repo. But when I am giving the below command:
sudo python setup.py install
I am getting this error:
error: click 7.1.1 is installed but click<7,>=6.7; extra == "samples"
is required by set(['google-assistant-sdk'])
And finally when I am trying to activate the google assistant I am getting this output as below which is not expected:
I have installed all the dependencies correctly. I don’t know where am I going wrong. Can somebody please help me fix this?
I want to use opencv in iOS app. I cloned openCV through terminal (git clone https://github.com/opencv/opencv.git) for building opencvframework.
I used this command python opencv/platforms/ios/build_framework.py ios as per official opencv website's tutorial but i get an error that say
ERROR: Command '['xcodebuild', '-version']' returned non-zero exit
status 1
I think that might be opencv compatitibility error. I am using Xcode 8.2.1 in MAC OSX El capitan. Can somebody tell me what am i doing wrong?
There is a same issue on Github, and it looks has been fixed:
https://github.com/opencv/opencv/issues/6093
Please check:
If I add "#include " in gzguts.h, this error can be fixed.
And I have successfully build the framework under maxOS Sierra 10.12.6 and Xcode 8.3.3:
You could download it directly from link: http://onqouewnn.bkt.clouddn.com/opencv2.framework.zip
I just downloaded the Facebook 3.27 SDK from the Facebook's developer account.
In the getting started section (https://developers.facebook.com/docs/ios/getting-started), it mentions "Then build the SDK from source before you compile and run any samples".
It does not mention how to build the source. Is this done through Xcode, or through a shell script? If done through either, there is an error message where the build chokes on building "Bolts" with a "Directory not found".
Any ideas on how I'm supposed to build the SDK?
It does actually mention how to build it:
Then build the SDK from source before you compile and run any samples:
./scripts/build_framework.sh
But I would just download it from the link provided and skip the build step... It's not an 'AND'. It's there if you'd rather download it from github / install it via cocoapods. That step is not needed if you just download the .PKG file
This is my first time trying with Gstreamer for ios , I went with the tutorial and installed the SDK with the link provided by the tutorial:
http://docs.gstreamer.com/display/GstSDK/Installing+for+iOS+development
The installation works fine, but after I start trying the tutorial example projects, there couple of compiling errors compiling about missing gst/video/videooverlay.h . Then I looked into the header folder under the installed GStreamer header folder, there is no filed called video/videooverlay.h
Then I search online, found this information:
Gstreamer for iOS provided is out of date. I used the freedesktop packages
from https://github.com/braincorp/gstreamer_ios_tutorial
Then I downloaded another installation pkg for GStreamer
Then while I was trying to install the later version, the installer give me error saying:
you cannot install GStreamer 1.0 (Development Files) in this location.
Then I thought I might need to uninstall the previous version, but I couldn't finder a standard uninstallation option from the installer, then I searched online, find one post suggest remove the GStreamer folder under ~/Library/Developer
I have removed the installed folder, so I don't have any header files, but the new installer still gives the same error
I have been trying to figure this out for sometime, couldn't find useful info on line , I really appreicate any clue and help you might have!
Thanks!!
Jing
Answering my own question here..
not sure what's the issue, after restarting my mac, and run the installer couple of times with the same error, it suddenly worked ....... i am not sure what's the matter here, hope gstreamer team can improve the stability of the installer in the future.
At work we are currently trying to get the IOS tutorials from the streamer 1.0 sdk to run.
1) Compilation: Same thing: we managed to bootstrap (cerbero ... bootstrap) and compile (cerebra ... package streamer-sdk) using the official cerebero git repository.
But:
a) We had to mock around with the /cerbero/cerbero/enums.py file:
Add in the collection of supported old IOS (6.0, 6.1, 7.0, etc...) the one corresponding to our Xcode version : IOS 8.4
b) We had to customize the /cerbero/config/ios.config and iOS-universal.config files to get them to use the right architecture in our case: arm7v or arm7 instead of X64_86 or x86
c) We removed the not found is_asm() function from the x264 plugin's recipe file in the /cerbero/recipes.
For a reason we ignore, for all other platforms but IOS, the recipes check on the architecture available using:
if self.config.target_arch == Architecture.xxx:
of iOS is was using that missing function: is_asm(self.config.target_arch)
We replaced it by:
if self.config.target_arch == Architecture.ARMv7:
Compiling an iOS app using streamer:
So far it is a failure. we bumped into the same missing overlay.h header file. We couldn't find it anywhere.
DIFFERENCE between gstreamer.com (the sdk provider) and the official streamer website (free desktop.gsteamer.org):
We found out that gstreamer.com is clearly a commercial goal company that is making available the sdk, that people struggle on with for IOS (tested and working fine on linux) and the official website is providing the gstreamer library only without an sdk.
So this is what we are trying to use instead as of today.
Versions infos:
sdk (from gstreamer.com): current cerbero git master branch: git clone git://anongit.freedesktop.org/gstreamer-sdk/cerbero
official gstreamer library:
http://gstreamer.freedesktop.org/data/pkg/ios/1.5.2/