Skip to content

Commit

Permalink
ubuntu-18.04_x86_64 のビルドを削除する
Browse files Browse the repository at this point in the history
  • Loading branch information
miosakuma committed Sep 7, 2022
1 parent e6fb2f8 commit dde91d4
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 181 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ jobs:
- raspberry-pi-os_armv8
- ubuntu-18.04_armv8_jetson_nano
- ubuntu-18.04_armv8_jetson_xavier
- ubuntu-18.04_x86_64
- ubuntu-20.04_x86_64
name: Build momo for ${{ matrix.name }}
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -208,7 +207,6 @@ jobs:
- raspberry-pi-os_armv8
- ubuntu-18.04_armv8_jetson_nano
- ubuntu-18.04_armv8_jetson_xavier
- ubuntu-18.04_x86_64
- ubuntu-20.04_x86_64
steps:
- uses: actions/download-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/daily_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
- raspberry-pi-os_armv8
- ubuntu-18.04_armv8_jetson_nano
- ubuntu-18.04_armv8_jetson_xavier
- ubuntu-18.04_x86_64
- ubuntu-20.04_x86_64
name: Build momo for ${{ matrix.name }}
runs-on: ubuntu-18.04
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

## develop

- [CHANGE] `ubuntu-18.04_x86_64` のビルドを削除
- @miosakuma
- [UPDATE] `libwebrtc``M105.5195@{#0}` に上げる
- @miosakuma

## 2022.3.0

- [CHANGE] `--multistream` のデフォルトを true にする
Expand Down
22 changes: 0 additions & 22 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,28 +169,6 @@ elseif(MOMO_PACKAGE_NAME STREQUAL "ubuntu-18.04_armv8_jetson_xavier")
set(USE_LIBCXX ON)
set(LIBCXX_INCLUDE_DIR /root/llvm/libcxx/include)

elseif(MOMO_PACKAGE_NAME STREQUAL "ubuntu-18.04_x86_64")

set(TARGET_OS "linux")
set(TARGET_OS_LINUX "ubuntu-18.04")
set(TARGET_ARCH "x86_64")
set(USE_H264 ON)
set(USE_SDL2 ON)
set(USE_NVCODEC_ENCODER ON)
set(USE_SCREEN_CAPTURER ON)
set(BOOST_ROOT_DIR /root/boost)
set(CLI11_ROOT_DIR /root/CLI11)
set(SDL2_ROOT_DIR /root/SDL2)
set(WEBRTC_INCLUDE_DIR /root/webrtc/include)
set(WEBRTC_LIBRARY_DIR /root/webrtc/lib)

# /root/llvm/clang にあるコンパイラは使わず、apt でインストールした clang-10 を利用する
set(CMAKE_C_COMPILER clang-10)
set(CMAKE_CXX_COMPILER clang++-10)

set(USE_LIBCXX ON)
set(LIBCXX_INCLUDE_DIR /root/llvm/libcxx/include)

elseif(MOMO_PACKAGE_NAME STREQUAL "ubuntu-20.04_x86_64")

set(TARGET_OS "linux")
Expand Down
1 change: 0 additions & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ _PACKAGES=" \
raspberry-pi-os_armv8 \
ubuntu-18.04_armv8_jetson_nano \
ubuntu-18.04_armv8_jetson_xavier \
ubuntu-18.04_x86_64 \
ubuntu-20.04_x86_64 \
"

Expand Down
138 changes: 0 additions & 138 deletions build/ubuntu-18.04_x86_64/Dockerfile

This file was deleted.

10 changes: 0 additions & 10 deletions doc/BUILD_LINUX.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,3 @@ $ ./build.sh ubuntu-18.04_armv8_jetson_xavier
```

うまくいかない場合は `./build.sh --clean ubuntu-18.04_armv8_jetson_xavier && ./build.sh ubuntu-18.04_armv8_jetson_xavier` を試してみてください。

## Ubuntu 18.04 (x86_64) 向けバイナリを作成する

build ディレクトリ以下で ./build.sh ubuntu-18.04_x86_64 と打つことで Momo の Ubuntu 18.04 x86_64 向けバイナリが生成されます。

```shell
$ ./build.sh ubuntu-18.04_x86_64
```

うまくいかない場合は `./build.sh --clean ubuntu-18.04_x86_64 && ./build.sh ubuntu-18.04_x86_64` を試してみてください。
12 changes: 6 additions & 6 deletions doc/BUILD_LINUX_LOCAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Docker を使って簡単にビルドする方法については [Linux 版 Momo
WebRTC 本体をカスタマイズ(パッチを当てたりなど)をしない場合、[shiguredo-webrtc-build/webrtc-build](https://github.com/shiguredo-webrtc-build/webrtc-build) にある事前にビルドされた WebRTC を利用できるので、環境構築にそこまで時間が掛かりません

この場合は Dockerfile でやっていた内容をローカルに構築するだけになります。
例えば Ubuntu 18.04 で x86_64 向けのビルドを行う場合は [build/ubuntu-18.04_x86_64/Dockerfile](/build/ubuntu-18.04_x86_64/Dockerfile) を参照して構築スクリプトを記述していきます。
例えば Ubuntu 20.04 で x86_64 向けのビルドを行う場合は [build/ubuntu-20.04_x86_64/Dockerfile](/build/ubuntu-20.04_x86_64/Dockerfile) を参照して構築スクリプトを記述していきます。

また、CMake での構築は `MOMO_PACKAGE_NAME` が利用できないので、それぞれの設定を自分の手で設定する必要があります。

以下は参考用の構築スクリプトになります。

このスクリプトは Ubuntu 18.04 で x86_64 向けの Momo バイナリを生成します。
このスクリプトは Ubuntu 20.04 で x86_64 向けの Momo バイナリを生成します。

`build/local/install_deps_local.sh`:

Expand Down Expand Up @@ -62,7 +62,7 @@ fi
# WebRTC
if [ ! -e $INSTALL_DIR/webrtc/lib/libwebrtc.a ]; then
rm -rf $INSTALL_DIR/webrtc
../../script/get_webrtc.sh $WEBRTC_BUILD_VERSION ubuntu-18.04_x86_64 $INSTALL_DIR $SOURCE_DIR
../../script/get_webrtc.sh $WEBRTC_BUILD_VERSION ubuntu-20.04_x86_64 $INSTALL_DIR $SOURCE_DIR
fi

# LLVM
Expand Down Expand Up @@ -155,7 +155,7 @@ pushd ../_build/local
-DWEBRTC_READABLE_VERSION="$WEBRTC_READABLE_VERSION" \
-DWEBRTC_COMMIT="$WEBRTC_COMMIT" \
-DTARGET_OS="linux" \
-DTARGET_OS_LINUX="ubuntu-18.04" \
-DTARGET_OS_LINUX="ubuntu-20.04" \
-DTARGET_ARCH="x86_64" \
-DUSE_SDL2=ON \
-DBOOST_ROOT_DIR=$INSTALL_DIR/boost \
Expand Down Expand Up @@ -190,7 +190,7 @@ WebRTC をカスタマイズする場合、自前で WebRTC をビルドし、
- shiguredo/momo の [build ディレクトリ](/build) 以下にある Dockerfile
- WebRTC をカスタマイズしない場合の参考用スクリプト

参考用に、Ubuntu 18.04 の x86_64 環境で WebRTC をローカルでビルドして Momo をビルドするスクリプトを以下に載せています。
参考用に、Ubuntu 20.04 の x86_64 環境で WebRTC をローカルでビルドして Momo をビルドするスクリプトを以下に載せています。
ビルド環境やターゲットに合わせて変更してみて下さい。

`build/local_webrtc/install_deps_local_webrtc.sh`:
Expand Down Expand Up @@ -370,7 +370,7 @@ pushd ../_build/local_webrtc
-DWEBRTC_READABLE_VERSION="$WEBRTC_READABLE_VERSION" \
-DWEBRTC_COMMIT="$WEBRTC_COMMIT" \
-DTARGET_OS="linux" \
-DTARGET_OS_LINUX="ubuntu-18.04" \
-DTARGET_OS_LINUX="ubuntu-20.04" \
-DTARGET_ARCH="x86_64" \
-DUSE_SDL2=ON \
-DBOOST_ROOT_DIR=$INSTALL_DIR/boost \
Expand Down
1 change: 0 additions & 1 deletion doc/PACKAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Windows の場合は以下のコマンドになります。
- raspberry-pi-os_armv8
- ubuntu-18.04_armv8_jetson_nano
- ubuntu-18.04_armv8_jetson_xavier
- ubuntu-18.04_x86_64
- ubuntu-20.04_x86_64

## パッケージ解凍後の構成
Expand Down

0 comments on commit dde91d4

Please sign in to comment.