Menu

#22 Issues building on Windows 10/7  Edit

0.1.0
open
2023-11-14
2023-11-14
alex miler
No

So I have found a way to compile the program on windows using msys2 by removing the libhfs and librsrc from the makefile.in. This appears to cause no issues when building on Linux, as these do not appear to be used by the actual code and appear to just cause issues. But every time I try to start the game on windows it ends up crashing after selecting a game mode. When selecting a Dos mode it shows an error [tungrp] Can't read offsets! (20 bytes).The free game files also cause the game to crash, but do not show any errors.

when building it does show an error, which I have been able to resolve by removing the 0755, which appears to fix the issue building on windows and does not appear to cause the crashing on Linux. Using Wine it does appear to partially work, but has a load of errors that popup but the game can still continue. Most are related to issues with the offsets or reading some parts of the dos data. The free data just immediately crashes without any error in the wine logs.

Error in windows msys2 with sdl1.
src/lib/kbstd.c:466:13: error: too many arguments to function 'mkdir'
466 | if (mkdir(path, 0755))
| ^~~~~

using cygwin to build it I am able to build without any errors once removing libhfs/librsrc, but I keep having an issue when starting the program. Initially it would try to find the game files in the unix locations. I modded the code to default to windows locations which seems to have fixed that issue. But next I found that it was unable to initialize fully, and kept coming up with the following error.

SDL version: 1.2.15 (added code to output this).
Couldn't initialize SDL: No available video device
A Fatal Error has occurred, terminating!

Any idea how to get it working on windows 7/10?

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.