<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[What to look out for when building under macOS 14.6 14.6 - [x186_64] parallel to QT 6 in Homebrew]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">thanks to the good and concise instructions and the corresponding packages provided by Jonas, I have now been able to build the current version of the Strawberry Player myself. Here is a note from me to those who want to try to build it themselves, but also install it with Homebrew Formulae and Cask. Please check after the step  "<strong>Set environment variables</strong>" in the result output in the terminal whether the following line</p>
<pre><code>-- Found macdeployqt: /usr/local/opt/qt/bin/macdeployqt
</code></pre>
<p dir="auto">can be found. This indicates that an older version of QT6 is installed and when building this tool instead of the tool from<br />
<strong>/opt/strawberry_macos_x86_64_release/bin/macdeployqt</strong> is used.</p>
<p dir="auto">If this or something similar occurs, open the file <strong>/build/CMakeCache.txt</strong> in the build folder in an editor and search for the expression</p>
<pre><code>MACDEPLOYQT_EXECUTABLE:FILEPATH=
</code></pre>
<p dir="auto">If it says, as in my example</p>
<pre><code>MACDEPLOYQT_EXECUTABLE:FILEPATH=/usr/local/opt/qt/bin/macdeployqt
</code></pre>
<p dir="auto">this must be changed to</p>
<pre><code>MACDEPLOYQT_EXECUTABLE:FILEPATH=/opt/strawberry_macos_x86_64_release/bin/macdeployqt
</code></pre>
<p dir="auto">must be corrected.</p>
<p dir="auto">For the ARM architecture, i.e. from M1 upwards, the paths for QT in Homebrew are slightly different.</p>
<p dir="auto">And one more thing:<br />
If, as described above, after the step  "<strong>Set environment variables</strong>" the following line is also displayed:</p>
<pre><code>-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) 
</code></pre>
<p dir="auto">This refers to Google Testing and Mocking Framework and can be easily installed via Homebrew<br />
$ brew install googletest<br />
see also <a href="https://formulae.brew.sh/formula/googletest" rel="nofollow ugc">https://formulae.brew.sh/formula/googletest</a></p>
<p dir="auto">But I don't know if this is relevant here. Jonas will have to comment on this.</p>
<p dir="auto">The following output of the lines is also correct:</p>
<pre><code>Building strawberry version: 1.1.1-76-gefd42bc6, Qt version 6.7.2

The following components will be built:
   Devices: Audio CD support
   Devices: MTP support
   Devices: iPod classic support
   EBU R 128 loudness normalisation
   Engine: GStreamer backend
   Global shortcuts
   Moodbar
   MusicBrainz integration
   Song fingerprinting and tracking
   Streaming: Qobuz
   Streaming: Spotify
   Streaming: Subsonic
   Streaming: Tidal
   Translations

The following components WILL NOT be built:
   ALSA integration (missing alsa)
   D-Bus support (disabled in CMake config)
   Devices: GIO device backend (Unix support) (missing Unix or Windows)
   Devices: GIO device backend (missing Unix or Windows)
   Devices: UDisks2 backend (missing D-Bus, Qt D-Bus)
   Engine: VLC backend (missing libvlc)
   PulseAudio integration (missing libpulse)
   X11 global shortcuts (missing X11, QX11Application, X11Extras or qpa/qplatformnativeinterface.h header)
</code></pre>
<p dir="auto">Please do not be confused by the components that cannot be installed.</p>
<p dir="auto">Finally, and for the sake of completeness, the error messages that occurred during my installation runs and which made me persistently search for the error:</p>
<pre><code>Error message after make deploycheck:
make[3]: *** [CMakeFiles/deploy] Error 1
make[2]: *** [CMakeFiles/deploy.dir/all] Error 2
make[1]: *** [CMakeFiles/deploy.dir/rule] Error 2
make: *** [deploy] Error 2

Error message after starting strawberry.app in the terminal:
DEBUG unknown Could not load the Qt platform plugin ‘cocoa’ in ‘’ even though it was found. 
ERROR unknown This application failed to start because no Qt platform plugin could be initialised. Reinstalling the application may fix this problem. 
ERROR unknown                           
ERROR unknown Available platform plugins are: cocoa. 

Error message after export QT_DEBUG_PLUGINS=1
Mac-Pro:build user$ /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/MacOS/strawberry

