2026 cleanup pass, modernized for Linux, MacOS..win half done
This commit is contained in:
parent
731f404687
commit
c8d22319e7
104
README.md
104
README.md
@ -16,65 +16,73 @@ It is a modern C++ library that provides a functional approach to building termi
|
|||||||
|
|
||||||
```
|
```
|
||||||
workdir/
|
workdir/
|
||||||
├── FXTUI/
|
├── FTXUI/
|
||||||
├── poomer-fxtui-modal_select/
|
├── poomer-fxtui-modal_select/
|
||||||
|
└── cmake/ (macos)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Ubuntu Linux x64
|
||||||
|
```
|
||||||
|
mkdir workdir && cd workdir
|
||||||
|
mkdir FTXUI poomer-ftxui-modal_select && cd FTXUI
|
||||||
|
git clone https://github.com/ArthurSonzogni/FTXUI .
|
||||||
|
cmake -B ./build
|
||||||
|
cmake --build ./build -j$(nproc)
|
||||||
|
[OPTIONAL] cmake -B ./build -DFTXUI_BUILD_EXAMPLES=ON
|
||||||
|
cd ../poomer-ftxui-modal_select
|
||||||
|
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
||||||
|
g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../FTXUI/include/ -L../FTXUI/build -lftxui-component -lftxui-dom -lftxui-screen -I.
|
||||||
|
./poomer-ftxui-modal_select
|
||||||
```
|
```
|
||||||
|
|
||||||
## MacOS
|
## MacOS
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir workdir
|
# Install xcode
|
||||||
cd workdir
|
xcode-select --install
|
||||||
git clone https://github.com/ArthurSonzogni/FTXUI
|
|
||||||
cd FXTUI
|
mkdir workdir && cd workdir
|
||||||
mkdir build
|
mkdir cmake FTXUI poomer-ftxui-modal_select && cd FTXUI
|
||||||
cd build
|
|
||||||
/Applications/CMake.app/Contents/bin/cmake -DFTXUI_BUILD_EXAMPLES=ON ..
|
# Build cmake
|
||||||
make
|
cd cmake
|
||||||
cd ../..
|
git clone https://github.com/Kitware/CMake.git .
|
||||||
git clone https://github.com/oomer/poomer-fxtui-modal_select.git
|
./configure
|
||||||
cd poomer-fxtui-modal_select
|
make -j$(sysctl -n hw.ncpu)
|
||||||
|
|
||||||
|
# Build ftxui
|
||||||
|
cd ../FTXUI
|
||||||
|
git clone https://github.com/ArthurSonzogni/FTXUI .
|
||||||
|
../cmake/bin/cmake -B ./build
|
||||||
|
../cmake/bin/cmake --build ./build -j$(sysctl -n hw.ncpu)
|
||||||
|
cd ../poomer-ftxui-modal_select
|
||||||
|
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
||||||
g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../FTXUI/include/ -L../FTXUI/build -lftxui-component -lftxui-dom -lftxui-screen -I.
|
g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../FTXUI/include/ -L../FTXUI/build -lftxui-component -lftxui-dom -lftxui-screen -I.
|
||||||
|
./poomer-ftxui-modal_select
|
||||||
```
|
```
|
||||||
|
|
||||||
## Linux
|
|
||||||
|
|
||||||
```
|
## Windows x64
|
||||||
mkdir workdir
|
- Download Visual Studio Community Edition
|
||||||
cd workdir
|
- Run VisualStudioSetup.exe
|
||||||
git clone https://github.com/ArthurSonzogni/FTXUI
|
- Workload = [x] Desktop development with C++
|
||||||
cd FXTUI
|
- Individual components = [x] Git For Windows
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ..
|
|
||||||
[OPTIONAL] cmake -DFTXUI_BUILD_EXAMPLES=ON ..
|
|
||||||
make
|
|
||||||
cd ../..
|
|
||||||
git clone https://github.com/oomer/poomer-fxtui-modal_select.git
|
|
||||||
cd poomer-fxtui-modal_select
|
|
||||||
g++ poomer-ftxui-modal_select.cpp -o poomer-ftxui-modal_select -std=c++17 -I../FTXUI/include/ -L../FTXUI/build -lftxui-component -lftxui-dom -lftxui-screen -I.
|
|
||||||
```
|
|
||||||
|
|
||||||
## Windows
|
#### x64 Native Tools for VS
|
||||||
- Install Visual Studio Community 2022
|
```
|
||||||
- Add Desktop development with C++ workload
|
mkdir workdir && cd workdir
|
||||||
- Launch x64 Native tools Command Prompt for VS2022
|
mkdir FTXUI poomer-ftxui-modal_select && cd FTXUI
|
||||||
|
|
||||||
|
# Build FTXUI
|
||||||
|
git clone https://github.com/ArthurSonzogni/FTXUI .
|
||||||
|
cmake -B ./build --config=release
|
||||||
|
[OPTIONAL] cmake -B ./build -DFTXUI_BUILD_EXAMPLES=ON
|
||||||
|
cmake --build ./build -j%NUMBER_OF_PROCESSORS%
|
||||||
|
|
||||||
|
# Build poomer-ftxui-modal-select
|
||||||
|
cd ../poomer-ftxui-modal_select
|
||||||
|
git clone https://git.indoodle.com/oomer/poomer-ftxui-modal_select.git .
|
||||||
|
cl /MD /std:c++17 poomer-ftxui-modal_select.cpp Fe:poomer-ftxui-modal_select.exe /I..\FTXUI\include\ /I. /link ..\FTXUI\build\Release\ftxui-component.lib ..\FTXUI\build\Release\ftxui-screen.lib ..\FTXUI\build\Release\ftxui-dom.lib
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir workdir
|
|
||||||
cd workdir
|
|
||||||
git clone https://github.com/ArthurSonzogni/FTXUI
|
|
||||||
cd FXTUI
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ..
|
|
||||||
[OPTIONAL] cmake -DFTXUI_BUILD_EXAMPLES=ON ..
|
|
||||||
cmake --build . --config Release
|
|
||||||
[OTHER] msbuild ftxui.sln /p:Configuration=release /p:Platform=x64 /p:PlatformToolset=v143
|
|
||||||
cd ../..
|
|
||||||
git clone https://github.com/oomer/poomer-fxtui-modal_select.git
|
|
||||||
cd poomer-fxtui-modal_select
|
|
||||||
cl /MD /std:c++17 poomer-ftxui-modal_select.cpp /Fe:poomer-ftxui-modal_select.exe /I..\FTXUI\include\ /I. /link ..\FTXUI\build\Release\ftxui-component.lib ..\FTXUI\build\Release\ftxui-screen.lib ..\FTXUI\build\Release\ftxui-dom.lib
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user