Cemu icon indicating copy to clipboard operation
Cemu copied to clipboard

Add Apple Silicon build instructions

Open UltraHDR opened this issue 2 years ago • 3 comments

It builds now.

My cmake was bad and it was trying to link against arm64 libs. Terminal logs of how I resolved it

$ brew install boost   
Warning: boost 1.79.0_2 is already installed, it's just not linked.
To link this version, run:
  brew link boost
$ brew link boost
Linking /usr/local/Cellar/boost/1.79.0_2... 
Error: Could not symlink lib/cmake/Boost-1.79.0
/usr/local/lib/cmake is not writable.
$ sudo rm /usr/local/lib/cmake
$ brew link boost                                      
Linking /usr/local/Cellar/boost/1.79.0_2... 186 symlinks created.
$

To make it not crash I commented out this and it runs with controller support, good audio but graphical glitches. Saving is very slow.

diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
index fbc268c..65a4b2b 100644
--- a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
+++ b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
@@ -2230,7 +2230,7 @@ void VulkanRenderer::SubmitCommandBuffer(VkSemaphore* signalSemaphore, VkSemapho
 
        const VkResult result = vkQueueSubmit(m_graphicsQueue, 1, &submitInfo, m_cmd_buffer_fences[m_commandBufferIndex]);
        if (result != VK_SUCCESS)
-               UnrecoverableError(fmt::format("failed to submit command buffer. Error {}", result).c_str());
+//             UnrecoverableError(fmt::format("failed to submit command buffer. Error {}", result).c_str());
        m_numSubmittedCmdBuffers++;
 
        // check if any previously submitted command buffers have finished execution

image

image

image

image

image

UltraHDR avatar Sep 20 '22 20:09 UltraHDR

Thanks @Tachi107 for your feedback

UltraHDR avatar Sep 24 '22 10:09 UltraHDR

I would add a suggestion to install rosetta if the user doesn't have it installed already.

softwareupdate --install-rosetta

zkade0 avatar Sep 26 '22 19:09 zkade0

My build was failed... cmake error.txt

Eggslegend avatar Oct 07 '22 17:10 Eggslegend