Giter Site home page Giter Site logo

ofxhotreloader's Introduction

HOT RELOADER for openFrameworks / JUCE

INSTALLATION

WINDOWS:

Setup project:

Only change Configuration type to Dynamic Library (.dll) in project setting Check C/C++ -> Code Generation -> Runtime Library need be same for plugin and app both

Prepare app to run:
  • for JUCE: Copy fmodex64.dll and fmodexL64.dll to app folder

OSX:

Setup project:
  • Fast method generate project with generator, then show contents of generated *.xcodeproj, find project.pbxproj :

    1. change productType string to com.apple.product-type.library.dynamic
    2. change name of project (above productType) to libNAME
    3. change PRODUCT_NAME for debug to $(TARGET_NAME)
    4. change shellScript string to script text below (only for JUCE)
  • Long methog add new target Library to project (see https://forum.openframeworks.cc/t/can-i-change-empty-example-xcode-project-output-to-dylib/25456/3) Build Settings -> Code Signing Identity set to Don't Code Sign (without this will be exception when loading dylib) Build Phases -> add cpp sources & manually link with openFrameworks.a

Modify project run script (only for JUCE):
  • for openFrameworks: Build Phases -> Run Script :
install_name_tool -change @executable_path/libfmodex.dylib @executable_path/../Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.dylib";
  • for JUCE: Build Phases -> Run Script :
install_name_tool -change @executable_path/libfmodex.dylib "$USER_LIBRARY_DIR/Application Support/com.company.application/libfmodex.dylib" "$TARGET_BUILD_DIR/$PRODUCT_NAME.dylib";
Prepare app to run:
  • for openFrameworks: Copy libfmodex.dylib from of_release/libs/fmodex/lib/osx/libfmodex.dylib to app folder
  • for JUCE: Copy libfmodex.dylib from of_release/libs/fmodex/lib/osx/libfmodex.dylib to ~/Library/Application Support/com.company.application/

Alternatives

Similar project: https://github.com/mazbox/livecode-cplusplus/blob/master/Makefile

TODO

  • add async loading (thread): bool async = false, async ? std::thread(&ofxHotreloader::load, this).detach() : load(); -> add recreation plugins in new callback and call at next check
  • remove static loader -> create ofxPluginUtils object (maybe macros, see ofxPlugin)

ofxhotreloader's People

Contributors

gumilastik avatar

Stargazers

Matt avatar Farley Knight avatar Daan de Lange avatar Evgeny avatar liquid avatar

Watchers

James Cloos avatar  avatar

Forkers

benediktadams

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.