Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to build kohi on Windows 11. #237

Open
sbhamad opened this issue Aug 24, 2024 · 7 comments
Open

[BUG] Unable to build kohi on Windows 11. #237

sbhamad opened this issue Aug 24, 2024 · 7 comments
Assignees
Labels
bug Something isn't working Windows Affects Windows Operating System

Comments

@sbhamad
Copy link

sbhamad commented Aug 24, 2024

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]
@sbhamad sbhamad added the bug Something isn't working label Aug 24, 2024
@blake502
Copy link

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

@sbhamad
Copy link
Author

sbhamad commented Sep 16, 2024

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.

@blake502
Copy link

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.

@travisvroman
Copy link
Owner

I would also ask the same thing as blake asks above. Also, are you using Powershell (if so, what version?) or just cmd prompt?

@travisvroman travisvroman added the Windows Affects Windows Operating System label Sep 17, 2024
@Drischdaan
Copy link

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"

@travisvroman
Copy link
Owner

@Drischdaan Do you get any specific error messages?

@Drischdaan
Copy link

Drischdaan commented Sep 22, 2024

@Drischdaan Do you get any specific error messages?

I get the same output as @sbhamad. Removing @ech off doesn't give any additional information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Affects Windows Operating System
Projects
None yet
Development

No branches or pull requests

4 participants