Monday, May 28, 2007

freetype internals

there are some ugly issues with freetype exposing internals and those being used by different projects.
if you get an error about ftobjs.h when compiling SDL_ttf just comment out the include and change the stream->memory = library->memory; to
stream->memory = NULL; somewhere around line 280
just as in this patch: http://cvs.mandriva.com/cgi-bin/viewvc.cgi/SPECS/SDL_ttf/SDL_ttf-2.0.8-noftinternals.patch?revision=1.1

should compile fine then.

Wednesday, May 16, 2007

/usr/lib/libSDL.so: undefined reference to `keyboard_init_return_fd'

problem was that a build of sdl came with svgalib support.
usual `sdl-config --cflags --libs` didn't add a -lvga and the package didnt require svgalib. adding the flag and installing the package solved the problem.

Saturday, May 12, 2007

linux midi

took me some time to get the hang of linux audio stuff.
mostly because of crappy onboard hardware, no clue about audio and some dumb mistakes - zyn is also a pretty odd program - but it sounds great.
so that's what i do now:
modprobe snd_virmidi index=1
then connect two ports e.g. aconnect 73:0 74:0 ... overview via aconnect -o and -li
jackd -d alsa

make sure to compile zynaddsubfx with LINUX_MIDIIN=ALSA in
Makefile.inc

start muse and zyn ... select zyn as midi port in muse ... import midi ... play

Thursday, May 03, 2007

The application failed to initialize properly (0xc0000005).

Got that error trying to run an app i built in mingw ... uses sdl_mixer.
had that one before.
anyway ... building a new version of sdl and sdl_mixer solved it.