Skip to content

Commit f0340ce

Browse files
committed
3.1.0
1. Update the installation scripts. 2. Update the readme file.
1 parent db30d6e commit f0340ce

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

Diff for: README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,13 @@ The following instructions are used for building the project on Windows with Vis
6969

7070
This script requires users to install `urllib3`. The `tqdm` is also recommended to be installed.
7171

72-
4. Building `mpegCoder` requires `GLIBC>=2.29`. This requirement is not satisfied in some cases. However, if you have built FFMpeg by our script, the requirement would be fulfilled (i.e. you could skip this step). If users are using our pre-built dependencies, users may need to solve this problem by
73-
74-
```shell
75-
cd FFmpeg-Encoder-Decoder-for-Python
76-
ln -sf ./dependencies/lib-fix/libm-2.31.so /lib/x86_64-linux-gnu/libm.so.6
77-
```
78-
79-
5. Build `mpegCoder` by running the following script. The built file would be stored in `./build`. If you has not fetched the dependencies in the step 2, running the `setup.py` may trigger an event for fetching the online dependencies.
72+
4. Build `mpegCoder` by running the following script. The built file would be stored in `./build`. If you has not fetched the dependencies in the step 2, running the `setup.py` may trigger an event for fetching the online dependencies.
8073

8174
```shell
8275
python setup.py build
8376
```
8477

85-
6. Rename the built module as `mpegCoder.so`, then you could import it in the same directory. If you have built FFMpeg by our script, you do not need any other dependencies when importing the libs. However, if not, you may need to download [the lib dependencies :package:](https://github.com/cainmagi/FFmpeg-Encoder-Decoder-for-Python/releases/download/deps-3.0.0/so-linux-ffmpeg_4_4.tar.xz) and add the `lib` folder to your `LD_LIBRARY_PATH`:
78+
5. Rename the built module as `mpegCoder.so`, then you could import it in the same directory. If you have built FFMpeg by our script, you do not need any other dependencies when importing the libs. However, if not, you may need to download [the lib dependencies :package:](https://github.com/cainmagi/FFmpeg-Encoder-Decoder-for-Python/releases/download/deps-3.0.0/so-linux-ffmpeg_4_4.tar.xz) and add the `lib` folder to your `LD_LIBRARY_PATH`:
8679

8780
```shell
8881
mkdir -p /apps/ffmpeg-4.4
@@ -92,7 +85,7 @@ The following instructions are used for building the project on Windows with Vis
9285
export LD_LIBRARY_PATH=/apps/ffmpeg-4.4/lib:$LD_LIBRARY_PATH
9386
```
9487

95-
If you want to run the `mpegCoder` with a different environment (which means you have compiled `mpegCoder` in another environment), you still need to setup the dependencies by this step. Running FFMpeg still requries `GLIBC>=2.29`, so you may need to add the dependency by
88+
6. Running `mpegCoder` requires `GLIBC>=2.29`. This requirement is not satisfied in some cases. However, if you have built FFMpeg by our script, the requirement would be fulfilled (i.e. you could skip this step). If users are using our pre-built dependencies, users may need to solve this problem by
9689

9790
```shell
9891
ln -sf /apps/ffmpeg-4.4/lib-fix/libm-2.31.so /lib/x86_64-linux-gnu/libm.so.6

Diff for: apt-requirements.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ function mcd {
2626

2727
msg "Install gcc and g++."
2828
apt-get update -qq || fail
29-
apt-get -y install gcc g++ || fail
29+
apt-get -y install gcc g++ wget tar xz-utils || fail

0 commit comments

Comments
 (0)