QW-Group/ezquake-source

BUG: unable to build windows binaries under linux

Opened this issue · 2 comments

Following description from Readme leads to

$ time EZ_CONFIG_FILE=.config_windows make -j10
[CC] .ezquake/src/cmodel.o
[CC] .ezquake/src/cmd.o
[CC] .ezquake/src/com_msg.o
[CC] .ezquake/src/common.o
[CC] .ezquake/src/crc.o
[CC] .ezquake/src/cvar.o
[CC] .ezquake/src/fs.o
[CC] .ezquake/src/vfs_os.o
[CC] .ezquake/src/vfs_pak.o
[CC] .ezquake/src/vfs_zip.o
In file included from src/common.h:40,
                 from src/cmodel.c:23:
src/qwprot/src/protocol.h:51:12: fatal error: SDL_version.h: No such file or directory
   51 | #  include <SDL_version.h>
      |            ^~~~~~~~~~~~~~~

[...]

and others, like missing pcre2.h

ciscon commented

This will no longer work with vcpkg pulling them in, I'm fairly certain the plan is to implement cmake at which point we will hopefully add the ability to pull that stuff in with vcpkg in linux at which point you could build static binaries for either windows or linux from linux. For now the only way to build the windows binaries is from within windows.

Or as you have a GitHub account, just fork the repo, push your changes and a Windows binary will show up under your Actions tab in your fork.

Have some work in progress for a CMakeFile that works on both Linux and Windows with vcpkg, should see if it's just a flag to it to produce cross compiled binaries.