[BUG] Unable to build kohi on Windows 11.
sbhamad opened this issue · 7 comments
C:\Users\username\Documents\dev\kohi>build-debug.bat
"Building for Windows..."
"Building everything on windows (debug)..."
dir: cannot access 'kohi.tools.versiongensrc': No such file or directory
dir: cannot access '/S': No such file or directory
dir: cannot access '/AD': No such file or directory
dir: cannot access '/B': No such file or directory
FINDSTR: Cannot open src
process_begin: CreateProcess(NULL, echo kohi.tools.versiongen/src/main.c..., ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile.executable.mak:143: obj/kohi.tools.versiongen/src/main.c.o] Error 2
make: *** Waiting for unfinished jobs....
--- Performing kohi.tools.versiongen debug build ---
/usr/bin/bash: line 1: setlocal: command not found
/usr/bin/bash: line 1: setlocal: command not found
Error:2
[process exited with code 2 (0x00000002)]
You can now close this terminal with Ctrl+D, or press Enter to restart.
Microsoft Windows [Version 10.0.22631.4037]
Hey @sbhamad
This is a strange error.. Do you have any spaces or non-English characters in your username?
If so, could you attempt to clone the repo to a directory with no spaces or special characters?
Example:
mkdir C:\Source\
cd C:\Source\
git clone https://github.com/travisvroman/kohi.git
cd kohi
build-debug.bat
Thanks for your reply @blake502
Unfortunately, the error still persists as you can see:
C:\sourcecode\kohi>build-debug.bat
"Building for Windows..."
"Building everything on windows (debug)..."
FINDSTR: Cannot open src
dir: cannot access 'kohi.tools.versiongensrc': No such file or directory
dir: cannot access '/S': No such file or directory
dir: cannot access '/AD': No such file or directory
dir: cannot access '/B': No such file or directory
/usr/bin/bash: line 1: setlocal: command not found
/usr/bin/bash: line 1: setlocal: command not found
--- Performing kohi.tools.versiongen debug build ---
process_begin: CreateProcess(NULL, echo kohi.tools.versiongen/src/main.c..., ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [obj/kohi.tools.versiongen/src/main.c.o] Error 2
Error:2
[process exited with code 2 (0x00000002)]
You can now close this terminal with Ctrl+D, or press Enter to restart.
Again, this problem happens on my other windows machine also, which is a totally separate machine.
I am doing a default clone, the default branch.
Does the clean.bat
give a similar error? It might be a good idea to remove @ECHO OFF
from the top of build-all.bat
and build-debug.bat
just so we can be exactly sure where the errors begin.
I would also ask the same thing as blake asks above. Also, are you using Powershell (if so, what version?) or just cmd prompt?
I am having the same issue. I am unable to execute the build scripts. The clean script works without issues. Tried it on powershel (v7) and the normal command prompt. It seems to fail on line 47 of the build-all.bat "make -j -f "Makefile.executable.mak" %ACTION% TARGET=%TARGET% ASSEMBLY=kohi.tools.versiongen"
@Drischdaan Do you get any specific error messages?
@Drischdaan Do you get any specific error messages?
I get the same output as @sbhamad. Removing @ech off
doesn't give any additional information