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

Windows arm64编译报错MASM not supported on this platform #364

Open
Baiyuetribe opened this issue Jul 26, 2024 · 0 comments · May be fixed by #366
Open

Windows arm64编译报错MASM not supported on this platform #364

Baiyuetribe opened this issue Jul 26, 2024 · 0 comments · May be fixed by #366

Comments

@Baiyuetribe
Copy link

在mac arm64上,使用如下命令可正常编译出arm64和x64;

cmake -DCMAKE_OSX_ARCHITECTURES=arm64 ..
cmake -DCMAKE_OSX_ARCHITECTURES= x86_64 ..

但是在Windows arm64设备上,编译均报错

# 编译arm64
cmake -A ARM64 ..

报错如下:

 Assembling C:\arch\auto_action\tmp\src\co\context\context_x64.asm...
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\masm.targets(70,5): error MSB3721: 命令“echo MASM not supported on this platform [C:\arch\auto_action\tmp\bu
ild_arm64\src\co.vcxproj]
C:\arch\auto_action\tmp\src\log\StackWalker.cpp(1003,1): error C1189: #error:  "Platform not supported!" [C:\arch\auto_action\tmp\build_arm64\src\co.vcxproj]

编译x64时

cmake -A x64 ..

报错:

C:\arch\auto_action\tmp\src\co\hook_win.cc(1411,5): error C2664: “void co::detour_attach(PVOID *,PVOID,PCHAR)”: 无法将参数 3 从“const char [26]”转换为“PCHAR” [C:\arch\auto_action\tmp\build_x64\src\co.vcxproj] 
  C:\arch\auto_action\tmp\src\co\hook_win.cc(1411,5):
@Baiyuetribe Baiyuetribe linked a pull request Aug 12, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant