<?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[Cinema 4D 2027 SDK fails to build on macOS if the path contains spaces]]></title><description><![CDATA[<p dir="auto">The cmake build fails with the following error if the sdk is located in a folder that has spaces in the name:</p>
<pre><code>PhaseScriptExecution Generate generated/core.framework/prebuildEventStamp2 ... (in target 'core.framework')
  cp: .../Library/Application Support/MAXON/maxon.py: Not a directory
</code></pre>
<p dir="auto">The generated script (<code>build/core.framework.build/Release/Script-A6F7B869415D4714E2AE9A4C.sh</code>) contains a cp command where the source path isn't escaped, so cp interprets the path as multiple arguments.</p>
<p dir="auto">The issue is in <code>frameworks/core.framework/project/CMakeLists.txt:23-24</code> (and probably in other frameworks as well), where <code>${CMAKE_CURRENT_SOURCE_DIR}</code> goes in raw/unescaped. (Can not post the actual code block, because the security filter blocks it.)</p>
]]></description><link>http://developers.maxon.net/forum/topic/16449/cinema-4d-2027-sdk-fails-to-build-on-macos-if-the-path-contains-spaces</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 08:49:20 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/16449.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Oct 2026 12:34:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cinema 4D 2027 SDK fails to build on macOS if the path contains spaces on Thu, 15 Oct 2026 15:23:11 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/peter_horvath">@<bdi>peter_horvath</bdi></a>,</p>
<p dir="auto">Thank you for reporting this. I have never encountered this because I am habitually never use any white space in folders when it comes to coding but I understand this can be annoying. As far as I understand your posting correctly, you are placing the Cinema C++ SDK in the designated library folder of MacOS, more concretely its 'Application Support' sub folder, and the white space in that folder name is then causing issues with the prebuild event scripts?</p>
<p dir="auto">I would have to check if we can fix this, as this is a part of the build system (the frameworks) that is not owned by SDK. And just for clarity, you propose to change the relevant files to something like this:</p>
<pre><code class="language-json"># Section: macOS
set(exclude_from_build.MACOS /win)
set(prebuild_event.MACOS.DEBUG "mkdir -p ~/Library/Application\\ Support/MAXON ; cp -f \"${CMAKE_CURRENT_SOURCE_DIR}/typeviewer/xcode/maxon.py\" ~/Library/Application\\ Support/MAXON/maxon.py ; perl -w \"${CMAKE_CURRENT_SOURCE_DIR}/typeviewer/xcode/copytypeviewer.pl\" maxon.py ~/Library/Application\\ Support/MAXON/maxon.py")
set(prebuild_event.MACOS.RELEASE "mkdir -p ~/Library/Application\\ Support/MAXON ; cp -f \"${CMAKE_CURRENT_SOURCE_DIR}/typeviewer/xcode/maxon.py\" ~/Library/Application\\ Support/MAXON/maxon.py ; perl -w \"${CMAKE_CURRENT_SOURCE_DIR}/typeviewer/xcode/copytypeviewer.pl\" maxon.py ~/Library/Application\\ Support/MAXON/maxon.py")

# Section: iOS
set(exclude_from_build.IOS /win)
set(prebuild_event.IOS.DEBUG "mkdir -p ~/Library/Application\\ Support/MAXON ; cp -f \"${CMAKE_CURRENT_SOURCE_DIR}/typeviewer/xcode/maxon.py\" ~/Library/Application\\ Support/MAXON/maxon.py ; perl -w \"${CMAKE_CURRENT_SOURCE_DIR}/typeviewer/xcode/copytypeviewer.pl\" maxon.py ~/Library/Application\\ Support/MAXON/maxon.py")
set(prebuild_event.IOS.RELEASE "mkdir -p ~/Library/Application\\ Support/MAXON ; cp -f \"${CMAKE_CURRENT_SOURCE_DIR}/typeviewer/xcode/maxon.py\" ~/Library/Application\\ Support/MAXON/maxon.py ; perl -w \"${CMAKE_CURRENT_SOURCE_DIR}/typeviewer/xcode/copytypeviewer.pl\" maxon.py ~/Library/Application\\ Support/MAXON/maxon.py")
</code></pre>
<p dir="auto">I.e., you want <code>CMAKE_CURRENT_SOURCE_DIR</code> compound paths to be quote escaped. If we will fix this, this will happen in an upcoming release and not a hotfix. For now you must either place the SDK in a path without whitespaces (or fix the CMake files yourself).</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/77369</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77369</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Thu, 15 Oct 2026 15:23:11 GMT</pubDate></item></channel></rss>