You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I just want to know if it's possible to compile flycast libretro core for ARM32 (specifically for UWP)
Interpreter worked fine (partially because some games has textures issue) but it's almost stable
Dynarec was not possible because the arm32 code is for linux only if FEAT_SHREC = DYNAREC_JIT,
the only way I was able to compile is to activate the below options FEAT_SHREC = DYNAREC_CPP:
I haven't looked at arm32 or arm64 on UWP at all so I don't know the extent of changes required to support them. I would think it's more complex than just setting some #define and certainly requires some additional code.
Been trying to get a build going to get some scope for what it takes to do this.
There are some OS-specific things that have to be done around oslib.h and unwind_info.cpp and other such things now that there is a Windows-ARM platform to anticipate.
Dynamic unwind information isn't absolutely needed to get a first build working. This is just needed to be able to throw exceptions through dynarec blocks. (There's no unwind info on arm32 for example.)
The main reason there's no build yet is that I don't have a hardware platform to test with.
$ cmake .. -G "Visual Studio 17 2022" -A arm64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=D:/vcpkg/scripts/buildsystems/vcpkg.cmake
-- The C compiler identification is MSVC 19.44.35216.0
-- The CXX compiler identification is MSVC 19.44.35216.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostarm64/arm64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostarm64/arm64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Target architecture: arm64
-- Found Git: C:/Program Files/Git/clangarm64/bin/git.exe (found version "2.51.0.windows.1")
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Architecture: ARM64
CMake Deprecation Warning at core/deps/glm/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at core/deps/glm/CMakeLists.txt:2 (cmake_policy):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Using Debug VC++ CRT: MDd
-- Using Release VC++ CRT: MD
-- Using MinSizeRel VC++ CRT: MD
-- Using RelWithDebInfo VC++ CRT: MD
-- Using Release VC++ CRT: MD
-- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR)
-- Found ZLIB: optimized;D:/vcpkg/installed/arm64-windows/lib/zlib.lib;debug;D:/vcpkg/installed/arm64-windows/debug/lib/zlibd.lib (found version "1.3.1")
-- Found PkgConfig: D:/vcpkg/installed/arm64-windows/tools/pkgconf/pkgconf.exe (found version "2.5.1")
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Renaming
-- X:/CODE/flycast/core/deps/libchdr/deps/zlib-1.3.1/zconf.h
-- to 'zconf.h.included' because this file is included with zlib
-- but CMake generates it automatically in the build directory.
CMake Deprecation Warning at core/deps/libchdr/deps/zstd-1.5.6/build/cmake/CMakeLists.txt:10 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- The ASM compiler identification is MSVC
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-4.1/Modules/CMakeDetermineASMCompiler.cmake:234 (message):
Policy CMP194 is not set: MSVC is not an assembler for language ASM. Run
"cmake --help-policy CMP194" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
core/deps/libchdr/deps/zstd-1.5.6/build/cmake/CMakeLists.txt:33 (project)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostarm64/arm64/cl.exe
-- ZSTD VERSION: 1.5.6
-- Performing Test C_FLAG_MP
-- Performing Test C_FLAG_MP - Success
-- Performing Test CXX_FLAG_MP
-- Performing Test CXX_FLAG_MP - Success
-- Performing Test C_FLAG_D_UNICODE
-- Performing Test C_FLAG_D_UNICODE - Success
-- Performing Test CXX_FLAG_D_UNICODE
-- Performing Test CXX_FLAG_D_UNICODE - Success
-- Performing Test C_FLAG_DUNICODE
-- Performing Test C_FLAG_DUNICODE - Success
-- Performing Test CXX_FLAG_DUNICODE
-- Performing Test CXX_FLAG_DUNICODE - Success
-- CMAKE_INSTALL_PREFIX: C:/Program Files (x86)/flycast
-- CMAKE_INSTALL_LIBDIR: lib
-- ZSTD_LEGACY_SUPPORT not defined!
-- ZSTD_MULTITHREAD_SUPPORT is enabled
CMake Deprecation Warning at core/deps/libchdr/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Looking for _M_AMD64
-- Looking for _M_AMD64 - not found
-- Checking for module 'ao'
-- Found ao, version 1.2.2
-- Checking for module 'libpulse'
-- Package 'libpulse' not found
-- Checking for module 'libzip'
-- Found libzip, version 1.11.4
-- Found MiniUPnPc: D:/vcpkg/installed/arm64-windows/include/miniupnpc
-- Found miniupnpc API version 20
CMake Deprecation Warning at core/deps/nowide/CMakeLists.txt:16 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Performing Test NOWIDE_HAS_LFS
-- Performing Test NOWIDE_HAS_LFS - Success
-- Performing Test NOWIDE_HAS_INIT_PRIORITY
-- Performing Test NOWIDE_HAS_INIT_PRIORITY - Failed
CMake Deprecation Warning at core/deps/libelf/CMakeLists.txt:7 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Configuring done (49.9s)
-- Generating done (0.7s)
-- Build files have been written to: X:/CODE/flycast/build
Activity
flyinghead commentedon Feb 24, 2022
I haven't looked at arm32 or arm64 on UWP at all so I don't know the extent of changes required to support them. I would think it's more complex than just setting some #define and certainly requires some additional code.
[-]Dynarec support for libretro ARM32[/-][+]Windows ARM support[/+]Wunkolo commentedon Dec 30, 2022
Been trying to get a build going to get some scope for what it takes to do this.
There are some OS-specific things that have to be done around
oslib.handunwind_info.cppand other such things now that there is a Windows-ARM platform to anticipate.Because
RUNTIME_FUNCTIONis different on ARM64:some functions like
UnwindInfo::endwill have to be adjusted to some of these changes like the lack ofEndAddress.flycast/core/windows/unwind_info.cpp
Lines 67 to 88 in 85188bf
flyinghead commentedon Jan 8, 2023
Dynamic unwind information isn't absolutely needed to get a first build working. This is just needed to be able to throw exceptions through dynarec blocks. (There's no unwind info on arm32 for example.)
The main reason there's no build yet is that I don't have a hardware platform to test with.
Wunkolo commentedon Oct 7, 2024
On latest I was able to get it to work, just had to fix an include-order issue in rec_arm64.cpp.
This is Jet Grind Radio on Vulkan on a ThinkPad x13s.
Screen.Recording.2024-10-06.195716.mp4
flyinghead commentedon Oct 7, 2024
Nice!
Can you share the change(s) you made?
ArminiusTux commentedon Sep 14, 2025
Greetings,
there seems to be a linkage problem with flycast v2.5:
Compiling v2.4 for Windows on ARM was fine.
scribam commentedon Sep 15, 2025
@ArminiusTux Can you post your cmake commands related to your build issue please?
ArminiusTux commentedon Sep 20, 2025
Here you go @scribam :
scribam commentedon Sep 23, 2025
@ArminiusTux The
devbranch now has a fix for your build issue, try itArminiusTux commentedon Sep 28, 2025
Splendid, even Vulkan is working with this dev build!
@scribam
Thanks a lot for the compilation fix, hopefully it will make its way into the main branch soon!
@flyinghead Any plans on offering official ARM64 builds?