particle system tutorial

I swear I can’t even get basic stuff working, hah. ok, I am trying to get this tutorial working but can’t seem to do it. cant’ even get first code section to work. here is what I have.

testApp.cpp

  
  
#include "testApp.h"  
  
//--------------------------------------------------------------  
void testApp::setup(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::update(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::draw(){  
	ofBackground(30,10,30);  
    ofSetColor(ofColor::blue);  
    ofFill();  
    ofCircle( ofGetWindowWidth()*0.5, ofGetWindowHeight()*0.5, 30);  
}  
  

set up all my classes in testApp.h:

  
#pragma once  
  
#include "ofMain.h"  
  
class testApp : public ofBaseApp{  
  
	public:  
		void setup();  
		void update();  
		void draw();  
  
  
		  
};  
  

and main.cpp

  
#include "ofMain.h"  
#include "testApp.h"  
#include "ofAppGlutWindow.h"  
  
//========================================================================  
int main( ){  
  
    ofAppGlutWindow window;  
	ofSetupOpenGL(&window, 1024,768, OF_WINDOW);			// <-------- setup the GL context  
  
	// this kicks off the running of my app  
	// can be OF_WINDOW or OF_FULLSCREEN  
	// pass in width and height too:  
	ofRunApp( new testApp());  
  
}  
  

and I get 7 compile errors that I don’t even know where to go with:

Category: Error: *: No such file or directory

/var/folders/2r/cmmwkybd7ngd188lfv8t2z000000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/Carbon-gqyyquhtfnjaofhlfdczpbnzybzb/Carbon.h: No such file or directory

/var/folders/2r/cmmwkybd7ngd188lfv8t2z000000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/Carbon-gqyyquhtfnjaofhlfdczpbnzybzb/Carbon.h: No such file or directory

Category: Error: one or more PCH files were found, but they were invalid

One or more PCH files were found, but they were invalid

One or more PCH files were found, but they were invalid

Category: Error: use -Winvalid-pch for more information

Use -Winvalid-pch for more information

Use -Winvalid-pch for more information

Category: Error: Other

Cp: /Users/TigerAdmin1/Documents/Open Frameworks 007/apps/examples/emptyExample/bin//emptyExampleDebug.app/Contents/MacOS/libfmodex.dylib: No such file or directory

Category: Message: Other

install_name_tool: can’t open file: /Users/TigerAdmin1/Documents/Open Frameworks 007/apps/examples/emptyExample/bin//emptyExampleDebug.app/Contents/MacOS/emptyExampleDebug (No such file or directory)

Sorry Lukasz,

I write that but´s it´s incomplete. It´s going to be deprecated. I recommend to follow Jeff tutorials.
Any way, try to use “ofColor(0,0,255)” instead of “ofColor::blue”

where is Jeffs tutorial?

http://www.openframeworks.cc/tutorials/introduction/001-chapter1.html

oooo. that’s too bad, wanted to do some particles :slight_smile: I did figure it out though, seemed to have been caching something somehow? just went to “Build Menu > Clean” and it fixed the problems.

Thanks good It works for you.

I´ll try to finish it.
Any kind of feedback it´s wellcome