Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Error: missing target product

$
0
0

@owenplanchart wrote:

Hi,

I keep getting this error message when executing a simple nested for Loop:

:-1: Unable to resolve build file: XCBCore.BuildFile (missingTargetProductReference(“fb811e3ddac979b544d01e4f7d1ba3984ffa05ab947bba0566490cb944358c75”)) (in target ‘Shapes From Pixels’)

Here is the code:

//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(255);
ofSetFrameRate(60);
vidGrabber.setDeviceID(0);
vidGrabber.setDesiredFrameRate(30);
vidGrabber.initGrabber(ofGetWidth(), ofGetHeight());
startPos = spacing/2;
spacing = 10;

}

//--------------------------------------------------------------
void ofApp::update(){
vidGrabber.update();
pixels = vidGrabber.getPixels();

}

//--------------------------------------------------------------
void ofApp::draw(){

for (int i=0; i<ofGetWidth(); i+=spacing){
    for (int j=0; j<ofGetHeight(); j+=spacing){
        int locX = startPos + i;
        int locY = startPos + j;
    
    ofSetColor(0);
    ofDrawCircle(locX, locY, 3);
    }
}

}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles