Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: unable to build windows binaries under linux #856

Open
nbzpdeployments opened this issue Oct 30, 2023 · 2 comments
Open

BUG: unable to build windows binaries under linux #856

nbzpdeployments opened this issue Oct 30, 2023 · 2 comments

Comments

@nbzpdeployments
Copy link

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
Copy link
Collaborator

ciscon commented Oct 30, 2023

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.

@dsvensson
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants