From: Jacob M. <ja...@sd...> - 2009-01-13 10:27:15
|
hi, cool project :) I got lmms-0.8.4 working on OpenBSD/i386 with some simple patches. I will give an explanation of them. I don't understand cmake well, so I probably was just hacking. maybe you can suggest a good method? CMakeLists.txt: added -lossaudio to LINK_LIBRARIES be able to use the OSS emulation on OpenBSD. this should probably have some kind of test I suppose? what would be the preferred way and where? added -Wl,-E to lmms link flags by adding the following line: SET_TARGET_PROPERTIES(lmms PROPERTIES LINK_FLAGS "${LINK_FLAGS} -Wl,-E") without this, most plugins would complain of unresolved symbols. the symbols that lmms provides, to be more exact. include/remote_plugin.h: for some reason the tests for sys/ipc.h and sys/shm.h failed. how do I see why they failed? also had to include unistd.h or usleep() was not defined. src/core/audio/audio_oss.cpp: g++ complained about #elif LMMS_HAVE_SOUNDCARD_H I changed it to #elif defined(LMMS_HAVE_SOUNDCARD_H) src/core/main.cpp: had to include unistd.h or getpid() was not defined. also OpenBSD's pthreads doesn't support sched_get_priority_{max,min}, so I added #ifndef __OpenBSD__ after #ifdef LMMS_HAVE_SCHED_H around line 345. -- ja...@sd... SDF Public Access UNIX System - http://sdf.lonestar.org |