#Compile doom-ascii for windows from linux

1 messages · Page 1 of 1 (latest)

quartz radish
waxen tide
waxen tide
quartz radish
#

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

waxen tide
quartz radish
#

How can I fix it?

waxen tide
#

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.

quartz radish
#

When I compile for linux, there is no problem, the problem is when I compile for windows

waxen tide
#

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.