Godot Version
4.4.1
Question
So, I wanted to compile the godot templates from scratch iot obtain:
- encryption with my own key
- reduction of exe file by omitting stuff I never use, e.g. 3D stuff (I only do 2D games and I suspect I will stick to that)
So I was trying to follow the tutorials:
- Easy to follow tutorial for encrypting your PCK file
- How to Minify Godot's Build Size (93MB -> 6.4MB exe) | Popcar's Blog
But I got stuck because the f*cker named scons does NOT want to recognize MinGW.
“ERROR: No valid compilers found, use MINGW_PREFIX environment variable to set MinGW path.”
I have set the environmental variable as said in the tutorial.
I tried a different MinGW version
I found a youtube tutorial of some indian guy who claims to have fixed the problem, turns out he did exactly what I did and the problem remains.
I desperately tried anything, e.g. like moving files such as gcc.exe from the mingw/bin directory to the scons directory just in case, I know it sounds silly, byt maybe just maybe the idiot program will find them in its own mother directory!?
Nope, of course.
He wants them where the environmental variable says they are. But I did set the variable! No mismatch –I copypasted the exact name MINGW_PREFIX and the exact dir, I did NOT write them down by hand.
I have no clue on how to go on. People all around the world seem to happily follow the tutorial, install all the stuff, set up the env variables and et voilà, everything works.
Here nothing works because that idiot of scons does not want to find any compiler. (i also have vscode installed, so I have other c++ compilers installed somewhere; seems those are off limits too, somehow).
Any suggestion? I am VERY angry and discouraged. I spent like 6 hours just to set up this thing that should be straightforward and I don’t see any solution.


