Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSVC] Build on Windows with MSVC targeting ARM64 #71

Open
SyahmieS opened this issue Jul 17, 2024 · 0 comments
Open

[MSVC] Build on Windows with MSVC targeting ARM64 #71

SyahmieS opened this issue Jul 17, 2024 · 0 comments

Comments

@SyahmieS
Copy link

We are trying to build on windows with MSVC targeting arm64. But it seems that neither the .sln nor the project file has the arm64 configuration. Does it support windows ARM64 build?

Initially, I tried to add #if !defined(_M_ARM64) to line 155 in libvorbis\os.h, which then resulted in another issue.
The issue now I was facing suggested that I wasn't targeting the right platform as well as the correct toolset which I then did by replacing the platform from x64 to ARM64 and the toolset from v142 to v143 in files: zlib.vcxproj, lpng.vcxproj, ljpeg.vcxproj, libvorbis.vcxproj, libogg.vcxproj and Torque 2D.vcxproj.
After implementing this workaround, it then fails with another issue "VC: Unsupported Target CPU" which I added the following lines of code in source\platform\types.visualc.h on line 84:
#elif defined(_M_ARM64)

define TORQUE_CPU_STRING "ARM64"

define TORQUE_CPU_ARM64

define TORQUE_LITTLE_ENDIAN

#else
which gave me the final error "error C2664: 'unsigned int Con::_InterlockedIncrement(volatile unsigned int *)': cannot convert argument 1 from 'volatile long *' to 'volatile unsigned int *''

I am unsure if Torque is able to target ARM64. Can I get some help on this?

Thanks,
Syahmie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant