Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Need info #1

Closed
utkarshs07 opened this issue Aug 2, 2016 · 8 comments
Closed

Need info #1

utkarshs07 opened this issue Aug 2, 2016 · 8 comments
Labels

Comments

@utkarshs07
Copy link

This framework contains native code of WebRTC like static library or only objC code (.h & .m) placed at webrtc/sdk/objc ???

Build configuration: release or debug?

@AlexKMDev
Copy link
Owner

AlexKMDev commented Aug 2, 2016

This dynamic framework contains only objc wrapper and it's updated from webrtc/sdk/objc/Framework. talk/app/webrtc/objc/public (from which other frameworks was built, like libjingle_peerconnection) is outdated and will be removed in the future.

Build configuration: Release, I assume. You can build it yourself and you will see framework itself and debugging symbols .dsym file, which is needed for debugging.

@utkarshs07
Copy link
Author

actually i don't know the process of building this framework .. can you guide me?

and if this framework only contains objC wrapper then what about the webrtc code... do we need to build separate file for this and using two files one is wrapper second is webrtc?

@x3mall1986
Copy link

Videocall work fine only with this framework with h264 codex

@AlexKMDev
Copy link
Owner

@utkarshs07 no, it will work out of the box. It contains webrtc code, but only objc wrapper headers are exposed.

Build instructions there: https://webrtc.org/native-code/ios/ You just need to run webrtc/build/ios/build_ios_libs.sh after cloning repository. Also, I uploaded .dSYM in the releases. https://github.com/Anakros/WebRTC-iOS/releases

@utkarshs07
Copy link
Author

utkarshs07 commented Aug 3, 2016

Actually i need static library and headers. I don't want framework.

In .sh file, i've made few changes:

from:

BUILD_TYPE="framework"
PERFORM_CLEAN=0
FLAVOR="Profile"
POINT_VERSION="0"

to:

BUILD_TYPE="static_only"
PERFORM_CLEAN=0
FLAVOR="Release"
POINT_VERSION="0"

when i run giving me error of ninja: command not found

$ /Users/vikrantjain/LocalGit/webrtc-build-scripts-master/ios/webrtc/src/webrtc/build/ios/build_ios_libs.sh 

Building WebRTC arch: arm
Building static only.
~/LocalGit/webrtc-build-scripts-master/ios/webrtc/src ~
Updating projects from gyp files...
~
/Users/vikrantjain/LocalGit/webrtc-build-scripts-master/ios/webrtc/src/webrtc/build/ios/build_ios_libs.sh: line 98: ninja: command not found

Though i've already build static library of r13570.
if i copy headers from sdk folder instead of using talk
and in each header file if i modify #import statement

from:
#import <WebRTC/RTCMediaStreamTrack.h>
to:
#import "RTCMediaStreamTrack.h"

will it work?

@AlexKMDev
Copy link
Owner

I don't know, you can ask there https://groups.google.com/forum/#!forum/discuss-webrtc

@x3mall1986
Copy link

x3mall1986 commented Aug 3, 2016

You should add depot_tools to your PATH and ninja command will be work:
$ export PATH=pwd/depot_tools:"$PATH"

@utkarshs07
Copy link
Author

Well thank you guys for the info. After spending hours I've successfully built static library.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants