Hi everyone.
I’m trying OF for the first time, and I tried to configure XCode to work with it.
I’ve set up a new project using the projectGenerator, but when I open it I get one error:
/SDK/Frameworks/OpenFrameworks074/libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj Couldn’t load openFrameworksLib.xcodeproj because it is already opened from another project or workspace
Now, the project works regardless, but I wonder how could I do to get rid of that problem.
Update: I closed the project, closed Xcode and restarted it. Now I don’t get the error, but when I do a run, it compiles correctly and then it doesn’t launch the app. No error is given, it just ends telling me everything went right, but nothing happens.
My testApp goes like this:
#include "testApp.h"
int myCircleX;
int myCircleY;
//--------------------------------------------------------------
void testApp::setup(){
myCircleX=300;
myCircleY=200;
ofSetFrameRate(60);
}
//--------------------------------------------------------------
void testApp::update(){
myCircleX+=4;
if (myCircleX>1024)
{
myCircleX=300;
}
}
//--------------------------------------------------------------
void testApp::draw(){
ofSetColor(120, 200, 200);
ofCircle(myCircleX, myCircleY, 60);
ofDrawBitmapString(ofToString(ofGetFrameRate())+"fps", 10, 15);
}