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

Compilation on Windows fails #58

Open
silverv opened this issue Sep 5, 2020 · 1 comment
Open

Compilation on Windows fails #58

silverv opened this issue Sep 5, 2020 · 1 comment

Comments

@silverv
Copy link

silverv commented Sep 5, 2020

What am I doing wrong? I did follow https://ufoai.org/wiki/Compile_for_Windows but didn't install mingw-w64-i686-googletest because it said it doesn't exist.
I downloaded msys2 from here https://www.msys2.org/ I ran the pacman install command in MINGW32 terminal
I get the following text in Codeblocks Build log
I removed 500 lines of repeating complaints about uname and cut not existing.
-------------- Build: game in UFO:Alien Invasion (compiler: MinGW-W64 i686)---------------

Checking if target is up-to-date: mingw32-make.exe -r -R -q -f Makefile game
Running command: mingw32-make.exe -r -R -f Makefile game
'uname' is not recognized as an internal or external command,
operable program or batch file.
'cut' is not recognized as an internal or external command,
operable program or batch file.
-z was unexpected at this time.
process_begin: CreateProcess(NULL, pwd, ...) failed.
build/install_mojo.mk:45: pipe: No error
process_begin: CreateProcess(NULL, pwd, ...) failed.
build/install_mojo.mk:45: pipe: No error
The system cannot find the path specified.
process_begin: CreateProcess(NULL, pwd, ...) failed.
build/install_mojo.mk:47: pipe: Bad file descriptor
process_begin: CreateProcess(NULL, pwd, ...) failed.
build/install_mojo.mk:47: pipe: Bad file descriptor
'xargs' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Access denied - BASE/MODELS
File not found - -NAME
Access denied - BASE/MODELS
File not found - -NAME
Access denied - BASE/MODELS
File not found - -NAME
Access denied - BASE/MODELS
File not found - -NAME
'LANG' is not recognized as an internal or external command,
operable program or batch file.
'uname' is not recognized as an internal or external command,
operable program or batch file.
'uname' is not recognized as an internal or external command,
operable program or batch file.
Makefile:66: build/platforms/.mk: No such file or directory
mingw32-make: *** No rule to make target 'build/platforms/.mk'. Stop.
Process terminated with status 2 (0 minute(s), 28 second(s))
5 error(s), 0 warning(s) (0 minute(s), 28 second(s))

@geever
Copy link
Contributor

geever commented Sep 7, 2024

The problem is most likely that the build is not ran in an MSYS2 shell, but in cmd.
Did you use the ufo.workspace setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants