arturoc/openFrameworks — pull request #1 by damiannz (2012-03-08 18:42:51+00:00)
Title: linuxarmv7 graphics working

hardfp seemed to be causing a segfault in `sincosf()` via libm.a (wtf?). google had nothing useful to say other than to a bunch of pages talking about the incompleteness of debian-hardfloat. plus, it seems *extremely* unlikely that we'll have SGX/PowerVR drivers compiled hardfloat anytime soon, and since that shit is so touchy i just didn't want to go there.

so this is a reversion back to softfp, with a working GLUT|ES that allows oF apps to Just Work, at least on my Ubuntu 11.10 OMAP4 port (see readme.arm.pandaboardubuntu).

points to note:

* there are some odd issues remaining. smoothing doesn't seem to work (see graphicsExample) and polygon rendering is completely messed up (see polygonExample). i'm not sure where this is coming from. broken libtess?

* which set of makefiles should i be editing? i've been working in `libs/openFrameworksCompiled/project/linux` rather than `/linuxarmv7` as that seems to be what the examples pull in.

* both `scripts/linux/template/config.make` and `/libs/openFrameworksCompiled/project/linux/makefile` redundantly declare `mfpu=neon ... mfpu=vfp`. this has been cleaned up.

* references to -lGL, -lGLEW and -lGLUT and their pkg-config requests have been put into separate sections in `makefile.linux`. additional -lGLESv1_CM for OpenGL ES 1.1 and -lglutes for GLUT|ES has been added.

* shouldn't `LINUX_ARM7_COMPILER_OPTIMIZATIONS` be declared once, for example in Makefile.arm, rather than in config.make and then duplicated in `libs/openFrameworksCompiled/project/linux/makefile`?