Switch to x64_x86 cross tools for VS#3188
Conversation
hwangsihu
commented
Mar 24, 2026
- Switch to x86_64 cross tools for VS
- Fix compile errors on FFmpeg
831c260 to
9c59954
Compare
9c59954 to
de2cb1f
Compare
|
I still cannot build win32 using the vcvarsamd64_x86.bat. I get a bunch of linker errors in FFmpeg. |
|
Could you please send me the exact error message? The build works fine for me. |
|
Here's build errors I get when linking: |
|
HMM, Did you test this on the latest commit? It compiles normally in GH Actions without these errors. |
Yes, latest commit. It fails with the same error both with the "cross tool" and normal "x86" VS command prompt. I also mentioned the build issue here: #3162 I wonder if it's because I'm using some different version of CLang on Windows. |
|
Doesn't WebRTC only use Clang? Anyway, try using CLANG for MSVC. |
de2cb1f to
b0e6742
Compare
9fe922a to
f026ab3
Compare
f026ab3 to
0c241a0
Compare
0c241a0 to
16e4487
Compare
16e4487 to
2eccceb
Compare
|
What is the purpose of this PR? |
|
When compiling to 32-bit on a 64-bit system, it is recommended to use cross-tools instead of native tools, because the compiler is 64-bit, not 32-bit. It also resolves the build error that @CoBC is experiencing. |