Hacker News new | ask | show | jobs
by publicola1990 1878 days ago
Having been trying to using this, but strangely found that there is no c++ version available for Windows, whereas it is the preferred version in linux. Is this the case?.
3 comments

I'm not sure what you mean. The engine is written in C++. There is the standard build which comes with GDScript and the Mono build which also has C# support. Both support dynamic libraries. You can download the source and compile it very easily on any platform if that's what you're after?
I mean there is no standard build/distribution for c++ on windows, whereas c++ build is available for linux.

Isn't it a bit onerous to ask the users to build/rebuild the whole engine/toolchain if we want to use the c++ version in Windows.

I don't compile Intellij for my environment to use if, for example.

I'm still not following sorry?

All builds (except for server/headless build which is Linux only) are available for Linux, macos and Windows as binaries. This includes the standard build and the Mono build. All builds are also capable of loading dynamic libraries at runtime which you can write in C++.

Compiling the whole thing definitely seems onerous but it's surprisingly easy, even for me who barely knows C++. If you're interested you can read about it here: https://docs.godotengine.org/en/stable/development/compiling...

Most people don't compile the engine themselves though, but it's a very viable option if you know how to use a command line.

So with the standard Godot binaries for Windows can I write my Godot project in C++, without having to build whole of Godot locally?
Ahh I see what you're saying now. Yes, you can: https://docs.godotengine.org/en/stable/tutorials/plugins/gdn...

The tutorial starts with C but there is a C++ one as well.

Again though, I would recommend at least trying to compile the engine once. It's simple, reasonably fast and you can extend the engine as much as you like https://docs.godotengine.org/en/stable/development/cpp/custo...

I think you are misunderstanding. Just go to the webpage, select download, and from the windows tab download the "standard version" and you're good to go.

I don't even see what you mean by it being "a c++ available for linux". You got the same choices for all systems. Just download the editor/engine and start programming. No need to compile anything, except your own scripts/logic if you choose to use a compiled language.

I have done c++ Godot development on windows and Linux. They are equivalent. Only difference is the massive PITA that setting up your windows environment is. (Python, scons & msvc)
You can also write C++ game (module) using GDNative