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

How to Build on Windows #27

Open
Ilan-Sperber opened this issue May 22, 2023 · 1 comment
Open

How to Build on Windows #27

Ilan-Sperber opened this issue May 22, 2023 · 1 comment

Comments

@Ilan-Sperber
Copy link

Having trouble building on windows. I've been trying to install SDL2 and using git bash to run ./configure, but it seems SDL2 is not installed correctly (I've done multiple tutorials including the official one on how to build and include it in MinGW)
The full log I get when I run ./configure:

$ ./configure
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking target system type... x86_64-pc-mingw64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking building for Win32... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... no
checking dependency style of gcc... none
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for ranlib... ranlib
checking for pkg-config... no
checking for SDL... no
checking for sdl2-config... C:\Users\ilant\Downloads\SDL2-2.26.5\x86_64-w64-mingw32\bin\sdl2-config
checking for SDL - version >= 2... no
configure: error: *** SDL version 2 not found!

Are there instructions somewhere for running and building this on a windows? Or can I build it on linux in a way that produces a windows executable?

@Unbreakable-Syntax
Copy link

Unbreakable-Syntax commented Oct 7, 2024

Building this on Windows shouldn't honestly be too difficult (now that I know how), all I did was to just install SDL2 and wxWidgets through MSYS and it did work, I didn't have to do anything else.

You can try reinstalling SDL2 again and run ./configure to see if it works, I was able to build the project successfully on Windows 10 with SDL2 and wxWidgets 3.2.6.

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

2 participants