From 9cf19f13e22bac6a30049a14ba0490e85d861f09 Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 11:33:59 +0300 Subject: [PATCH 1/9] LICENSE-old --- LICENSE => LICENSE-old | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENSE => LICENSE-old (100%) diff --git a/LICENSE b/LICENSE-old similarity index 100% rename from LICENSE rename to LICENSE-old From 0c50e80f1fbbc5d9179497c9081dec742916959c Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 11:36:38 +0300 Subject: [PATCH 2/9] LICENSE --- LICENSE-old => LICENSE | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENSE-old => LICENSE (100%) diff --git a/LICENSE-old b/LICENSE similarity index 100% rename from LICENSE-old rename to LICENSE From 75b9387e950d4241d90d31328a036b1c7dc575e7 Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 11:43:23 +0300 Subject: [PATCH 3/9] bash script added for easy g++ usage --- g++ftxui | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 g++ftxui diff --git a/g++ftxui b/g++ftxui new file mode 100644 index 00000000..2e8930da --- /dev/null +++ b/g++ftxui @@ -0,0 +1,8 @@ +#!/bin/bash + +/usr/bin/g++ \ + -I/home/ece/FTXUI/include \ + -L/home/ece/FTXUI/build \ + "$@" \ + -lftxui-component -lftxui-dom -lftxui-screen + From 964b29cdfa05542476c8dca7a7d31511327241d5 Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 11:46:58 +0300 Subject: [PATCH 4/9] Update README.md g++ftxui bash script description added --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e3496417..48b0e683 100644 --- a/README.md +++ b/README.md @@ -435,9 +435,9 @@ 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) -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: ```bash -g++ . . . -lftxui-component -lftxui-dom -lftxui-screen . . . +g++ftxui -o out source_code.cpp ``` To build FTXUI with modules, check [documentation](https://arthursonzogni.github.io/FTXUI/cpp20-modules.html) From a6165b9d5551988c17db83ca887d297408beda23 Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 11:48:06 +0300 Subject: [PATCH 5/9] install script added --- install | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 install diff --git a/install b/install new file mode 100644 index 00000000..6916d51f --- /dev/null +++ b/install @@ -0,0 +1,3 @@ +#!/bin/bash + +cp g++ftxui /usr/local/bin/ && chmod +x /usr/local/bin/g++ftxui From 5b96a96ea15b69ee379c2004862f3e834b3de3ab Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 11:52:28 +0300 Subject: [PATCH 6/9] Update README.md install script explained --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 48b0e683..d5f09215 100644 --- a/README.md +++ b/README.md @@ -436,6 +436,11 @@ If you don't, FTXUI may be used from the following packages: If you choose to build with g++, you can use bash script: +1. Run the installer: +```bash +chmod +x install && ./install +``` +2. Compile your codes: ```bash g++ftxui -o out source_code.cpp ``` From cb199eeb41eb0fd3cd53b53bb6d8eaee28efad27 Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 12:01:51 +0300 Subject: [PATCH 7/9] fixed g++ftxui --- g++ftxui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g++ftxui b/g++ftxui index 2e8930da..6b5ee5c3 100644 --- a/g++ftxui +++ b/g++ftxui @@ -1,8 +1,8 @@ #!/bin/bash /usr/bin/g++ \ - -I/home/ece/FTXUI/include \ - -L/home/ece/FTXUI/build \ + -I~//FTXUI/include \ + -L~/home/ece/FTXUI/build \ "$@" \ -lftxui-component -lftxui-dom -lftxui-screen From 608972ea1713b3830caa4d8cdf7feb08ebfcf689 Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 12:02:25 +0300 Subject: [PATCH 8/9] fixed g++ftxui --- g++ftxui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g++ftxui b/g++ftxui index 6b5ee5c3..815a7eb5 100644 --- a/g++ftxui +++ b/g++ftxui @@ -1,8 +1,8 @@ #!/bin/bash /usr/bin/g++ \ - -I~//FTXUI/include \ - -L~/home/ece/FTXUI/build \ + -I~/FTXUI/include \ + -L~/FTXUI/build \ "$@" \ -lftxui-component -lftxui-dom -lftxui-screen From 26083d492ccf54f8ff48d71d566fe23b5c8a28e4 Mon Sep 17 00:00:00 2001 From: PiGames Date: Tue, 10 Jun 2025 12:13:34 +0300 Subject: [PATCH 9/9] Update install --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 6916d51f..6b0481c9 100644 --- a/install +++ b/install @@ -1,3 +1,3 @@ #!/bin/bash -cp g++ftxui /usr/local/bin/ && chmod +x /usr/local/bin/g++ftxui +sudo cp g++ftxui /usr/local/bin/ && sudo chmod +x /usr/local/bin/g++ftxui