problems using ofxNoise

hi there, im trying to use the ofxNoise external , my apps doesnt compile when i try this addon, ive tried other addons and my apps compile withouth problems. Is there any problem with ofxNoise and of v.0.06xcode_fat , im on macosx using leopard

this is the error i get when i put #include “ofxNoise.h” ( if i delete #include “ofxNoise.h” it does compile again)

any idea?

ld: duplicate symbol _main in /Users/Mike/Desktop/of/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/oscSenderExample/build/ and /Users/Mike/Desktop/of/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/oscSenderExample/build/
collect2: ld returned 1 exit status
Build failed (1 error, 2 warnings)

since 0061 there’s an ofNoise function in the core so you don’t need the addon, it’s in ofMath and there’s 4 different versions from 1d to 4d. it returns values between 0…1 or use ofSignedNoise to get values between -1…1:

float		ofNoise(float x);  
float		ofNoise(float x, float y);  
float		ofNoise(float x, float y, float z);  
float		ofNoise(float x, float y, float z, float w);  
float		ofSignedNoise(float x);  
float		ofSignedNoise(float x, float y);  
float		ofSignedNoise(float x, float y, float z);  
float		ofSignedNoise(float x, float y, float z, float w);  

Hi Adam

From your explanation it seems like you are also including the example that comes with the addon in your project.
That would cause an error with duplicate main.cpp files.
If thats the case try removing the example from your project and see if it works.

As Arturo also said there is now an ofNoise function built in OF. From what i’ve seen it uses simplex noise, whereas in the addon you can choose either perlin or simplex. Simplex and perlin give slightly different results but depending on what you want to do it may not make a difference to you.

Hope it helps