Johannes Sixt wrote:
> 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.
>
>   

Thanks. Do I have to run some script to create a new configure script
and propagate the flags to all Makefiles? README.BUILD says 'autoreconf
-i', doesn't work for me. Then there's autogen.sh but that didn't work
either.

>> 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
>   

I didn't quite mean that. I was trying to find out how driver is
selected in the GUI. And is the GUI list created somehow automatically
(based on audiodevice.inc perhaps...). So do I need to make changes to
some file to add the JACK option in the audiosetup dialog that is.

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

Reply via email to