On Wed, Dec 21, 2011 at 11:22:34AM -0800, Dan Dennedy wrote: D> > Also, the git snapshot doesn't build now: D> > D> > g++ -O -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -fPIC -pthread -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -fPIC -pthread -I../.. -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -fPIC -pthread -Wno-deprecated -Wno-multichar -fno-rtti -D__LINUX_OSS__ -c -o RtAudio.o RtAudio.cpp D> > RtAudio.cpp:6376:23: error: soundcard.h: No such file or directory D> > RtAudio.cpp: In member function 'virtual unsigned int RtApiOss::getDeviceCount()': D> > ... D> > D> > soundcard.h seems to be a Linux-only interface. If this module isn't D> D> No, it is for OSS. The FreeBSD wiki page http://wiki.freebsd.org/Sound D> led me to believe FreeBSD led me to believe it still supports OSS.
You are right, sorry. It failed because soundcard.h is included as it was located in local tree. With this change I (almost) can compile rtaudio: diff --git a/src/modules/rtaudio/RtAudio.cpp b/src/modules/rtaudio/RtAudio.cpp index f6b4685..2bdd89b 100644 --- a/src/modules/rtaudio/RtAudio.cpp +++ b/src/modules/rtaudio/RtAudio.cpp @@ -6373,7 +6373,7 @@ extern "C" void *alsaCallbackHandler( void *ptr ) #include <sys/ioctl.h> #include <unistd.h> #include <fcntl.h> -#include "soundcard.h" +#include <sys/soundcard.h> #include <errno.h> #include <math.h> It still fails: g++ -O -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -fPIC -pthread -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -fPIC -pthread -I../.. -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -fPIC -pthread -Wno-deprecated -Wno-multichar -fno-rtti -D__LINUX_OSS__ -c -o RtAudio.o RtAudio.cpp RtAudio.cpp: In member function 'virtual RtAudio::DeviceInfo RtApiOss::getDeviceInfo(unsigned int)': RtAudio.cpp:6486: error: 'AFMT_FLOAT' was not declared in this scope Probably the OSS in FreeBSD is outdated? -- Totus tuus, Glebius. ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
