Hello,
first post, so hello everybody !
I am new in openFrameworks but I have some programming experience
I have a couple of questions/problems, any help would be appreciated…
firstly:
I load some fonts in setup, I have correctly copied all the files in the data folder and I do get the proprer results in my screen when I run the program, but in the console I get several “unable to allocate font…” errors…
secondly:
I have this class:
class textObjectCollection {
deque data;
public:
void draw (); // draw every element in deque
void add (textObject object); // add an element to tail
void remove (); // remove an element from start
void autoRemove (int n); // remove an element from start when size exceeds n
void test(); // for testing purposes… to be deleted afterwards
};
a textObject is a simple struct with strings and ints.
void add is a simple
void textObjectCollection::add (textObject object) {
data.push_back(object);
}
now with the following in my keypressed:
if (key==13 {
textObject a (…);
textData1.add(a);
}
I get:
Program received signal: EXC_BAD_ACCESS.
sharedlibrary apply-load-rules all
warning: Could not find object file “/Users/theo/Documents/CODE/__OPENFRAMEWORKS/SANDBOX/COMPILE_LIBRARIES/buildGlutFramework/libForeground.a(macx_foreground.o)” - no debug information available for “/Users/mcast/Code/GLUT-ToPost/macx_foreground.m”.
warning: Could not find object file “/Developer/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_eprintf.o)” - no debug information available for “/var/tmp/gcc/gcc-5493~1/src/gcc/libgcc2.c”.
why ??
lastly…
I mainly work with my mac, would it be easy to make some windows binaries in the future ?? Would I have to change a lot in my code ??? Can I make versions for vista/xp/win7 from the same machine ??
*** all that I mentioned happened in a mac os X 10.6 machine running XCode 3
thx and greetings to everybody !