A friend wants to run doom-ascii from windows, since that is the system he uses, but he doesn't know how to compile it, is there a way to compile this program for windows from linux? What dependencies are needed to be able to do this? https://github.com/wojciech-graj/doom-ascii
#Compile doom-ascii for windows from linux
1 messages · Page 1 of 1 (latest)
mingw32 for starters,
https://github.com/wojciech-graj/doom-ascii/blob/master/src/Makefile#L19
I need more information
I need more information from you too. No distro name and version specified for starters.
I'm using debian 11 bullseye and the package I use and the one in the repositories is this https://packages.debian.org/bullseye/mingw-w64
When I try to use make windows, everything says "Undefined"
For example "/usr/bin/i686-w64-mingw32-ld: /home/manito/doom-ascii/src/v_video.c:567: reference to `I_VideoBuffer' undefined"
Why is this happening? @waxen tide
It's because the author hasn't properly documented.
How can I fix it?
The meta-package mingw-w64 is correct, it ultimately trickles down to needing gcc-mingw-w64-i686-win32 package providing a particular file,
https://packages.debian.org/bullseye/amd64/gcc-mingw-w64-i686-win32/filelist
/usr/bin/i686-w64-mingw32-gcc-win32
Which leads back to that line number I indicated right on author's Github repo.
Beyond that, there's no other indication as to what else is required. If those are warnings, and that one line is not enough then it may be safe to ignore. If they are errors, then you should contact the author as an issue. You may also want to try compiling it for Linux, just to see if the same thing occurs.
When I compile for linux, there is no problem, the problem is when I compile for windows
It's missing headers or definition of some sort. That's not my area, you're better off contacting the developer directly.
Now, looking at that Github's repo page I see the following,
Binaries for Windows and Linux are provided as github releases.
https://github.com/wojciech-graj/doom-ascii#build
Going into Releases, https://github.com/wojciech-graj/doom-ascii/releases/tag/v0.1.1 I see a build for winblows, grabbed the zip file and examined the contents,
$ unzip -l doom_ascii_windows_v0_1_1.zip
Archive: doom_ascii_windows_v0_1_1.zip
Length Date Time Name
--------- ---------- ----- ----
264 2022-03-09 23:45 .default.cfg
2425635 2022-05-02 16:41 doom_ascii.exe
--------- -------
2425899 2 files
Perhaps manual compilation might not be needed afterall.