Jack Audio not detected under High Sierra #79261

Open
opened 2020-07-25 13:30:56 +02:00 by Domingo Riesco · 21 comments

System Information
Operating system: OSX High Sierra 10.13.6
Graphics card: Intel HD Graphics 4000

Blender Version
Broken: (2.83.3)
Worked: (unknown)

Short description of error

Blender is not showing Jack in the audio devices list.
Typing bpy.app.build_options.Jack in the python console drops False.
Jack server is properly installed prior to Blender and working fine with other applications.

Exact steps for others to reproduce the error

Under OSX High Sierra 10.13.6 install the latest version of Jack Audio from the official site (JackOSX 0.92_b3). Then install Blender 2.83.3. Although Jack is installed and properly working in other applications, Blender won't detect it and won't show it in the audio devices' list.

When building 2.90 from the source I detected the error. The file jack.h and other jack related files weren't found in the location requested by Blender's installer, because the installer was requesting them in a .../jack/ subfolder. Duplicating Jack files to a .../jack/ subfolder solved the problem. Blender built then correctly and Jack appeared in the devices' list afterwards. Timeline sync using Jack Transport is working as well.

In concrete, I duplicated the files in /Library/Frameworks/Jackmp.framework/Versions/A/Headers/ to the created subfolder /Library/Frameworks/Jackmp.framework/Versions/A/Headers**/jack/** to bypass the error. But the former is the folder where Jack installs by default under High Sierra.

**System Information** Operating system: OSX High Sierra 10.13.6 Graphics card: Intel HD Graphics 4000 **Blender Version** Broken: (2.83.3) Worked: (unknown) **Short description of error** Blender is not showing Jack in the audio devices list. Typing bpy.app.build_options.Jack in the python console drops False. Jack server is properly installed prior to Blender and working fine with other applications. **Exact steps for others to reproduce the error** Under OSX High Sierra 10.13.6 install the latest version of Jack Audio from the official site (JackOSX 0.92_b3). Then install Blender 2.83.3. Although Jack is installed and properly working in other applications, Blender won't detect it and won't show it in the audio devices' list. When building 2.90 from the source I detected the error. The file jack.h and other jack related files weren't found in the location requested by Blender's installer, because the installer was requesting them in a .../jack/ subfolder. Duplicating Jack files to a .../jack/ subfolder solved the problem. Blender built then correctly and Jack appeared in the devices' list afterwards. Timeline sync using Jack Transport is working as well. In concrete, I duplicated the files in /Library/Frameworks/Jackmp.framework/Versions/A/Headers/ to the created subfolder /Library/Frameworks/Jackmp.framework/Versions/A/Headers**/jack/** to bypass the error. But the former is the folder where Jack installs by default under High Sierra.
Author

Added subscriber: @domingo

Added subscriber: @domingo
Member

Added subscribers: @Sergey, @neXyon, @lichtwerk

Added subscribers: @Sergey, @neXyon, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

@Sergey, @neXyon : are you aware of such an issue on MAC?

@Sergey, @neXyon : are you aware of such an issue on MAC?
Member

Removed subscriber: @Sergey

Removed subscriber: @Sergey
Member

Added subscriber: @sebbas

Added subscriber: @sebbas
Member

CC @sebbas

CC @sebbas
Member

@lichtwerk I don't have a Mac, so I cannot really be aware of the issue :-/

If the jack headers are indeed not in a jack subfolder on MacOS, that is an issue. I can at least confirm that on Linux and Windows the jack headers are always in a folder <somewhere>/include/jack/ and the documentation always refers to the headers with their jack/ folder. That the jack folder itself is not to be added to the include directories of a project is also confirmed by the fact, that the pkg-config for jack does not output the cflags in that way. If the official MacOS jack libraries are really shipped without the jack folder, that should be reported upstream; otherwise where did you get the library from?

@lichtwerk I don't have a Mac, so I cannot really be aware of the issue :-/ If the jack headers are indeed not in a jack subfolder on MacOS, that is an issue. I can at least confirm that on Linux and Windows the jack headers are always in a folder `<somewhere>/include/jack/` and the documentation always refers to the headers with their `jack/` folder. That the jack folder itself is not to be added to the include directories of a project is also confirmed by the fact, that the pkg-config for jack does not output the cflags in that way. If the official MacOS jack libraries are really shipped without the jack folder, that should be reported upstream; otherwise where did you get the library from?

This issue was referenced by 8f2ebcf93f

This issue was referenced by 8f2ebcf93f98e1cb1c6fa51ba7e4ec6fd555e39c
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

There was an issue in macOS cmake library/framework finding code which got fixed in 8f2ebcf93f.
Please retry on a fresh build after updating the code.

There was an issue in macOS cmake library/framework finding code which got fixed in 8f2ebcf93f. Please retry on a fresh build after updating the code.

Added subscriber: @sxpxr

Added subscriber: @sxpxr

Also having this issue and copying over files into a /jack subfolder does not fix this
Jack is not important to me and it’s stopping the whole build…

Also having this issue and copying over files into a /jack subfolder does not fix this Jack is not important to me and it’s stopping the whole build…
Author

Any chances that Blender MacOS will get updated to allow building it with the latest Jack 1.9?

Blender builds successfully when locating jack.h and related files in two consecutive folders /jack and /jack/jack of the previous version 0.9. More specifically copying the files in /Library/Frameworks/Jackmp.framework/Versions/A/Headers/ to subfolders /Library/Frameworks/Jackmp.framework/Versions/A/Headers/jack and /Library/Frameworks/Jackmp.framework/Versions/A/Headers/jack/jack. After this the jack framework is detected and WITH_JACK can be made effective.

But the new Jack version for MacOS doesn't work, the service jackd clashes with itself (Blender clashes with another client running). Below a copy of the error the system console gives. If there is a workaround please let me know! I tried disabling the prelaunch of jackd agent but that comes only one step closer.

Jack a is a very powerful tool for me, it allows syncing the playhead transport with audio editing softwares and the new 1.9 version is a very neat update. Also useful for working with multiple sound cards or serving multiplatform audio workflows.

– Tests made from Catalina 10.15.7 and Blender 3.5.

Screenshot 2022-11-07 at 14.53.47.png

Any chances that Blender MacOS will get updated to allow building it with the latest Jack 1.9? Blender builds successfully when locating jack.h and related files in two consecutive folders */jack* and */jack/jack* of the previous version 0.9. More specifically copying the files in */Library/Frameworks/Jackmp.framework/Versions/A/Headers*/ to subfolders */Library/Frameworks/Jackmp.framework/Versions/A/Headers/jack* and */Library/Frameworks/Jackmp.framework/Versions/A/Headers/jack/jack*. After this the jack framework is detected and WITH_JACK can be made effective. But the new Jack version for MacOS doesn't work, the service jackd clashes with itself (Blender clashes with another client running). Below a copy of the error the system console gives. If there is a workaround please let me know! I tried disabling the prelaunch of jackd agent but that comes only one step closer. Jack a is a very powerful tool for me, it allows syncing the playhead transport with audio editing softwares and the new 1.9 version is a very neat update. Also useful for working with multiple sound cards or serving multiplatform audio workflows. – Tests made from Catalina 10.15.7 and Blender 3.5. ![Screenshot 2022-11-07 at 14.53.47.png](https://archive.blender.org/developer/F13865299/Screenshot_2022-11-07_at_14.53.47.png)
Member

