ofxLiveApp icon indicating copy to clipboard operation
ofxLiveApp copied to clipboard

MacOS runs but with compiling issues

Open youandhubris opened this issue 5 years ago • 3 comments

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!

youandhubris avatar May 09 '19 06:05 youandhubris

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

gumilastik avatar May 09 '19 15:05 gumilastik

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.

youandhubris avatar May 10 '19 17:05 youandhubris

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.

gumilastik avatar May 10 '19 22:05 gumilastik