Skip to content

Commit 7f5d9d4

Browse files
Update document for iwasm/wamrc dependent packages (#2183)
1 parent 89be562 commit 7f5d9d4

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

product-mini/README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ Note that all ESP-IDF toolchain files live under `$IDF_PATH/tools/cmake/`.
1818
## Linux
1919

2020
First of all please install the dependent packages.
21-
Run command below in Ubuntu-18.04:
22-
21+
Run command below in Ubuntu-22.04:
22+
``` Bash
23+
sudo apt install build-essential cmake g++-multilib libgcc-11-dev lib32gcc-11-dev ccache
24+
```
25+
Or in Ubuntu-20.04
2326
``` Bash
24-
sudo apt install build-essential cmake g++-multilib libgcc-8-dev lib32gcc-8-dev
27+
sudo apt install build-essential cmake g++-multilib libgcc-9-dev lib32gcc-9-dev ccache
2528
```
26-
Or in Ubuntu-16.04:
29+
Or in Ubuntu-18.04:
2730
``` Bash
28-
sudo apt install build-essential cmake g++-multilib libgcc-5-dev lib32gcc-5-dev
31+
sudo apt install build-essential cmake g++-multilib libgcc-8-dev lib32gcc-8-dev ccache
2932
```
3033
Or in Fedora:
3134
``` Bash

wamr-compiler/README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11

22
### Build wamrc AOT compiler
33

4-
Both wasm binary file and AOT file are supported by iwasm. The wamrc AOT compiler is to compile wasm binary file to AOT file which can also be run by iwasm. Execute following commands to build **wamrc** compiler for Linux:
4+
Both wasm binary file and AOT file are supported by iwasm. The wamrc AOT compiler is to compile wasm binary file to AOT file which can also be run by iwasm. You can execute following commands to build **wamrc** compiler:
5+
6+
For **Linux**(Ubuntu 20.04 as an example):
7+
8+
First, make sure necessary dependency are installed:
9+
10+
```shell
11+
sudo apt-get install git build-essential cmake g++-multilib libgcc-9-dev lib32gcc-9-dev ccache
12+
```
513

614
```shell
715
cd wamr-compiler
@@ -13,11 +21,12 @@ make
1321
```
1422

1523
For **Windows**
24+
1625
```shell
1726
cd wamr-compiler
1827
python build_llvm.py
1928
mkdir build && cd build
2029
cmake ..
2130
cmake --build . --config Release
2231
# wamrc.exe is generated under .\Release directory
23-
```
32+
```

0 commit comments

Comments
 (0)