Mac-Pro:build user$ /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/MacOS/strawberry
15:10:11.791 INFO  main:181                         Strawberry 1.1.1-76-gefd42bc6 Qt "6.7.2"
15:10:11.791 INFO  main:182                         "macOS 14.6 14.6 - (darwin 23.6.0) [x86_64]"
15:10:11.791 DEBUG unknown                          checking directory path "/Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms" ... 
15:10:11.791 DEBUG unknown                          looking at "/Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib" 
15:10:11.792 DEBUG unknown                          Found metadata in lib /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib, metadata= 
15:10:11.792 DEBUG unknown                          { 
15:10:11.792 DEBUG unknown                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", 
15:10:11.792 DEBUG unknown                              "MetaData": { 
15:10:11.792 DEBUG unknown                                  "Keys": [ 
15:10:11.792 DEBUG unknown                                      "cocoa" 
15:10:11.792 DEBUG unknown                                  ] 
15:10:11.792 DEBUG unknown                              }, 
15:10:11.792 DEBUG unknown                              "archlevel": 2, 
15:10:11.792 DEBUG unknown                              "className": "QCocoaIntegrationPlugin", 
15:10:11.792 DEBUG unknown                              "debug": false, 
15:10:11.792 DEBUG unknown                              "version": 395008 
15:10:11.792 DEBUG unknown                          } 
15:10:11.792 DEBUG unknown                           
15:10:11.792 DEBUG unknown                           
15:10:11.792 DEBUG unknown                          Got keys from plugin meta data QList("cocoa") 
15:10:11.792 DEBUG unknown                          checking directory path "/Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/MacOS/platforms" ... 
15:10:11.796 DEBUG unknown                          "/Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib" cannot load: Cannot load library /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib: dlopen(/Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib, 0x0085): Symbol not found: __ZN28QBasicPlatformVulkanInstance12initInstanceEP15QVulkanInstanceRK5QListI10QByteArrayE 
15:10:11.796 DEBUG unknown                            Referenced from: &lt;B8E2693D-9121-3B77-BCC4-9C02650E263A&gt; /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib 
15:10:11.796 DEBUG unknown                            Expected in:     &lt;8D56D1F3-7DAD-36F4-90A3-DB85B5BAF348&gt; /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui 
15:10:11.796 DEBUG unknown                          QLibraryPrivate::loadPlugin failed on "/Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib" : "Cannot load library /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib: dlopen(/Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib, 0x0085): Symbol not found: __ZN28QBasicPlatformVulkanInstance12initInstanceEP15QVulkanInstanceRK5QListI10QByteArrayE\n  Referenced from: &lt;B8E2693D-9121-3B77-BCC4-9C02650E263A&gt; /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/PlugIns/platforms/libqcocoa.dylib\n  Expected in:     &lt;8D56D1F3-7DAD-36F4-90A3-DB85B5BAF348&gt; /Users/user/Bastelbude/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui" 
15:10:11.796 DEBUG unknown                          Could not load the Qt platform plugin "cocoa" in "" even though it was found. 
15:10:11.796 ERROR unknown                          This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 
15:10:11.796 ERROR unknown                           
15:10:11.796 ERROR unknown                          Available platform plugins are: cocoa. 
15:10:11.796 ERROR unknown                           
Abort trap: 6
</code></pre>
<p dir="auto">Installed versions of Strawberry and macOS<br />
Strawberry 1.1.1-76-gefd42bc6 Qt "6.7.2"<br />
"macOS 14.6 14.6 - (darwin 23.6.0) [x86_64]"</p>
<p dir="auto">Greetings,<br />
nfriese</p>
]]></description><link>https://forum.strawberrymusicplayer.org/topic/2340/what-to-look-out-for-when-building-under-macos-14-6-14-6-x186_64-parallel-to-qt-6-in-homebrew</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 16:53:52 GMT</lastBuildDate><atom:link href="https://forum.strawberrymusicplayer.org/topic/2340.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Aug 2024 17:09:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What to look out for when building under macOS 14.6 14.6 - [x186_64] parallel to QT 6 in Homebrew on Sat, 24 Aug 2024 19:05:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/1">@jonas</a><br />
Ok and thanks for the hint.<br />
However, it is irritating that the CMakeCache.txt file contains the following text in the preamble:</p>
<pre><code># This is the CMakeCache file.
# For build in directory: /Users/user/Bastelbude/strawberry/build
# It was generated by CMake: /opt/strawberry_macos_arm64_release/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
</code></pre>
<p dir="auto">(Note: The file now comes from the build for the ARM architecture - that's where I successfully performed my hack).</p>
<p dir="auto">By adding the line to the CMake command, you are referring to the “Configure build” step in <a href="https://wiki.strawberrymusicplayer.org/wiki/Build_macOS" rel="nofollow ugc">https://wiki.strawberrymusicplayer.org/wiki/Build_macOS</a>, where the expression can then be added. If this is correct, I will then adapt or revise my first post.</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/4770</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/4770</guid><dc:creator><![CDATA[nfriese]]></dc:creator><pubDate>Sat, 24 Aug 2024 19:05:49 GMT</pubDate></item><item><title><![CDATA[Reply to What to look out for when building under macOS 14.6 14.6 - [x186_64] parallel to QT 6 in Homebrew on Sat, 24 Aug 2024 18:34:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/2723">@nfriese</a><br />
Sorry, but this is wrong, you should never edit the CMake Cache file.<br />
You need to add <code>-DMACDEPLOYQT_EXECUTABLE="/opt/strawberry_macos_x86_64_release/bin/macdeployqt"</code> to the CMake command.</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/4769</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/4769</guid><dc:creator><![CDATA[jonas]]></dc:creator><pubDate>Sat, 24 Aug 2024 18:34:07 GMT</pubDate></item></channel></rss>