gumilastik / ofxLiveApp

Live coding for openFrameworks! 🐨
29 stars 1 forks source link

MacOS runs but with compiling issues #2

Open youandhubris opened 5 years ago

youandhubris commented 5 years ago

Hi! First of all, thanks for the work! : )

I'm running macOS 10.14.4 and Xcode 9.2 and 10.2.1, and compiling on debug. I'm able to compile and run on 9.2, but with this error:

[I] : Initializing...
[I] : Load CUs: done. [W] : Cannot open depfile: /Users/ogo/Projects/OFReleases/OF0101/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/ofxLiveApp.d. [W] : Cannot open depfile: /Users/ogo/Projects/OFReleases/OF0101/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/Particle.d
[W] : Cannot open depfile: /Users/ogo/Projects/OFReleases/OF0101/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/main.d [I] : Load dependencies: done [I] : Setup file watcher: done [I] : Load symbols: done [E] : Cannot open /Users/ogo/Projects/OFReleases/OF0101/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/ofxLiveApp.o [E] : Cannot open /Users/ogo/Projects/OFReleases/OF0101/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/Particle.o [E] : Cannot open /Users/ogo/Projects/OFReleases/OF0101/addons/ofxLiveApp/example/build/example.build/Release/example.build/Objects-normal/x86_64/main.o [I] : Load exported symbols: done [I] : Ready

Maybe because of this, I'm not able to fully live code. If I change values I start to get memory leaks or random data assigned.

On 10.2.1 I'm not even able to do any sort of update. Hope this helps!

gumilastik commented 5 years ago

Hubris, hi!

I have the same warnings and errors with jet-live, but compiling and reloading code works for me. Does code reload work for you or not at all?

Try to build jet-live on your side and check out its example

youandhubris commented 5 years ago

I'm able run jet-live example with no issues.

I'm also able to run your example and live code somethings, like changing the size of the particles vector, as you suggest.

But, as an example, if I do this:

void ofApp::reinit() {
    cout << "reinit" << endl;

    float r = ofRandom(100);
    cout << r << endl;

    timeLastUpdate = ofGetElapsedTimef();

    // change this
    particles.resize(200);
}

Your "app updated..." animation stops working. The app still runs, but the text is frozen.

If I recompile from scratch with the changes, it works. If remove it and hot-reload. It works. If I add it again and hot-reload it stops working.

gumilastik commented 5 years ago

Wow. Thanks for the tests. I'll check it out in the coming days. I still do not know why these lines stop live updates.