Hello everybody!
I’m trying to compile simple_client.c
(which is a jack example application) with this:
gcc -o simple simpleclient.c
At first, it didn’t work because it was not able to find jack.h. I’m running pipewire, so I simply installed pipewire-jack-audio-connection-kit-devel
. Then ran the same command again:
/usr/bin/ld: /tmp/ccud4laK.o: in function `signal_handler':
simple_client.c:(.text+0x16): undefined reference to `jack_client_close'
/usr/bin/ld: /tmp/ccud4laK.o: in function `process':
simple_client.c:(.text+0x69): undefined reference to `jack_port_get_buffer'
/usr/bin/ld: simple_client.c:(.text+0x81): undefined reference to `jack_port_get_buffer'
/usr/bin/ld: /tmp/ccud4laK.o: in function `main':
simple_client.c:(.text+0x27d): undefined reference to `sin'
/usr/bin/ld: simple_client.c:(.text+0x2dd): undefined reference to `jack_client_open'
/usr/bin/ld: simple_client.c:(.text+0x37f): undefined reference to `jack_get_client_name'
/usr/bin/ld: simple_client.c:(.text+0x3bb): undefined reference to `jack_set_process_callback'
/usr/bin/ld: simple_client.c:(.text+0x3d4): undefined reference to `jack_on_shutdown'
/usr/bin/ld: simple_client.c:(.text+0x3f8): undefined reference to `jack_port_register'
/usr/bin/ld: simple_client.c:(.text+0x423): undefined reference to `jack_port_register'
/usr/bin/ld: simple_client.c:(.text+0x479): undefined reference to `jack_activate'
/usr/bin/ld: simple_client.c:(.text+0x4c3): undefined reference to `jack_get_ports'
/usr/bin/ld: simple_client.c:(.text+0x50c): undefined reference to `jack_port_name'
/usr/bin/ld: simple_client.c:(.text+0x524): undefined reference to `jack_connect'
/usr/bin/ld: simple_client.c:(.text+0x560): undefined reference to `jack_port_name'
/usr/bin/ld: simple_client.c:(.text+0x578): undefined reference to `jack_connect'
/usr/bin/ld: simple_client.c:(.text+0x5a6): undefined reference to `jack_free'
collect2: error: ld returned 1 exit status
This used to work on arch by installing pipewire pipewire-jack
, but somehow something is wrong with jack.h
here.
And I need to note that I use fedora 37, I didn’t switch yet.
Edit: I tried with jack-audio-connection-kit-devel
but it requires jack-audio-connection-kit
which would cause a conflict. That’s why I tried to install pipewire-jack-audio-connection-kit-devel
.