Hello all,
I’m able to build and link on the Mac now (after starting from scratch without homebrew), but now the system can’t find the GTK themes.
The same happens for Ardour or Mixbus builds.
The pre-compiled Ardour demo works fine, as does commercial Mixbus.
I build the gtk-engines-2.21.0 library with several themes explicitly enabled, i.e.,
./configure --enable-clearlooks --enable-crux --enable-industrial --enable-animation
and it appears to install the files in /usr/local/lib/gtk-2.0/2.10.0/engines
I remove all the temp conf files from /Users/stp/Library/Preferences/Ardour8, etc.
I’m running on a MacStudio M1 Max with Sonoma 14.2.1
This never used to happen…
Any tips?
Many thanks in advance, and Happy New Year!
Stephen in Ojai/CA
Here’s what I do to build
configure & build
./waf configure -vk --with-backends=coreaudio --no-carbon --no-lrdf --backtrace --keepflags --arch=arm64 --arm64 --boost-include=/usr/local/include --cxx1 --debug-symbols
./waf clean
./waf build -k --with-backends=coreaudio --no-carbon --no-lrdf --backtrace --keepflags --arch=arm64 --arm64 --boost-include=/usr/local/include --debug-symbols
./waf i18n
fix install locations (not sure why this is necessary, but it fails to find several libs if I skip it)
export A_BINARY=/Users/stp/Code/Audio/Ardour8/ardour/build/gtk2_ardour/ardour-8.2.12
install_name_tool -add_rpath /usr/local $A_BINARY
install_name_tool -add_rpath /usr/local/lib $A_BINARY
install_name_tool -change lib/librubberband.so /usr/local/lib/librubberband.so $A_BINARY
install_name_tool -change libvamp-sdk.so /usr/local/lib/libvamp-sdk.so $A_BINARY
install_name_tool -change libvamp-hostsdk.so /usr/local/lib/libvamp-hostsdk.so $A_BINARY
install_name_tool -change libc++.1.dylib /usr/local/lib/libc++.1.dylib $A_BINARY
install_name_tool -change libobjc.A.dylib /usr/local/lib/libobjc.A.dylib $A_BINARY
install
sudo ./waf install
RUN IT
ardour8 --lldb # or call the local version as build/gtk2_ardour/ardour8 --lldb
WARNING: Could not check your glib-2.0 for mutex locking atomic operations.
(lldb) target create “/usr/local/lib/ardour8/ardour-8.2.12”
Current executable set to ‘/usr/local/lib/ardour8/ardour-8.2.12’ (arm64).
(lldb) r
Process 17379 launched: ‘/usr/local/lib/ardour8/ardour-8.2.12’ (arm64)
Disabling MacOS AppNap
bind txt domain [gtk2_ardour8] to /usr/local/share/ardour8/locale
Ardour8.2.12 (built using 8.2-12-g128278c75f and GCC version Apple LLVM 15.0.0 (clang-1500.1.0.2.5))
Ardour: [INFO]: Your system is configured to limit Ardour to 10240 open files
Ardour: [INFO]: Loading system configuration file /usr/local/etc/ardour8/system_config
Ardour: [INFO]: Apple VecLib H/W specific optimizations in use
Ardour: [INFO]: Set Clip Library directory to ‘/Users/stp/Library/Audio/Sounds/Clips’
Ardour: [INFO]: Loading plugin meta data file /usr/local/share/ardour8/plugin_metadata/plugin_tags
Ardour: [INFO]: Loading default ui configuration file /usr/local/etc/ardour8/default_ui_config
Ardour: [INFO]: Loading 457 MIDI patches from /usr/local/share/ardour8/patchfiles
2024-01-03 17:29:02.892619-0800 ardour-8.2.12[17379:22078680] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
Ardour: [INFO]: Loading color file /usr/local/share/ardour8/themes/dark-ardour.colors
Ardour: [INFO]: Loading ui configuration file /usr/local/etc/ardour8/clearlooks.rc
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:03.047: Unable to locate theme engine in module_path: “clearlooks”,
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:03.047: Unable to locate theme engine in module_path: “clearlooks”,
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:03.049: Unable to locate theme engine in module_path: “clearlooks”,
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:03.049: Unable to locate theme engine in module_path: “clearlooks”,
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:03.052: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:03.053: Error loading theme icon ‘dialog-information’ for stock: Failed to load icon
[lots of these…]
(ardour-8.2.12:17379): Gtk-CRITICAL **: 17:29:11.377: render_fallback_image: assertion ‘pixbuf != NULL’ failed
(ardour-8.2.12:17379): GLib-GObject-CRITICAL **: 17:29:11.377: g_object_ref: assertion ‘G_IS_OBJECT (object)’ failed
(ardour-8.2.12:17379): GLib-GObject-CRITICAL **: 17:29:11.377: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
start clocking
Ardour: [INFO]: Loading bindings from /usr/local/etc/ardour8/ardour.keys
Loading ui configuration file /usr/local/etc/ardour8/clearlooks.rc
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:11.481: Unable to locate theme engine in module_path: “clearlooks”,
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:11.482: Unable to locate theme engine in module_path: “clearlooks”,
2024-01-03 17:29:11.522185-0800 ardour-8.2.12[17379:22078680] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000027ab0c0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
CoreAudio Device: #0 (id:116) ‘Acer T272HUL’ in:0 out:2
CoreAudio Device: #1 (id:92) ‘Display Audio’ in:1 out:2
CoreAudio Device: #2 (id:131) ‘Realtek USB2.0 MIC’ in:2 out:0
CoreAudio Device: #3 (id:135) ‘ADI-2 DAC (52052584)’ in:2 out:2
CoreAudio Device: #4 (id:79) ‘Mac Studio Speakers’ in:0 out:2
CoreAudio Device: #5 (id:86) ‘MMAudio Device’ in:2 out:2
CoreAudio Device: #6 (id:101) ‘MMAudio Device (UI Sounds)’ in:2 out:2
CoreAudio Device: #7 (id:112) ‘OrionStudio_III’ in:32 out:32
CoreAudio Device: #8 (id:105) ‘ZoomAudioDevice’ in:2 out:2
2024-01-03 17:29:11.574292-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:11.593: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:11.593: Error loading theme icon ‘edit-find’ for stock: Failed to load icon
(ardour-8.2.12:17379): Gtk-CRITICAL **: 17:29:11.593: render_fallback_image: assertion ‘pixbuf != NULL’ failed
(ardour-8.2.12:17379): GLib-GObject-CRITICAL **: 17:29:11.593: g_object_ref: assertion ‘G_IS_OBJECT (object)’ failed
[…]
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:11.680: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:11.680: Could not find the icon ‘stock_unknown’. The ‘hicolor’ theme
was not found either, perhaps you need to install it.
You can get a copy from:
Index of /releases
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:11.681: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
[…]
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:11.683: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
pingback: No Error
2024-01-03 17:29:17.844101-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-01-03 17:29:17.844342-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-01-03 17:29:17.844428-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:17.862: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:17.862: Error loading theme icon ‘edit-find’ for stock: Failed to load icon
(ardour-8.2.12:17379): Gtk-CRITICAL **: 17:29:17.863: render_fallback_image: assertion ‘pixbuf != NULL’ failed
(ardour-8.2.12:17379): GLib-GObject-CRITICAL **: 17:29:17.863: g_object_ref: assertion ‘G_IS_OBJECT (object)’ failed
[…]
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:18.011: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:18.011: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:18.011: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:18.016: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
2024-01-03 17:29:20.837643-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-01-03 17:29:20.837920-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-01-03 17:29:20.838016-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:20.864: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
Sample Rate:44100.00 Format ID:mcpl
Format Flags:29
Bytes per Packet:4
Frames per Packet:1
Bytes per Frame:4
Channels per Frame:2
Bits per Channel:32
Sample Rate:44100.00 Format ID:mcpl
Format Flags:29
Bytes per Packet:4
Frames per Packet:1
Bytes per Frame:4
Channels per Frame:2
Bits per Channel:32
STATE: 0
Output Latency systemic+safetyoffset = 68 + 69
^ Stream 0 latency: 136
MIDI IN DEVICE: MIDIPLUS TBOX 2x2 Midi In 1
MIDI IN DEVICE: Faders
MIDI IN DEVICE: IAC Driver Bus 1
MIDI IN DEVICE: ADI-2 DAC (52052584) Port 1
MIDI OUT DEVICE: Nord Stage 3
MIDI OUT DEVICE: MIDIPLUS TBOX 2x2 Midi Out 2
MIDI OUT DEVICE: IAC Driver Bus 1
MIDI OUT DEVICE: ADI-2 DAC (52052584) Port 1
register MIDI Input: system:midi_capture_1103053145
register MIDI Input: system:midi_capture_2272221936
register MIDI Input: system:midi_capture_1762362652
register MIDI Input: system:midi_capture_1624254133
register MIDI OUT: system:midi_playback_361657725
register MIDI OUT: system:midi_playback_458128096
register MIDI OUT: system:midi_playback_2980103469
register MIDI OUT: system:midi_playback_712833156
Output Latency systemic+safetyoffset = 68 + 69
^ Stream 0 latency: 136
COREAUDIO LATENCY: i:0, o:137
2024-01-03 17:29:36.281502-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-01-03 17:29:36.281725-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-01-03 17:29:36.281839-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
Mach Thread(0x170977000) set timeshare: 0 OK: 1
Mach Thread(0x170977000) set precedence: 63 OK: 1
Mach Thread(0x170977000) get: period=0 comp=120000 constraint=240000 preemt=1 OK: 1
period_ns=23219954.648526 period_clk=557278.911565 timebase.num=125 timebase_den=3 ticks_per_ns=0.024000
Mach Thread(0x170977000) request: period=557278 comp=501551 constraint=529414 preemt=1
Mach Thread(0x170977000) set: period=557278 comp=501551 constraint=529414 preemt=1 OK: 1
2024-01-03 17:29:36.832798-0800 ardour-8.2.12[17379:22078680] [carc] CAReportingClient.mm:532 Attempted to remove a reporter not created by this client { careporter_id=74642236637186 }
2024-01-03 17:29:37.386875-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-01-03 17:29:37.386962-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-01-03 17:29:37.386993-0800 ardour-8.2.12[17379:22078680] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzWindow 0x15a797f90 which returned NO from -[NSWindow canBecomeKeyWindow].
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:37.405: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:37.406: Error loading theme icon ‘edit-find’ for stock: Failed to load icon
(ardour-8.2.12:17379): Gtk-CRITICAL **: 17:29:37.406: render_fallback_image: assertion ‘pixbuf != NULL’ failed
(ardour-8.2.12:17379): GLib-GObject-CRITICAL **: 17:29:37.406: g_object_ref: assertion ‘G_IS_OBJECT (object)’ failed
[…]
(ardour-8.2.12:17379): GLib-GObject-CRITICAL **: 17:29:37.569: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:37.570: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
Set cursor set to default
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:38.452: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): Gtk-WARNING **: 17:29:38.452: Error loading theme icon ‘edit-find’ for stock: Failed to load icon
(ardour-8.2.12:17379): Gtk-CRITICAL **: 17:29:38.452: render_fallback_image: assertion ‘pixbuf != NULL’ failed
[…]
(ardour-8.2.12:17379): Gtk-CRITICAL **: 17:29:38.623: render_fallback_image: assertion ‘pixbuf != NULL’ failed
(ardour-8.2.12:17379): GLib-GObject-CRITICAL **: 17:29:38.623: g_object_ref: assertion ‘G_IS_OBJECT (object)’ failed
start clocking
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:38.727: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
[…]
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:38.755: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:38.755: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
(ardour-8.2.12:17379): GLib-GIO-CRITICAL **: 17:29:38.755: g_loadable_icon_load: assertion ‘G_IS_LOADABLE_ICON (icon)’ failed
Mach Thread(0x1753d3000) set timeshare: 0 OK: 1
Mach Thread(0x1753d3000) set precedence: 62 OK: 1
Mach Thread(0x1753d3000) get: period=0 comp=120000 constraint=240000 preemt=1 OK: 1
Mach Thread(0x1754eb000) set timeshare: 0 OK: 1
period_ns=23219954.648526 period_clk=557278.911565 timebase.num=125 timebase_den=3 ticks_per_ns=0.024000
[…]
period_ns=23219954.648526 period_clk=557278.911565 timebase.num=125 timebase_den=3 ticks_per_ns=0.024000
Mach Thread(0x17571b000) request: period=557278 comp=501551 constraint=529414 preemt=1
Mach Thread(0x17571b000) set: period=557278 comp=501551 constraint=529414 preemt=1 OK: 1
Mach Thread(0x17568f000) set: period=557278 comp=501551 constraint=529414 preemt=1 OK: 1
Process 17379 stopped
- thread #1, queue = ‘com.apple.main-thread’, stop reason = EXC_BAD_ACCESS (code=1, address=0x48)
frame #0: 0x00000001069f67a0 libcairo.2.dylib_cairo_surface_release_source_image + 112 libcairo.2.dylib
:
→ 0x1069f67a0 <+112>: ldr x8, [x8, #0x48]
0x1069f67a4 <+116>: subs x8, x8, #0x0
0x1069f67a8 <+120>: cset w8, eq
0x1069f67ac <+124>: tbnz w8, #0x0, 0x1069f67d4 ; <+164>
Target 0: (ardour-8.2.12) stopped.
(lldb) thread backtrace - thread #1, queue = ‘com.apple.main-thread’, stop reason = EXC_BAD_ACCESS (code=1, address=0x48)
- frame #0: 0x00000001069f67a0 libcairo.2.dylib
_cairo_surface_release_source_image + 112 frame #1: 0x0000000106a48d1c libcairo.2.dylib
DataProviderReleaseCallback + 60
frame #2: 0x000000018cd60b34 CoreGraphicsdata_release_info + 40 frame #3: 0x000000018cd22044 CoreGraphics
data_provider_finalize + 64
frame #4: 0x000000018ccf0b4c CoreGraphicsdata_provider_retain_count + 96 frame #5: 0x00000001872f5fa0 CoreFoundation
_CFRelease + 1324
frame #6: 0x000000018cd43d7c CoreGraphicsimage_finalize + 100 frame #7: 0x00000001872f5b98 CoreFoundation
_CFRelease + 292
frame #8: 0x000000018cd7fc94 CoreGraphicsCG::DisplayListResourceImage::~DisplayListResourceImage() + 56 frame #9: 0x000000018cd7fc44 CoreGraphics
CG::DisplayListResourceImage::~DisplayListResourceImage() + 16
frame #10: 0x000000018cf8d964 CoreGraphicsstd::__1::__shared_weak_count::__release_shared[abi:v160006]() + 84 frame #11: 0x000000018d16343c CoreGraphics
std::__1::__tree<std::__1::shared_ptrCG::DisplayListResourceImage, CG::CompareResourceImage, std::__1::allocator<std::__1::shared_ptrCG::DisplayListResourceImage>>::destroy(std::__1::__tree_node<std::__1::shared_ptrCG::DisplayListResourceImage, void*>*) + 60
frame #12: 0x000000018cd7fb64 CoreGraphicsCG::DisplayList::~DisplayList() + 308 frame #13: 0x00000001872f5b98 CoreFoundation
_CFRelease + 292
frame #14: 0x0000000186d835f8 libobjc.A.dylibobject_cxxDestructFromClass(objc_object*, objc_class*) + 116 frame #15: 0x0000000186d7ae7c libobjc.A.dylib
objc_destructInstance + 80
frame #16: 0x0000000186d7ae24 libobjc.A.dylib_objc_rootDealloc + 80 frame #17: 0x000000018b21173c AppKit
-[NSViewBackingStoreImage dealloc] + 44
frame #18: 0x000000018f2f3104 QuartzCoreCA::release_objects(X::List<void const*>*) + 32 frame #19: 0x000000018f2e50fc QuartzCore
CA::Transaction::commit() + 1256
frame #20: 0x000000018ab26ec8 AppKit__62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 272 frame #21: 0x000000018b4cc558 AppKit
___NSRunLoopObserverCreateWithHandler_block_invoke + 64
frame #22: 0x0000000187222df0 CoreFoundation__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 frame #23: 0x0000000187222cdc CoreFoundation
__CFRunLoopDoObservers + 532
frame #24: 0x000000018722230c CoreFoundation__CFRunLoopRun + 776 frame #25: 0x00000001872219ac CoreFoundation
CFRunLoopRunSpecific + 608
frame #26: 0x00000001917d0448 HIToolboxRunCurrentEventLoopInMode + 292 frame #27: 0x00000001917d00d8 HIToolbox
ReceiveNextEventCommon + 220
frame #28: 0x00000001917cffdc HIToolbox_BlockUntilNextEventMatchingListInModeWithFilter + 76 frame #29: 0x000000018a9fe8a4 AppKit
_DPSNextEvent + 660
frame #30: 0x000000018b1d8980 AppKit-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 frame #31: 0x00000001064ad990 libgdk-quartz-2.0.0.dylib
poll_func + 296
frame #32: 0x0000000106663c54 libglib-2.0.0.dylibg_main_context_poll + 120 frame #33: 0x0000000106661604 libglib-2.0.0.dylib
g_main_context_iterate + 460
frame #34: 0x000000010666141c libglib-2.0.0.dylibg_main_context_pending + 88 frame #35: 0x0000000106e8f088 libgtk-quartz-2.0.0.dylib
gtk_events_pending + 76
frame #36: 0x00000001000681a0 ardour-8.2.12`ARDOUR_UI::gui_idle_handler(this=0x0000000140110000) at ardour_ui.cc:2976:9
- frame #0: 0x00000001069f67a0 libcairo.2.dylib
[…]