Problem with compiling 64 bit programs (MSVC)

Off-topic discussion/chat/argue area with special rules of engagement.
Forum rules
The Off-Topic area is a general community discussion and chat area with special rules of engagement.

Enter, read and post at your own risk. You have been warned!
While our staff will try to guide the herd into sensible directions, this board is a mostly unrestricted zone where almost anything can be discussed, including matters not directly related to the project, technology or similar adjacent topics.

We do, however, require that you:
  • Do not post anything pornographic.
  • Do not post hate speech in the traditional sense of the term.
  • Do not post content that is illegal (including links to protected software, cracks, etc.)
  • Do not post commercial advertisements, SEO links or SPAM posts.
We also ask that you keep strongly polarizing topics like politics and religion to a minimum. This forum is not the right place to discuss such things.
Please do exercise some common sense. How you act here will inevitably influence how you are treated elsewhere.
User avatar
Piotr Kostrzewski
Lunatic
Lunatic
Posts: 304
Joined: 2018-08-14, 15:08

Problem with compiling 64 bit programs (MSVC)

Unread post by Piotr Kostrzewski » 2025-04-26, 17:45

Hello,
How are you all?
Today I managed to compile my Godot fork but only in the 32 bit version because Scons only sees MSVC x86.
My attempts to solve this problem:
Compiling with mingw:

When compiling with mingw I get the error: scons platform=windows use_mingw=yes,cannot find specified file platform\windows\godot_windows.windows.tools.64.o]

I added Path for minigw, then changed Path for vcvars64.bat but neither of these options helped.

Running vcvars64.bat didn’t help either.

After entering arch=x86_64 I received information that MSVC ignores architecture overwriting.

I have a 64-bit processor.

Does anyone know of possible causes and solutions that I haven’t tried?

Have a nice weekend.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37505
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Problem with compiling 64 bit programs (MSVC)

Unread post by Moonchild » 2025-04-27, 11:58

Maybe it'd be more useful for you to post in the Godot community than here, since there would be more than potentially zero people there who have compiled Godot from source.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Piotr Kostrzewski
Lunatic
Lunatic
Posts: 304
Joined: 2018-08-14, 15:08

Re: Problem with compiling 64 bit programs (MSVC)

Unread post by Piotr Kostrzewski » 2025-04-27, 12:25

Moonchild wrote:
2025-04-27, 11:58
Maybe it'd be more useful for you to post in the Godot community than here, since there would be more than potentially zero people there who have compiled Godot from source.
You're right. I wrote there first but no response and here in my opinion there is a good community. The real problem is why MSVC is detected only in the x86 version when I also have the x64 version installed. The compilation itself was successful.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37505
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Problem with compiling 64 bit programs (MSVC)

Unread post by Moonchild » 2025-04-27, 19:03

It'll depend entirely on what build system Godot uses. I can't really help you there.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Piotr Kostrzewski
Lunatic
Lunatic
Posts: 304
Joined: 2018-08-14, 15:08

Re: Problem with compiling 64 bit programs (MSVC)

Unread post by Piotr Kostrzewski » 2025-04-27, 19:20

Moonchild wrote:
2025-04-27, 19:03
It'll depend entirely on what build system Godot uses. I can't really help you there.
I'll tell you this.
Godot requires Scons and I use MSVC compilation using Scons.
I type scons platform=windows in cmd.exe and after a while it displays that MSVC x86 was found and that the 32 bit version of Godot will be compiled.
And that's the problem that it doesn't see the x64 version.
The conversion itself is successful.

User avatar
Piotr Kostrzewski
Lunatic
Lunatic
Posts: 304
Joined: 2018-08-14, 15:08

Re: Problem with compiling 64 bit programs (MSVC)

Unread post by Piotr Kostrzewski » 2025-05-01, 19:15

The solution is to set the x64 compiler with x64 Native Tools Command Prompt for VS.