20080421 Building a universal library in Mac OS X
If you need to use a library in a universal binary you’ll need to use a universal library too. Let’s use FMOD as an example; libfmod.a is the PPC compiled version, libfmodx86.a is the intel version. For combining both into a universal library: lipo -create libfmodx86.a libfmod.a -output libfmod-universal.a ranlib libfmod-universal.a In the case of [...]
20080408 Mental note about #ifndef’s
When using #ifndef for #include guards: #ifndef BLAH_H #define BLAH_H // code #endif make sure that #ifndef and #define are the first lines of the archive! I had placed some comments before them and that made me lose several hours, trying to find out why class forward declarations didn’t work as they should. One could [...]
20050502 Programando en mac (I)
Continuamos con las aventuras y desventuras programando (o intentándolo) en mac. Ayer conseguí al fin, con un código base que bajé de nehe (cómo no) abrir una ventana y lanzar luego una versión modificada (podría decir: purificada) de mi clase “base” de demos, con el original nombre de …. Demo.cpp. Lo que hice fue sacar [...]