ufoaiorg / ufoai

UFO:Alien Invasion
http://ufoai.org
GNU General Public License v2.0
148 stars 52 forks source link

Compilation on Windows fails #58

Open silverv opened 4 years ago

silverv commented 4 years ago

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 commented 2 months ago

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?