Hi, I'm trying to build openMSX on Windows through MinGW. However, it's failing miserably right from the get-go. I installed MinGW into C:\MinGW. During installation I ticked the C++ compiler and MSYS base tools. All good. Launched a shell from C:\MinGW\msys\1.0\msys.bat and navigated to openMSX folder and entered ./configure just to be greeted with:
$ ./configure Using Python: python3 Error determining MSYS root: b' File "", line 1\r\n import sys ; print sys.argv[1]\r\n ^\r\nSyntaxError: invalid syntax\r\n' Exit code 1 Traceback (most recent call last): File "build/detectsys.py", line 5, in from executils import captureStdout File "c:\Users\wbahnassi\Desktop\openMSX\build\executils.py", line 1, in from msysutils import msysActive, msysShell File "c:\Users\wbahnassi\Desktop\openMSX\build\msysutils.py", line 70, in msysMounts = _determineMounts() File "c:\Users\wbahnassi\Desktop\openMSX\build\msysutils.py", line 25, in _determineMounts raise OSError('Error determining MSYS root') OSError: Error determining MSYS root build/main.mk:126: *** No platform specified using OPENMSX_TARGET_CPU and OPENMSX_TARGET_OS and autodetection of local platform failed. Stop.
I double-checked that my openMSX files are all ending with LF instead of CRLF (adjusted git's config to do so), and Notepad++ confirms that too, so I'm lost as to where the CRLF is creeping in from. After all, those are code-generated lines from msysutils.py:
# Figure out the root directory of MSYS. proc = Popen( [ msysShell(), '-c', '"%s" -c \'import sys ; print sys.argv[1]\' /' % sys.executable.replace('\\', '\\\\') ], stdin = None, stdout = PIPE, stderr = PIPE, )
There doesn't seem to be any new-line characters involved.. Help?
Cheers!
Login or register to post comments