On Friday 30 March 2007 15:20, Markku Linnoskivi wrote:
> I've been working for a few hours on JACK output driver. Now I'd like to
> try to compile it.
> JACK need some libraries to be linked in the system.
> Thes can be included with:
>
> `pkg-config --cflags --libs jack`
> on the gcc command.
>
> Also cheking for the libraries can be done with:
>
> PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)
>
> (Taken from JACK web site)
> Now my problem is how to put those in the configure/Makefile?
> Also my code has #ifdef HAVE_JACK checks, so that variable should be
> defined.

Put these lines into configure.in (before the end of the "SOUND" section, 
about line 110):

AH_TEMPLATE(HAVE_JACK, [Define if you have JACK sound mixer library])
PKG_CHECK_MODULES(JACK, jack, [AC_DEFINE(HAVE_JACK)], :)
AC_SUBST(JACK_CFLAGS)
AC_SUBST(JACK_LIBS)

Then use $(JACK_CFLAGS) and $(JACK_LIBS) in cinelerra/Makefile.am, just like 
OPENEXR_*, for example. You must make sure that config.h is included in all 
files that check for HAVE_JACK.

> Also if some one could tell me the file where the audio driver is
> selected, AudioLowLevel object is instanciated that is.

AudioDevice::create_lowlevel() in cinelerra/audiodevice.C
What was so difficult to find this function?

-- Hannes

_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to