Added subscribers: @ArtoKitula, @brecht

Added subscribers: @ArtoKitula, @brecht
Member

This is weird. Again, I cannot test MacOS, since I don't have a Mac. At least here on Linux everything works fine with any 1.9.x version of jack (the jack2 series of releases that have version numbers 1.9.x have been out for several years already).

Maybe one of the MacOS platform maintainers (@ArtoKitula @brecht @sebbas) could look into this?

This is weird. Again, I cannot test MacOS, since I don't have a Mac. At least here on Linux everything works fine with any 1.9.x version of jack (the jack2 series of releases that have version numbers 1.9.x have been out for several years already). Maybe one of the MacOS platform maintainers (@ArtoKitula @brecht @sebbas) could look into this?

Removed subscribers: @ArtoKitula, @sebbas

Removed subscribers: @ArtoKitula, @sebbas

Jack has not been enabled in macOS builds for a long time, as the framework is not installed on the buildbot. I can look into enabling it somehow.

However it's not clear to me what to link against exactly to make this work for end users. When downloading version 1.9.21 from https://jackaudio.org/downloads/ or installing from homebrew, I don't get any framework installed in /Library/Frameworks/Jackmp.framework. There are headers and libraries in /usr/local and /opt/homebrew instead.

@domingo, how did you install Jack? Does 1.9 no longer include the framework and you found a leftover from an older Jack version? Or did I miss something?

