ofxLiveApp: addon for live coding


Addon for live coding. Combines two libraries for support OSX and Windows both.

The main idea is that you run the application, make changes and save the source files, then these changes are automatically applied to your running application. This is a fully automatic process



That sounds very cool :slight_smile: Since Jet-Live supports Linux, would it be hard to add one more platform? :slight_smile:


Hey @gumilastik! this looks quite promising. :slight_smile:
Thanks for sharing and welcome to the OF community.
I’ll try it out soon.


hey @gumilastik, nice!
i am getting:

xcodebuild -project example.xcodeproj | xcpretty -r json-compilation-database --output compile_commands.json
▸ Building example/example [(Release)]
▸ Check Dependencies
▸ Running script ‘Run Script’
▸ Building openFrameworksLib/openFrameworks [Release]
▸ Check Dependencies
▸ Build Succeeded
▸ Compiling main.cpp

:x: /Users/user/Documents/of_v0.10.1_osx_release/addons/ofxLiveApp/src/ofxLiveApp.h:32:18: use of undeclared identifier ‘ILiveListener’

    std::unique_ptr<ILiveListener> listener;

:x: /Users/user/Documents/of_v0.10.1_osx_release/addons/ofxLiveApp/example/src/main.cpp:11:2: no matching function for call to ‘ofRunApp’

    ofRunApp(new ofApp());

▸ Compiling ofApp.cpp

:x: /Users/user/Documents/of_v0.10.1_osx_release/addons/ofxLiveApp/src/ofxLiveApp.h:32:18: use of undeclared identifier ‘ILiveListener’

    std::unique_ptr<ILiveListener> listener;

▸ Compiling Particle.cpp
▸ Compiling ofxLiveApp.cpp

The following build commands failed:
CompileC build/example.build/Release/example.build/Objects-normal/x86_64/main.o src/main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

any tip around? i am in macOS Sierra and OF 0.10.1…
Should I install jet-live maybe?

I installed xpretty already:
sudo gem install xcpretty


when compiled with Project Generator I am getting this:
/Users/user/Documents/of_v0.10.1_osx_release/addons/ofxLiveApp/src/ofxLiveApp.h:32:18: Use of undeclared identifier 'ILiveListener'


Yeah, It seems that I fixed the problem. Could you check osx version again?


I think I’m close of having it run on Linux. The jet-live example works fine. I’m struggling with converting this line from addon_config.mk:

ADDON_LDFLAGS += -Wl,-export_dynamic -Wl,-flat_namespace -Wl,-search_paths_first -Wl,-headerpad_max_install_names -ldl

into something that QBS likes. This for instance doesn’t work:

    of.linkerFlags: [
        '-ldl']      // flags passed to the linker

e:-1: error: unrecognized option '-Wl,-export_dynamic'

Any ideas?

update: I see one should not use -Wl. Looking for the right syntax.


hey, now it compiles, but i am getting this:

[I] : Initializing...
[I] : Load CUs: done
[W] : Cannot open depfile: /Users/user/Documents/of_v0.10.1_osx_release/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/ofxLiveApp.d
[I] : Load dependencies: done
[I] : Setup file watcher: done
[I] : Load symbols: done
[E] : Cannot open /Users/user/Documents/of_v0.10.1_osx_release/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/ofxLiveApp.o
[E] : Cannot open /Users/user/Documents/of_v0.10.1_osx_release/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/ofApp.o
[E] : Cannot open /Users/user/Documents/of_v0.10.1_osx_release/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/main.o
[I] : Load exported symbols: done
[I] : Ready

so, when editing code, i am no getting changes on particles changes