[Jack-Devel] Question regarding the Jack API and compiling Errors

Hanspeter Portner dev at open-music-kontrollers.ch
Sun Jan 21 09:08:38 CET 2018


On 21.01.2018 01:39, DaemoniumAer wrote:
> Could someone please have a look at  this
> <https://stackoverflow.com/questions/48336952/fail-to-compile-source-with-jack-api> 
> ? I have been trying to solve this for far too long hoping I could figure it
> out by myself. I really want to start using JACK in my project though and I
> am getting kind of frustrated. Maybe someone could tell me what they have
> running on their machine? Distro/Compiler/Compiling Arguments/Any other
> Programs/...
> Every help is appreciated :) If you feel like something doesn't add up, I am
> happy to retry everything.

You seem to be wanting to write a JACK client, right?

The "jack/control.h" header is meant for implementing JACK server
control utilities. Those are specific to the JACK implementation you're
running on your system and thus differ between JACK1 and JACK2.

That header is not menat to be included by JACK client applications.

So, don't include that header and don't use any functions in it for
writing a JACK client. Include the "jack/jack.h" header instead, that's
the one with all the API calls for JACK clients.

Best start off with the simple_client [1] to get a minmal working example.

[1]
https://github.com/jackaudio/example-clients/blob/7fa089095c81e81dacd2554ae3184acc7f2d58ed/simple_client.c



More information about the Jackaudio mailing list