webrtc C++ source code browsing on mac

141 views
Skip to first unread message

test9111

unread,
May 25, 2016, 9:47:29 AM5/25/16
to discuss-webrtc

i am new to Mac and webrtc source. I am looking for a quick way to be able to browse source (like on grok) inside an editor.  what is the recommended editor or source browsing tool which is easy learn and use on mac.

Alexandre GOUAILLARD

unread,
May 25, 2016, 11:02:26 AM5/25/16
to discuss...@googlegroups.com
it s difficult to avoid using Xcode on mac.

On Wed, May 25, 2016 at 9:47 PM, test9111 <h3d...@gmail.com> wrote:

i am new to Mac and webrtc source. I am looking for a quick way to be able to browse source (like on grok) inside an editor.  what is the recommended editor or source browsing tool which is easy learn and use on mac.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/1b2a7d34-4e4d-4b08-8467-cdb58d0b0e2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
Principal Architect - Citrix, San Francisco
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

h3dnvb

unread,
May 25, 2016, 11:39:52 AM5/25/16
to discuss...@googlegroups.com

Is it possible to import and index existing webrtc project source into xcode and use it for easy code browsing?

You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/HoxSgI8KLck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAHgZEq6V9bdKbNMu8Ci8bOMSY5g2Oox2anOZvOqVj79Xs9N52g%40mail.gmail.com.

test9111

unread,
May 25, 2016, 5:41:25 PM5/25/16
to discuss-webrtc
i was able to do this easily in eclipse (created a C++ project and added entire webrtc native source). eclipse took a long time to index (2 to 3 hours) but it did the job i wanted -- hari


On Wednesday, May 25, 2016 at 8:39:52 AM UTC-7, test9111 wrote:

Is it possible to import and index existing webrtc project source into xcode and use it for easy code browsing?

On May 25, 2016 8:02 AM, "Alexandre GOUAILLARD" <agoua...@gmail.com> wrote:
it s difficult to avoid using Xcode on mac.
On Wed, May 25, 2016 at 9:47 PM, test9111 <h3d...@gmail.com> wrote:

i am new to Mac and webrtc source. I am looking for a quick way to be able to browse source (like on grok) inside an editor.  what is the recommended editor or source browsing tool which is easy learn and use on mac.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.



--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
Principal Architect - Citrix, San Francisco
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/HoxSgI8KLck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrtc+unsubscribe@googlegroups.com.

Alexandre GOUAILLARD

unread,
May 25, 2016, 6:46:56 PM5/25/16
to discuss...@googlegroups.com
you can use a xcode-ninja generator for webrtc compilation on mac. Pure Xcode is not supported though.

On Thu, May 26, 2016 at 5:41 AM, test9111 <h3d...@gmail.com> wrote:
i was able to do this easily in eclipse (created a C++ project and added entire webrtc native source). eclipse took a long time to index (2 to 3 hours) but it did the job i wanted -- hari


On Wednesday, May 25, 2016 at 8:39:52 AM UTC-7, test9111 wrote:

Is it possible to import and index existing webrtc project source into xcode and use it for easy code browsing?

On May 25, 2016 8:02 AM, "Alexandre GOUAILLARD" <agoua...@gmail.com> wrote:
it s difficult to avoid using Xcode on mac.
On Wed, May 25, 2016 at 9:47 PM, test9111 <h3d...@gmail.com> wrote:

i am new to Mac and webrtc source. I am looking for a quick way to be able to browse source (like on grok) inside an editor.  what is the recommended editor or source browsing tool which is easy learn and use on mac.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.



--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
Principal Architect - Citrix, San Francisco
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/HoxSgI8KLck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/a1d1ac61-1f73-416b-a117-bd0444cd7694%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Alexandre GOUAILLARD

unread,
May 26, 2016, 1:04:10 AM5/26/16
to h3dnvb, discuss...@googlegroups.com
congratulation, you found a bug.

you can fill it there:



On Thu, May 26, 2016 at 12:25 PM, h3dnvb <h3d...@gmail.com> wrote:
thanks.. but it is running into issues while checking for use_openssl ..looks like i need to learn a bit on gyp

hdesinen:src hdesinen$ export GYP_GENERATORS=ninja,xcode-ninja
hdesinen:src hdesinen$ pwd
/Users/hdesinen/webrtc-checkout/src
hdesinen:src hdesinen$ python webrtc/build/gyp_webrtc.py
Updating projects from gyp files...
gyp: Undefined variable use_openssl in webrtc/webrtc.gyp
hdesinen:src hdesinen$ 

On Wed, May 25, 2016 at 9:11 PM, Alexandre GOUAILLARD <agoua...@gmail.com> wrote:
see
https://webrtc.org/native-code/development/


"

Using Another Build System

Other build systems are not fully supported (and may fail), such as Visual Studio on Win or Xcode on OSX. GYP supports a hybrid approach of using ninja for building, but VS/Xcode for editing and driving compilation. Set the GYP_GENERATORS environment variable to the string:

[...]

  • ninja,xcode-ninja for Xcode

"


On Thu, May 26, 2016 at 11:53 AM, h3dnvb <h3d...@gmail.com> wrote:
ability to debug webrtc inside xcode on mac will be great. (it looks like some folks debug webrtc inside visual studio). are there instructions on how to setup xode to debug webrtc. is xcode-ninja a version of xcode? (sorry , i am new to mac world)

hari


For more options, visit https://groups.google.com/d/optout.



--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
Principal Architect - Citrix, San Francisco
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

Christoffer Jansson

unread,
May 26, 2016, 3:04:00 AM5/26/16
to discuss...@googlegroups.com
On Wed, May 25, 2016 at 5:39 PM h3dnvb <h3d...@gmail.com> wrote:

Is it possible to import and index existing webrtc project source into xcode and use it for easy code browsing?


For more options, visit https://groups.google.com/d/optout.
--
/Chris

test9111

unread,
May 27, 2016, 4:38:22 PM5/27/16
to discuss-webrtc
i am able to generate xcode files (using instructions on https://webrtc.org/native-code/development/) and browse code. is it possible to debug the source from xcode while running existing unit tests (from out/Debug ) running locally on Mac ?

test9111

unread,
May 27, 2016, 5:22:22 PM5/27/16
to discuss-webrtc

the instructions for ios/mac resulted in gyp_chromium module not found error -

i tried for mac with the following gyp defines

export GYP_DEFINES="OS=mac target_arch=x64"
export GYP_GENERATOR_FLAGS="output_dir=out_mac"

webrtc/build/gyp_webrtc.py 
Traceback (most recent call last):
  File "webrtc/build/gyp_webrtc.py", line 24, in <module>
    import gyp_chromium
ImportError: No module named gyp_chromium

test9111

unread,
May 28, 2016, 12:36:58 AM5/28/16
to discuss-webrtc
with a fresh sync (gclient sync --force), i was able get the gyp-chromium module error fixed. I am able to finish all steps and run unit tests locally on mac (from src/out_mac/Debug folder), able to browse source in xcode. is there a way to put breakpoints in xcode while unit test is running? this will help understand the flow easier.

thanks,
Hari

test9111

unread,
May 28, 2016, 12:44:18 AM5/28/16
to discuss-webrtc

instructions at https://webrtc.org/native-code/ios/#compiling-with-xcode  make me think that i can put breakpoints in xcode when it is connected to real device (iPhone) but not when unit tests are running on local Mac  
Reply all
Reply to author
Forward
0 new messages