Cloudforest is a demo text editor built with GTK4, a cross-platform UI toolkit. Written in C and C++.
GTK4 is a C library, but for convenience, we are using GTK4 C library in C++. GTK does have official C++ version library called gtkmm , and there are also other language bindings , but we use C version to reduce dependency problems.
Dependency
- PkgConfig for cmake to find GTK
- Cmake
- make, ninja or other tools (run cmake to see what you need)
- A C++ compiler (g++ or clang++ recommende. Visual studio compiler may not work)
- GTK4 Some Linux distro doesn't support dev library GTK4.10
- LSP Clangd Only clangd can find the build command (If you are pro who code without language server then ignore this)
What you need
- Linux/Windows/MacOS computer that you can download GTK4 4.10 or newer
- A code editor that works
- Github desktop (optional, there are unofficial Linux version on flathub )
Go to the CloudForest folder, and run cmake .
( 'cmake' and a dot). You will see compile_commands.json
. This helps clangd to find <gtk/gtk.h>