webrtcbuilds with RTTI

49 views
Skip to first unread message

Sreerekha Shenoy

unread,
Feb 2, 2018, 10:03:36 AM2/2/18
to webrtcbuilds
Hi,
Has anyone compiled webrtcbuilds with "EnableRTTI" option?
I have an older version of this git repo (dated September 2017) and if I execute 
"./build.sh -e -r 6bf70d20daa9fb4f8baf9801ef953e6f4db18484" 
I get the following error:

ERROR at //third_party/icu/BUILD.gn:542:5: Item not found
    "//build/config/compiler:no_rtti",  # ICU uses RTTI.
    ^--------------------------------
You were trying to remove "//build/config/compiler:no_rtti"
from the list but it wasn't there.
See //third_party/harfbuzz-ng/BUILD.gn:185:7: which caused the file to be included.
      "//third_party/icu:icuuc",
      ^------------------------

Is this a known issue? If yes, how do I resolve it?

Thank you,
Rekha

Sreerekha Shenoy

unread,
Feb 2, 2018, 3:31:51 PM2/2/18
to webrtcbuilds
Figured that if I modify "util.sh" script in the repo. 
The "compile" function to include "use_rtti=true" in the "local_common_args", I am able to build the webrtc library with RTTI enabled.
(I did not use the -e option with build.sh to rebuild the library with modified util.sh)

This helped me link the webrtc library with my application code thats compiled with "-frtti"
May be the build.sh should use the "-e" option to add "use_rtti" for the "gn" command.

Thank you,
Rekha
Reply all
Reply to author
Forward
0 new messages