Problems whith compiling

  • Wappen
    3rd Apr 2018 Member 0 Permalink

    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

    Edited once by Wappen. Last: 3rd Apr 2018
  • jombo23
    3rd Apr 2018 Member 1 Permalink

    if youre on windows just use visual studio like any sane person would

  • jacob2
    3rd Apr 2018 Member 1 Permalink
    What command did you use to compile? This error looks very strange to me. Looks like some kind of invalid character somewhere

    Even if you can fix it, this guide hasn't worked properly for a while now. You should use the visual studio guide. If you want to use scons, you need mingw-w64, not sure what other obstacles you would run into after that.
  • Wappen
    4th Apr 2018 Member 0 Permalink

    @jacob2 (View Post)

     I used scons.py nothing more but I think I prefer to use Visual Studio.