Updated Building for Linux (markdown)
parent
04665e437c
commit
07a37561b9
1 changed files with 8 additions and 4 deletions
|
@ -49,7 +49,8 @@ The `--recursive` option automatically clones the required Git submodules too.
|
||||||
**Using gcc:**
|
**Using gcc:**
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir build && cd build
|
mkdir build
|
||||||
|
cd build
|
||||||
cmake ../
|
cmake ../
|
||||||
make
|
make
|
||||||
sudo make install (optional)
|
sudo make install (optional)
|
||||||
|
@ -63,7 +64,8 @@ Optionally, you can use "cmake -i .." to adjust various options (e.g. disable th
|
||||||
Note: It is important you use libc++, otherwise your build will likely fail:
|
Note: It is important you use libc++, otherwise your build will likely fail:
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir build && cd build
|
mkdir build
|
||||||
|
cd build
|
||||||
cmake -DCMAKE_CXX_COMPILER=clang++-5.0 \
|
cmake -DCMAKE_CXX_COMPILER=clang++-5.0 \
|
||||||
-DCMAKE_C_COMPILER=clang-5.0 \
|
-DCMAKE_C_COMPILER=clang-5.0 \
|
||||||
-DCMAKE_CXX_FLAGS="-O2 -g -stdlib=libc++" ..
|
-DCMAKE_CXX_FLAGS="-O2 -g -stdlib=libc++" ..
|
||||||
|
@ -74,7 +76,8 @@ sudo make install (optional)
|
||||||
### Building Citra in Release Mode (Optimized):
|
### Building Citra in Release Mode (Optimized):
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir build && cd build
|
mkdir build
|
||||||
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||||
make
|
make
|
||||||
sudo make install (optional)
|
sudo make install (optional)
|
||||||
|
@ -84,7 +87,8 @@ sudo make install (optional)
|
||||||
### Building with debug symbols:
|
### Building with debug symbols:
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir build && cd build
|
mkdir build
|
||||||
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
make
|
make
|
||||||
sudo make install (optional)
|
sudo make install (optional)
|
||||||
|
|
Loading…
Reference in a new issue