vsimon / webrtcbuilds

Getting started with WebRTC natively is no easy picnic. The goal of webrtcbuilds is to provide a single standalone WebRTC static library and package.
BSD 3-Clause "New" or "Revised" License
202 stars 164 forks source link

Failed building in GCP compute (Ubuntu 20.04) with RTTI enabled #102

Closed prantoran closed 3 years ago

prantoran commented 4 years ago

Hello, I tried building WebRTC in compute engine running Ubuntu 20.04 with the following command: .\build.sh -e. I needed RTTI enabled since another application configured with Bazel does not work with -no-rtti flag. Here is the error I got after the script started compiling WebRTC:

update-initramfs: Generating /boot/initrd.img-5.4.0-1021-gcp
Processing triggers for php7.4-cli (7.4.3-4ubuntu2.2) ...
Processing triggers for php7.4-cgi (7.4.3-4ubuntu2.2) ...
Processing triggers for libapache2-mod-php7.4 (7.4.3-4ubuntu2.2) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.40.0+dfsg-3) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Skipping installation of Chrome OS fonts.
Installing locales.
Generating locales (this might take a while)...
  da_DK.UTF-8... done
  en_US.UTF-8... done
  fr_FR.UTF-8... done
  he_IL.UTF-8... done
  zh_TW.UTF-8... done
Generation complete.
Patching WebRTC source
Compiling WebRTC
ERROR at //buildtools/third_party/libc++/BUILD.gn:109:5: Item not found
    "//build/config/compiler:no_rtti",
    ^--------------------------------
You were trying to remove "//build/config/compiler:no_rtti"
from the list but it wasn't there.
See //build/config/BUILD.gn:257:22: which caused the file to be included.
    public_deps += [ "//buildtools/third_party/libc++" ]
DualThrust commented 3 years ago

I found a solution from here. https://groups.google.com/g/webrtcbuilds/c/MvH04Ug5_nY add use_rtti=true in script util.sh, line 274. do not add -e in command

prantoran commented 3 years ago

Thank you :) I will try it