Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions INSTALL_OFRASP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Install ofRasp from GitHub

Short guide to clone this fork and get a **buildable** tree. For stock openFrameworks see **[INSTALL_FROM_GITHUB.md](INSTALL_FROM_GITHUB.md)**.

---

## Before you start

- Use a path **without spaces** (many scripts assume that).
- You need **Git** and **Bash** (Git Bash on Windows, or MSYS2 / WSL / Terminal on Unix).

---

## 1. Clone

Default branch is **`ofrasp`**.

**HTTPS** (no SSH key):

```bash
git clone https://github.com/ofrasp/openFrameworks.git
cd openFrameworks
```

**SSH**:

```bash
git clone git@github.com:ofrasp/openFrameworks.git
cd openFrameworks
```

Confirm branch:

```bash
git branch --show-current # expect: ofrasp
```

To work from **development** checkout:

```bash
git checkout ofrasp-dev
```

---

## 2. One-shot install (openFrameworks + ofRasp)

From the **openFrameworks repo root**, in **Bash** (Git Bash, MSYS2, Linux, macOS):

```bash
bash ./scripts/install_ofrasp_from_git.sh
```

---

## 3. Build something

- Follow your platform’s usual OF workflow: **Makefile**, **Visual Studio**, or **Xcode**, as in **[download / setup](https://openframeworks.cc/download/)**.
- Examples that ship **`build.bat`** / **`build.sh`** can be built from their folder (see comments in those scripts).
- **CMake / CLion:** if you use **ofxCMake**, see **[docs/CMAKE_OFRASP.md](docs/CMAKE_OFRASP.md)** — set **`OF_ROOT`** to this ofRasp repo, run the same deps/spine steps, then configure **per app**.

ofRasp aims to rely on **package managers** and small scripts instead of apothecary / Project Generator for day-to-day use; PG is still valid if you prefer it.

---

## 6. Stay in sync with upstream openFrameworks

```bash
git remote add upstream https://github.com/openframeworks/openFrameworks.git # once
git fetch upstream
git merge upstream/master # or rebase, per your workflow
```

Resolve conflicts, then re-run **`install_ofrasp_from_git.sh`** (or at least **`install_ofrasp_spine.sh`**) if addon scripts or forks changed.

---
91 changes: 16 additions & 75 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,87 +1,28 @@
[openFrameworks](http://openframeworks.cc/)
================
# ofRasp

openFrameworks is a C++ toolkit for creative coding. If you are new to OF, welcome!
*openFrameworks with Edit mode. Pi-native. Web-native.*

- [Grab the Nightly Release (to avoid submodule cloning)](https://github.com/openframeworks/openFrameworks/releases)
- [Setup guides for different Platforms](https://openframeworks.cc/download/)
- [Join Our Slack](https://join.slack.com/t/openframeworks/shared_invite/zt-1r2brqms0-dZMMFZgZhFTgomjJ0vlCjA)
- [Discuss on the Forum](https://forum.openframeworks.cc)
- [Follow OF on Mastodon](https://fosstodon.org/@openframeworks)
This repo is a distribution of [openFrameworks](https://openframeworks.cc/) aimed at **always-on Edit mode**, **Raspberry Pi**, and the **web**. The toolkit is still openFrameworks: `ofApp`, `ofMain.h`, and the addon ecosystem behave the same way.

## Build status
**→ [More Info, pillars, non-goals, and status](docs/OF_RASP.md)**
**→ [Install from GitHub](INSTALL_OFRASP.md)** (clone, deps, spine, build)
**→ [CMake + ofxCMake](docs/CMAKE_OFRASP.md)** (optional)

* The **master** branch contains the newest, most recently updated code. This code is packaged and available for download in the "Nightly Builds" section of [openframeworks.cc/download](https://openframeworks.cc/download/).
* The **stable** branch contains the code corresponding to the last stable openFrameworks release. This stable code is packaged and available for download at [openframeworks.cc/download](https://openframeworks.cc/download/).
## Quick start

Platform | Master branch | Stable branch
-----------------------------|:---------|:---------
Windows MSYS2 | [![Build status](https://github.com/openframeworks/openFrameworks/workflows/build-msys2/badge.svg)](https://github.com/openframeworks/openFrameworks/actions) | [![Build status](https://github.com/openframeworks/openFrameworks/workflows/build-msys2/badge.svg?branch=stable)](https://github.com/openframeworks/openFrameworks/actions)
Windows Visual Studio | [![Build status](https://github.com/openframeworks/openFrameworks/workflows/build-vs/badge.svg)](https://github.com/openframeworks/openFrameworks/actions) | [![Build status](https://github.com/openframeworks/openFrameworks/workflows/build-vs/badge.svg?branch=stable)](https://github.com/openframeworks/openFrameworks/actions)
Linux 64 & Arm | [![Linux Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-linux64-and-arm/badge.svg)](https://github.com/openframeworks/openFrameworks/actions) | [![Linux Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-linux64-and-arm/badge.svg?branch=stable)](https://github.com/openframeworks/openFrameworks/actions)
Emscripten | [![Emscripten Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-emscripten/badge.svg)](https://github.com/openframeworks/openFrameworks/actions) | [![Emscripten Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-emscripten/badge.svg?branch=stable)](https://github.com/openframeworks/openFrameworks/actions)
macos | [![macos Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-macos/badge.svg)](https://github.com/openframeworks/openFrameworks/actions) | [![macos Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-macos/badge.svg?branch=stable)](https://github.com/openframeworks/openFrameworks/actions)
iOS & tvOS | [![iOS tvOS Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-ios-tvos/badge.svg)](https://github.com/openframeworks/openFrameworks/actions) | [![iOS tvOS Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-ios-tvos/badge.svg?branch=stable)](https://github.com/openframeworks/openFrameworks/actions)
1. Clone the repository. The **default branch is `ofrasp`** use ofrasp-dev for development. You can still switch to **stock openFrameworks** in this fork with `git checkout master` (branch name may differ; use `git branch -a`).

<!-- Android Arm7 | [![Android Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-android/badge.svg)](https://github.com/openframeworks/openFrameworks/actions) | [![Android Build Status](https://github.com/openframeworks/openFrameworks/workflows/build-android/badge.svg?branch=stable)](https://github.com/openframeworks/openFrameworks/actions) -->
2. **One-shot from git:** from the repo root run
`bash ./scripts/install_ofrasp_from_git.sh`

**OR** run those pieces yourself (e.g. **[INSTALL_FROM_GITHUB.md](INSTALL_FROM_GITHUB.md)** for **`download_libs`**, then **`install_ofrasp_deps.sh`**, then **`install_ofrasp_spine.sh`**).

3. Build sketches as the usual. More context: **[docs/OF_RASP.md](docs/OF_RASP.md)**.

## folder structure
## Contributing

This release of OF comes with several folders:
Contributing conventions in this tree still follow **[CONTRIBUTING.md](CONTRIBUTING.md)** where they apply; ofRasp-specific work is discussed on **this fork’s** issues and PRs.

* addons
* apps
* docs
* examples
* export (on some systems)
* libs
* other
* scripts
* projectGenerator
## License


`docs` has some documentation around OF usage, per platform things to consider, etc. You should definitely take a look in there; for example, if you are on OSX, read the osx.md. `apps` and `examples` are where projects go -- `examples` contains a variety of projects that show you how to use OF, and `apps` is where your own projects will go. `libs` contains the libraries that OF uses, including the openframeworks core itself. `addons` are for additional functionality that's not part of the core. `export` is for DLLs and dylibs that need to be put in each compiled project. The `scripts` folder has the templates and small scripts for automating OF per platform. `project generator` is a GUI based tool for making new projects - this folder is only there in packaged releases.

One idea that's important is that OF releases are designed to be self-contained. You can put them anywhere on your hard drive, but it's not possible to mix different releases of OF together, so please keep each release (0.8.0, 0.8.1) separate. Projects may generally work from release to release, but this is not guaranteed. Because OF is self-contained, there's extensive use of local file paths (ie, ../../../) throughout OF. It's important to be aware of how directories are structured. A common error is to take a project and move it so that it's a level below or above where it used to be compared to the root of OF. This means that links such as ../../../libs will break.

## Get involved

The openframeworks forum:

[http://forum.openframeworks.cc/](http://forum.openframeworks.cc/)

is a warm and friendly place. Please ask or answer a question. The most important part of this project is that it's a community, more than just a tool, so please join us! Also, this is free software, and we learn so much about what is hard, what doesn't make sense, what is useful, etc. The most basic questions are acceptable here! Don't worry, just join the conversation. Learning in OF is social, it's hard to do it alone, but together we can get far!

Our GitHub site is active:

[https://github.com/openframeworks/openFrameworks](https://github.com/openframeworks/openFrameworks)

if you have bugs or feature requests, consider opening an issue. If you are a developer and want to help, pull requests are warmly welcome. Please read the contributing guide for guidelines:

[https://github.com/openframeworks/openFrameworks/blob/master/CONTRIBUTING.md](https://github.com/openframeworks/openFrameworks/blob/master/CONTRIBUTING.md
)

We also have a developer's mailing list, which is useful for discussing issues around the development and future of OF.

## Developers

To grab a copy of openFrameworks for your platform, check the [download page](http://openframeworks.cc/download) on the main site.

If you are working with the Git repository, the `stable` branch of the OF repository corresponds to the most recent release, with a few important differences:

1. The release includes a simple openFrameworks project generator.
2. This GitHub repository contains code and libs for all the platforms, but the releases are done on a per-platform basis.
3. This GitHub repository has no project files for the different examples. They are generated automatically for each release using a tool in `apps/projectGenerator/`.
4. There are no external dependencies in this repository, you can download them using the download_libs.sh script for each platform in the particular platform folder inside scripts.

If you want to work with the openFrameworks GitHub repository, you need to download the external dependencies and you should use the project generator to create project files for all the code in `examples/`. To generate the project files with the project generator enable the 'Advanced Options' in the settings tab, then use 'Update Multiple' to update the projects for the `examples/` folder path in the repo.

To set up the project generator submodule within the OF repo, use the command `git submodule init` then `git submodule update` whilst inside the openFrameworks repo.

For more info on working with the Project Generator, for per-platform readmes, and more information, see the [documentation](docs/table_of_contents.md).

## Versioning

openFrameworks uses [Semantic Versioning](http://semver.org/), although strict adherence will only come into effect at version 1.0.0.
MIT — see **[LICENSE.md](LICENSE.md)** (same as upstream openFrameworks).
61 changes: 61 additions & 0 deletions docs/OF_RASP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# ofRasp

*openFrameworks with Edit mode. Pi-native. Web-native.*

> A long-running branch of [openFrameworks](http://openframeworks.cc) that prioritizes always-on editing.

## What is this?

ofRasp **is openFrameworks.** Your sketches compile unchanged — `ofApp`, `ofMain.h`, every `ofx`* addon still works the same way.

## Edit mode

Every sketch ships with always-on editor. While your sketch is running, hit `Ctrl-E` to see:

- **Nodes** panel listing every entity in the scene
- **Properties** panel to scrub any `ofParameter`, position, color, radius, or other reflected field
- **Viewport** gizmo for direct manipulation
- **Toolbar** with your app name and menu hooks

Hit `Ctrl-E` again and the editor disappears — your sketch is a clean render again, frame-perfect, zero overhead.
It's what Unity calls Play/Edit, what Max/MSP calls locked/unlocked.

## The three pillars

### 1. Edit mode

The reflection plumbing that powers ofRasp is an ECS called EnTT. The intent is that *every* future OF-style sketch shipped on ofRasp is editable by its author (or viewer) without writing a line of GUI code. Human Altering.

ofRasp's reflection layer is built on EnTT, an ECS framework. The intent is that *every* sketch run through ofRasp should be editable by its author—or its viewer—without writing a single line of GUI code. We call this Human Editable.

### 2. Pi-native

Upstream OF's Raspberry Pi support has drifted. ofRasp tries to keep Pi as a first-class target: GLES3 renderer maintained, headless-friendly build paths, reproducible one-command setup on a fresh Raspberry Pi OS install. Pi is the smallest full-stack Edit-mode machine we can ship, and embedded systems with limited memory tend to run better on 32-bit than 64-bit.

### 3. Web-native

Export to web should be easy. ofrasp.com itself runs as an ofRasp sketch, compiled to the browser via Emscripten.

## Relationship to upstream openFrameworks

We send fixes that make sense upstream back as PRs. ofRasp-specific changes (Edit mode core, build system, ImGui-in-core) stay on this branch. However most of it will be in seperate addons.

If you want stock openFrameworks: `git checkout master`. If you want ofRasp: `git checkout ofrasp`

## Status

Early. Interface is unstable — in particular, the exact API for how Edit mode plugs into a sketch is still in flux. The compatibility promise for upstream OF code is stable.

## License

MIT, same as upstream openFrameworks. See [LICENSE.md](../LICENSE.md).

## Contact

- **Website:** [ofrasp.com](https://ofrasp.com)
- **Upstream:** [openframeworks.cc](http://openframeworks.cc) — everything OF's forum/Slack/docs say is still true here.
- **Issues / discussion:** on this fork's GitHub repo.

---

*ofRasp is an unofficial fork. Not affiliated with or endorsed by the openFrameworks project. openFrameworks is the work of many people over many years; ofRasp stands on their shoulders.*
83 changes: 83 additions & 0 deletions scripts/install_ofrasp_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# install_ofrasp_deps.sh
#
# Platform-aware ofRasp dependency helper (openFrameworks repo root).
#
# Windows (MSYS2 UCRT64): full pacman install for OF
# macOS / Linux: prints upstream OF install pointers
#
# ofRasp addon sources (ofxFft, ofxLibTess2, ImGui, EnTT, …) come from
# ./scripts/install_ofrasp_spine.sh — run that after this script, or use
# ./scripts/install_ofrasp_from_git.sh for the full chain.
#
# Usage (always from openFrameworks repo root):
# ./scripts/install_ofrasp_deps.sh
# ./scripts/install_ofrasp_deps.sh --fixups-only # runs install_ofrasp_spine.sh only (legacy name)
#
# -----------------------------------------------------------------------------

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
OF_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
export OF_ROOT

FIXUPS_ONLY=0
if [[ "${1:-}" == "--fixups-only" ]] || [[ "${1:-}" == "-F" ]]; then
FIXUPS_ONLY=1
fi

if [[ "${FIXUPS_ONLY}" -eq 1 ]]; then
echo "=== --fixups-only: running ./scripts/install_ofrasp_spine.sh (ofRasp addons) ==="
bash "${SCRIPT_DIR}/install_ofrasp_spine.sh"
exit 0
fi

uname_s="$(uname -s 2>/dev/null || echo unknown)"

# MSYS2 / MinGW: full installer lives next to this file
case "${uname_s}" in
MINGW* | MSYS* | CYGWIN*)
if [[ -n "${MINGW_PACKAGE_PREFIX:-}" ]] && [[ -n "${MINGW_PREFIX:-}" ]]; then
exec "${SCRIPT_DIR}/msys2/install_ofrasp_deps.sh"
fi
echo "NOTE: MSYS2 UCRT64 shell not detected (MINGW_* unset)." >&2
echo " For full Windows deps, open 'MSYS2 UCRT64' and run:" >&2
echo " ${SCRIPT_DIR}/msys2/install_ofrasp_deps.sh" >&2
echo "=== Next: ./scripts/install_ofrasp_spine.sh (ofxFft, ofxLibTess2, …) ===" >&2
exit 0
;;
esac

case "${uname_s}" in
Darwin)
echo "=== macOS ==="
echo "Install Xcode Command Line Tools (xcode-select --install) and follow:"
echo " https://openframeworks.cc/download/"
echo "Use OF’s macOS project templates / download_libs.sh as documented upstream."
echo
echo "=== Next: ./scripts/install_ofrasp_spine.sh (ofxFft, ofxLibTess2, …) ==="
;;
Linux)
echo "=== Linux (includes Raspberry Pi OS) ==="
echo "Install openFrameworks system packages for your distro (same as upstream OF), e.g.:"
if command -v apt-get >/dev/null 2>&1; then
echo " sudo ${SCRIPT_DIR}/linux/debian/install_dependencies.sh"
echo " # or: sudo ${SCRIPT_DIR}/linux/ubuntu/install_dependencies.sh"
elif command -v dnf >/dev/null 2>&1; then
echo " sudo ${SCRIPT_DIR}/linux/fedora/install_dependencies.sh"
elif command -v pacman >/dev/null 2>&1 && [[ -f /etc/arch-release ]]; then
echo " ${SCRIPT_DIR}/linux/archlinux/install_dependencies.sh (see script for sudo)"
else
echo " See scripts/linux/<your-distro>/ in this repo."
fi
echo
echo "=== Next: ./scripts/install_ofrasp_spine.sh (ofxFft, ofxLibTess2, …) ==="
;;
*)
echo "=== Unknown OS: ${uname_s} ===" >&2
echo "Install OF system deps manually, then:" >&2
echo " ./scripts/install_ofrasp_spine.sh" >&2
;;
esac
Loading
Loading