Make codebase more CPU-agnostic + MacOS disclaimer #559
Loading…
Reference in a new issue
No description provided.
Delete branch "arm-fixes-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is partially based on the porting work by @iamqk
This PR contains:
Bonus additions:
@ -42,3 +47,4 @@
#include <sys/sysctl.h>
#endif
#if BOOST_OS_WINDOWS
This is causing the build error on macOS, it doesn't get defined in macOS. I just replaced the define on line 42 with this outside the guards and it compiled just fine for all platforms.
@ -141,0 +173,4 @@
"common/armv8/ih264_weighted_bi_pred_av8.s"
"common/armv8/ih264_weighted_pred_av8.s"
"decoder/arm/ih264d_function_selector_a9q.c"
"decoder/arm/ih264d_function_selector_av8.c"
This should (probably) be
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
for compilation of this submodule on macos, as it reports the CPU architecture as arm64.
the same statement as above, it should also include arm64 cpu reporting.
should be changed to
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(aarch64)|(AARCH64)|(arm64)")
ih264 is throwing a lot of errors when compiling arm64 code on macOS. It seems that the assembly code is not compatible with how Apple compiles its assembly.
error: ADR/ADRP relocations must be GOT relative
Seems that a lot of the ARM-specific code would have to be rewritten for macOS compatibility. I do not have the technical skills to do this unfortunately.
Hi @lbibass , I'm working on build apple silicon version of Cemu.
This is my working git address, https://github.com/iamqk/Cemu.
You can find buildable code in aarch64 branch.
This did compile, but crashed immediately when trying to load into BOTW.
try start with --force-interpreter
@iamqk I was able to compile and run, but crashed when I tried to load
I notice that if I go to "graphics settings" tab, the "Graphics API" don't load "Vulkan", just OpenGL
@iamqk I got the log, the problem seems to be
Vulkan loader not available
, do you face it too?Sorry, now deal to work reason, I do not have dev environment at hand.
But as much as I can recall, I think you should install vulkan for Mac from link below.
https://vulkan.lunarg.com/doc/sdk/latest/mac/getting_started.html
https://vulkan.lunarg.com/sdk/home
After install this SDK, you should have vulkan option in the menu.
@leomeneguzzi make sure you have molten-vk installed. It is included in the pre-releases, but since you were building it yourself, you need to install it separately. The vulkan sdk shouldn't be needed. Instructions to get a working build are here. If you're still having trouble head over to the troubleshooting channel of the official discord.