When I compile TPT it says:
scons: Reading SConscript files ...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 33: invalid start byte:
File "C:\Games\TPT\SConstruct", line 12:
SConscript('SConscript', variant_dir=GetOption('builddir'), duplicate=0)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Script\SConscript.py", line 607:
return method(*args, **kw)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Script\SConscript.py", line 544:
return _SConscript(self.fs, *files, **subst_kw)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Script\SConscript.py", line 253:
call_stack[-1].globals)
File "C:\Games\TPT\SConscript", line 101:
env = Environment(tools=['mingw'], ENV=os.environ)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Environment.py", line 982:
apply_tools(self, tools, toolpath)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Environment.py", line 107:
env.Tool(tool)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Environment.py", line 1789:
tool(self)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Tool\__init__.py", line 292:
self.generate(env, *args, **kw)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Tool\mingw.py", line 139:
SCons.Tool.Tool(tool)(env)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Tool\__init__.py", line 292:
self.generate(env, *args, **kw)
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Tool\gcc.py", line 58:
version = detect_version(env, env['CC'])
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Tool\gcc.py", line 89:
while SCons.Util.to_str(pipe.stdout.readline()):
File "c:\users\nutzer\appdata\local\programs\python\python36-32\lib\site-packages\scons-3.0.0\SCons\Util.py", line 1623:
return str (s, 'utf-8')
I followed everything here:
https://powdertoy.co.uk/Wiki/W/Compiling_for_Windows_with_scons.html
But as I typed cc it said:
bash: cc: command not found
I used scons.py nothing more but I think I prefer to use Visual Studio.