building metro.c ubuntu 1204

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

building metro.c ubuntu 1204

Heisenberg
Hi
i just installed jack2. followed the instructions
./waf configure --alsa --debug --clients=128
./waf build
sudo ./waf install
ldconfig

it seems to build fine, all the relevant programs have been built.
now if i cd into the example clients folder and do :

 gcc -o metronome `pkg-config --cflags --libs jack` metro.c
i get :
/tmp/cc6QYogd.o: In function `signal_handler':
metro.c:(.text+0xf): undefined reference to `jack_client_close'
/tmp/cc6QYogd.o: In function `process_silence':
metro.c:(.text+0x8d): undefined reference to `jack_port_get_buffer'
/tmp/cc6QYogd.o: In function `process_audio':
metro.c:(.text+0xd0): undefined reference to `jack_port_get_buffer'
/tmp/cc6QYogd.o: In function `process':
metro.c:(.text+0x1ec): undefined reference to `jack_transport_query'
/tmp/cc6QYogd.o: In function `main':
metro.c:(.text+0x6f9): undefined reference to `jack_client_open'
metro.c:(.text+0x756): undefined reference to `jack_set_process_callback'
metro.c:(.text+0x786): undefined reference to `jack_port_register'
metro.c:(.text+0x798): undefined reference to `jack_get_sample_rate'
metro.c:(.text+0xa94): undefined reference to `sin'
metro.c:(.text+0xb01): undefined reference to `jack_activate'
collect2: ld returned 1 exit status

if i do this on the command line :

pkg-config --cflags --libs jack
it returns

-I/usr/local/include  -L/usr/local/lib -ljack  


any ideas ?



Reply | Threaded
Open this post in threaded view
|

Re: building metro.c ubuntu 1204

Heisenberg
seems like an order issue :
i did
gcc -o metronome metro.c `pkg-config --cflags --libs jack`

this worked