Jack has not been enabled in macOS builds for a long time, as the framework is not installed on the buildbot. I can look into enabling it somehow. However it's not clear to me what to link against exactly to make this work for end users. When downloading version 1.9.21 from https://jackaudio.org/downloads/ or installing from homebrew, I don't get any framework installed in `/Library/Frameworks/Jackmp.framework`. There are headers and libraries in `/usr/local` and `/opt/homebrew` instead. @domingo, how did you install Jack? Does 1.9 no longer include the framework and you found a leftover from an older Jack version? Or did I miss something?
Author

@brecht as far as I can remember (I've been migrating to linux lately honestly) the steps I followed were:

  • Install the old JackOSX 0.9 from https://github.com/jackaudio/jackaudio.github.com/releases
  • Install the new Jack Audio 1.9, I think its source files (*.h) came to Brew's Cellar folder.
  • Replace the old 0.9 source files for the new 1.9 ones, particularly those in /Library/Frameworks/Jackmp.framework. Important was to create copies of the files in .../Jackmp.framework/jack and Jackmp.framework/jack/jack.
@brecht as far as I can remember (I've been migrating to linux lately honestly) the steps I followed were: - Install the old JackOSX 0.9 from https://github.com/jackaudio/jackaudio.github.com/releases - Install the new Jack Audio 1.9, I think its source files (*.h) came to Brew's Cellar folder. - Replace the old 0.9 source files for the new 1.9 ones, particularly those in /Library/Frameworks/Jackmp.framework. Important was to create copies of the files in .../Jackmp.framework/jack and Jackmp.framework/jack/jack.

Thanks for the details.

@neXyon, I guess we can target jack2 only on macOS, and not support the old jackOSX?

For that we need to switch to WITH_JACK_DYNLOAD. And audaspace needs changes in plugins/jack/JackLibrary.cpp to find the library, the same 4 paths as here could be tested:
https://github.com/x42/weakjack/blob/master/weak_libjack.c#L108

Thanks for the details. @neXyon, I guess we can target jack2 only on macOS, and not support the old jackOSX? For that we need to switch to `WITH_JACK_DYNLOAD`. And audaspace needs changes in `plugins/jack/JackLibrary.cpp` to find the library, the same 4 paths as here could be tested: https://github.com/x42/weakjack/blob/master/weak_libjack.c#L108
Member

In #79261#1445876, @brecht wrote:
Thanks for the details.

@neXyon, I guess we can target jack2 only on macOS, and not support the old jackOSX?

For that we need to switch to WITH_JACK_DYNLOAD. And audaspace needs changes in plugins/jack/JackLibrary.cpp to find the library, the same 4 paths as here could be tested:
https://github.com/x42/weakjack/blob/master/weak_libjack.c#L108

Sure, anything that works is fine for me. Actually, if we use dynload, I think it would even work with the old jack since afaik they are API compatible.

Regarding installation - all I did at the time I had a Mac available was brew install jack, but not sure if that still works, since that was at least three years ago.

> In #79261#1445876, @brecht wrote: > Thanks for the details. > > @neXyon, I guess we can target jack2 only on macOS, and not support the old jackOSX? > > For that we need to switch to `WITH_JACK_DYNLOAD`. And audaspace needs changes in `plugins/jack/JackLibrary.cpp` to find the library, the same 4 paths as here could be tested: > https://github.com/x42/weakjack/blob/master/weak_libjack.c#L108 Sure, anything that works is fine for me. Actually, if we use dynload, I think it would even work with the old jack since afaik they are API compatible. Regarding installation - all I did at the time I had a Mac available was `brew install jack`, but not sure if that still works, since that was at least three years ago.
Philipp Oeser added the
Interest
Core
label 2023-02-10 11:09:29 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#79261
No description provided.