10 Commits

Author SHA1 Message Date
PiGames
ecf8fe8eac Merge 26083d492c into 6440a88dc6 2025-06-10 09:20:28 +00:00
PiGames
26083d492c Update install 2025-06-10 12:13:34 +03:00
PiGames
608972ea17 fixed g++ftxui 2025-06-10 12:02:25 +03:00
PiGames
cb199eeb41 fixed g++ftxui 2025-06-10 12:01:51 +03:00
PiGames
5b96a96ea1 Update README.md
install script explained
2025-06-10 11:52:28 +03:00
PiGames
a6165b9d55 install script added 2025-06-10 11:48:06 +03:00
PiGames
964b29cdfa Update README.md
g++ftxui bash script description added
2025-06-10 11:46:58 +03:00
PiGames
75b9387e95 bash script added for easy g++ usage 2025-06-10 11:43:23 +03:00
PiGames
0c50e80f1f LICENSE 2025-06-10 11:36:38 +03:00
PiGames
9cf19f13e2 LICENSE-old 2025-06-10 11:33:59 +03:00
3 changed files with 18 additions and 2 deletions

View File

@@ -435,9 +435,14 @@ If you don't, FTXUI may be used from the following packages:
[![Packaging status](https://repology.org/badge/vertical-allrepos/libftxui.svg)](https://repology.org/project/libftxui/versions) [![Packaging status](https://repology.org/badge/vertical-allrepos/libftxui.svg)](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 ```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) To build FTXUI with modules, check [documentation](https://arthursonzogni.github.io/FTXUI/cpp20-modules.html)

8
g++ftxui Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
/usr/bin/g++ \
-I~/FTXUI/include \
-L~/FTXUI/build \
"$@" \
-lftxui-component -lftxui-dom -lftxui-screen

3
install Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
sudo cp g++ftxui /usr/local/bin/ && sudo chmod +x /usr/local/bin/g++ftxui