[CM] cm3/sndlib with audio and midi file generation

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Thu Nov 27 15:54:31 PST 2008


On Thu, 2008-11-27 at 17:02 -0600, Heinrich Taube wrote:
> nando ill have a go on my linux (ubuntu) it was building last week so  
> its something simple.
>
> > Got the current sndlib:
> > ./configure --prefix=/usr --with-alsa --with-jack --with-s7
> > make
> 
> but for starters I dont thing thats the way to build sndlib for c++,  
> you need to pass CC=g++ to configure

thanks...

> if you look in my readme.text i have this:
> 
> cd /path/to/sndlib
>   ./configure CC=g++

that build an OSS version...
So you should be at least:

./configure CC=g++ --with-alsa
(that works, creates a sndlib.a)

but (desirable to have jack support):

./configure CC=g++ --with-alsa --with-jack

stops with:

$ make
g++ -c -DHAVE_CONFIG_H -I. -g -O2 -fPIC   -I/usr/include headers.c
g++ -c -DHAVE_CONFIG_H -I. -g -O2 -fPIC   -I/usr/include audio.c
audio.c: In function ‘int sndjack_read(void*, int, int)’:
audio.c:8350: error: invalid conversion from ‘void*’ to ‘float*’
audio.c:8351: error: invalid conversion from ‘void*’ to ‘short int*’
audio.c:8352: error: invalid conversion from ‘void*’ to ‘char*’
audio.c: In function ‘int sndjack_init()’:
audio.c:8497: error: invalid conversion from ‘void*’ to
‘SndjackChannel*’
audio.c:8498: error: invalid conversion from ‘void*’ to
‘SndjackChannel*’
audio.c:8501: error: invalid conversion from ‘void*’ to ‘sample_t*’
audio.c:8504: error: invalid conversion from ‘void*’ to ‘sample_t*’
audio.c: In function ‘int jack_mus_audio_initialize()’:
audio.c:8703: error: invalid conversion from ‘void*’ to ‘sample_t**’
audio.c:8705: error: invalid conversion from ‘void*’ to ‘sample_t*’
audio.c:8706: error: invalid conversion from ‘void*’ to ‘sample_t*’
audio.c:8708: error: invalid conversion from ‘void*’ to ‘SRC_STATE**’
audio.c: In function ‘char* jack_mus_audio_system_name(int)’:
audio.c:9082: warning: deprecated conversion from string constant to
‘char*’
audio.c: In function ‘char* jack_mus_audio_moniker()’:
audio.c:9083: warning: deprecated conversion from string constant to
‘char*’
make: *** [audio.o] Error 1

>   make
>   cd /path/to/cm3
>   premake --verbose --target gnu --juce /path/to/juce --sndlib /path/ 
> to/sndlib
>   make

depends on how you built sndlib, if with alsa and you have gsl installed
then you need to add `gsl-config --libs` to the libs you link against
(did that manually). 

>   bin/cm

It then builds but there are problems as you note in the other message -
a bunch of 'undefined sharp expression' messages. 
 
Thanks for the help. 
(and have a good trip!)
-- Fernando


> ill reply to your other issues once I test build on ubuntu. i have to  
> travel tomorrow so it may take a day to get back to you.
> 
> 
> its cm3.tar.gz while im still porting the code.  once its stable ill  
> check everyting into a new svn repostiory at sourceforge




More information about the Cmdist mailing list