guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.83k stars 226 forks source link

Compiling on Windows outputs en error. "unknown encoding: mbcs" #267

Closed TheSlider2 closed 1 year ago

TheSlider2 commented 2 years ago

I followed the instructions to install the dependencies then ran the make command (Windows 10). `

$ make release scons mode=release scons: Reading SConscript files ... LookupError: unknown encoding: mbcs: File "/h/dev/VS/goxel/goxel/SConstruct", line 34: env = Environment(variables = vars, ENV = os.environ) File "/usr/lib/python3.9/site-packages/SCons/Environment.py", line 990: apply_tools(self, tools, toolpath) File "/usr/lib/python3.9/site-packages/SCons/Environment.py", line 102: env.Tool(tool) File "/usr/lib/python3.9/site-packages/SCons/Environment.py", line 1810: tool(self) File "/usr/lib/python3.9/site-packages/SCons/Tool/init.py", line 303: self.generate(env, args, kw) File "/usr/lib/python3.9/site-packages/SCons/Tool/default.py", line 40: for t in SCons.Tool.tool_list(env['PLATFORM'], env): File "/usr/lib/python3.9/site-packages/SCons/Tool/init.py", line 1279: c_compiler = FindTool(c_compilers, env) or c_compilers[0] File "/usr/lib/python3.9/site-packages/SCons/Tool/init.py", line 1174: if t.exists(env): File "/usr/lib/python3.9/site-packages/SCons/Tool/msvc.py", line 303: return msvc_exists(env) File "/usr/lib/python3.9/site-packages/SCons/Tool/MSCommon/vc.py", line 836: vcs = cached_get_installed_vcs(env) File "/usr/lib/python3.9/site-packages/SCons/Tool/MSCommon/vc.py", line 561: ret = get_installed_vcs(env) File "/usr/lib/python3.9/site-packages/SCons/Tool/MSCommon/vc.py", line 572: VC_DIR = find_vc_pdir(ver) File "/usr/lib/python3.9/site-packages/SCons/Tool/MSCommon/vc.py", line 374: comps = find_vc_pdir_vswhere(msvc_version) File "/usr/lib/python3.9/site-packages/SCons/Tool/MSCommon/vc.py", line 331: vsdir = vsdir.decode("mbcs").splitlines() make: [Makefile:8: release] Error 2

`

jacobpennington821 commented 1 year ago

I also encountered this problem but it seemed to be because I was running the prompt in msys2.exe instead of mingw64.exe

pegvin commented 1 year ago

kinda scons error https://github.com/msys2/MSYS2-packages/issues/2275

guillaumechereau commented 1 year ago

Closing because the issue is not from goxel itself.