mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-06-24 08:01:13 +08:00
Merge 26083d492c
into 6440a88dc6
This commit is contained in:
commit
ecf8fe8eac
@ -435,9 +435,14 @@ If you don't, FTXUI may be used from the following packages:
|
||||
[](https://repology.org/project/libftxui/versions)
|
||||
|
||||
|
||||
If you choose to build and link FTXUI yourself, `ftxui-component` must be first in the linking order relative to the other FTXUI libraries, i.e.
|
||||
If you choose to build with g++, you can use bash script:
|
||||
1. Run the installer:
|
||||
```bash
|
||||
g++ . . . -lftxui-component -lftxui-dom -lftxui-screen . . .
|
||||
chmod +x install && ./install
|
||||
```
|
||||
2. Compile your codes:
|
||||
```bash
|
||||
g++ftxui -o out source_code.cpp
|
||||
```
|
||||
|
||||
To build FTXUI with modules, check [documentation](https://arthursonzogni.github.io/FTXUI/cpp20-modules.html)
|
||||
|
8
g++ftxui
Normal file
8
g++ftxui
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
/usr/bin/g++ \
|
||||
-I~/FTXUI/include \
|
||||
-L~/FTXUI/build \
|
||||
"$@" \
|
||||
-lftxui-component -lftxui-dom -lftxui-screen
|
||||
|
Loading…
Reference in New Issue
Block a user