맥에서는 빌드가 잘안된다.

환경변수 등록 안해도 fetch가 안먹힌다.

하지만  [git 에서 CRLF 개행 문자 차이로 인한 문제 해결하기]

$ git config --global core.autocrlf false

이것으로 해결.

하지만..진행 중에 아래의 명령에서 또 난관...

$ ./build/install-build-deps.sh

 

ERROR: lsb_release not found in $PATH

try: sudo apt-get install lsb-release

 

찾아보니 lsb_release 명령어는 리눅스에있단다..

음.. 포기하고 리눅스로 우선 해보자

 

 

리눅스 빌드하신분 링크를 참고로 한다.

https://msm8994.tistory.com/47

 

[Ubuntu] WebRTC 안드로이드용 라이브러리 컴파일

WebRTC는 영상 통화에 쓰이는 로열티프리 공개 웹 기술입니다. 구글, 모질라, 오페라 등이 지원하는 프로젝트인데 크롬, 파이어폭스, 오페라, 안드로이드, iOS용 코드가 제공됩니다. 오늘은 WebRTC

msm8994.tistory.com

 순조롭게 잘되었으나 마지막 닌자 빌드에서 소스코드가 버전이랑 머가 안맞는지 fail~~~

버전 잘 맞춰보면 될듯하다.

 

 

 

[wsl 으로 빌드 해본다]

sudo apt update

apt install curl vim git wget pkg-config unzip openjdk-8-jdk python python3 -y

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
vim ~/.bashrc

 

환경변수 추가

export PATH=$PATH:/프롬프트가/있던/폴더의/depot_tools

 

mkdir source 

cd source

 

fetch --nohooks webrtc_android

cd src

git checkout -b m94 refs/remotes/branch-heads/4606

gclient sync

./build/install-build-deps.sh

 

쭉쭉되다가 에러나는경우가 있음

Release file for http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease is not valid yet (invalid for another 3min 39s). Updates for this repository will not be applied.

날짜 시간이 잘못된오류란다.

이 명령은 잘못된 날짜 및 시간을 보고합니다. 나는 다음을 사용했다.date

sudo apt install ntp 
sudo service ntp restart 
sudo apt update

해결~

다시스트립트실행

./build/install-build-deps.sh

환경 구성

source ./build/android/envsetup.sh

 

gn gen out/arm --args='target_os="android" target_cpu="arm"'

ninja -C out/arm

 

out폴더에 결과물이 나옴.

 

aar로 빌드 . gn gen out/arm --args='target_os="android" target_cpu="arm"' 대신에

tools_webrtc/android/build_aar.py --build-dir ./out/ --arch armeabi-v7a arm64-v8a --extra-gn-args 'is_java_debug=false is_debug=false is_clang=true rtc_include_tests=false rtc_use_h264=true is_component_build=false use_rtti=true use_custom_libcxx=false treat_warnings_as_errors=false rtc_enable_protobuf=false'

 

파일확인

out/arm64-v8a/obj/libwebrtc.a 

{package}/libwebrc.a

+ Recent posts