- Prerequisites
- Building the Hello World project
- Open the project in an IDE
- Build the Hello World example for WASI
- Deno
- CMake
- your system's vanilla C/C++ toolchain (GCC, Clang or MSVC)
- optional (but recommended): Ninja
Note
On Windows cmd.exe, run fibs instead of ./fibs
Note
On Windows with VS2026, you need a very recent cmake (4.2+) and everything needs to run inside the Developer Command Prompt for VS (earlier VS versions also work outside the developer command prompt)
Clone, build and run a native release build:
# clone
git clone https://github.com/floooh/fibs-hello-world
cd fibs-hello-world
# build with default build config
./fibs build
# run
./fibs run helloIf anything goes wrong, run ./fibs diag tools to check if any required tools are missing.
To build a native debug build:
# on macOS:
./fibs config macos-make-debug
# on on Linux:
./fibs config linux-make-debug
# on Windows:
./fibs config win-msvc-debug
./fibs build
./fibs run helloNote
FIXME: this needs updating since IDE openers have moved into floooh/fibs-extras
-
Configure with one of the IDE build configs, e.g.:
# on macOS: ./fibs config macos-xcode-debug ./fibs config macos-vscode-debug # on Windows: ./fibs config win-vstudio-debug ./fibs config win-vscode-debug # on Linux: ./fibs config linux-vscode-debug
-
then run
./fibs opento open the project in VSCode, XCode or VStudio:./fibs open
...in the fibs-hello-world directory from above:
-
Run
./fibs diag toolsand make sure thatninja,tarandwasmtimeis installed and found:./fibs diag tools ... ninja: found ... tar: found wasmtime: found
-
Install the WASI SDK:
./fibs wasisdk install
-
Run
./fibs list configs, note thewasi-*configs:./fibs list configs ... wasi-make-debug wasi-make-release wasi-ninja-debug wasi-ninja-release wasi-vscode-debug wasi-vscode-release
-
Configure with
wasi-ninja-debug, build and run:./fibs config wasi-ninja-debug ./fibs build ./fibs run --verbose hello
-
Uninstall WASI SDK:
./fibs wasisdk uninstall