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

Can't build on Windows #17

Open
GabrielRavier opened this issue Jun 19, 2018 · 7 comments
Open

Can't build on Windows #17

GabrielRavier opened this issue Jun 19, 2018 · 7 comments

Comments

@GabrielRavier
Copy link

I'm using MSYS2, and the build currently fails. The cause might be a misconfiguration of the project, leading to G++ trying to link with WinMain (it is not present in SDL2 and any of it's sub-libraries).

Here are the errors I get when trying to make : https://pastebin.com/pXzf8gnm

@GabrielRavier
Copy link
Author

Also, here is what I get on building after "make clean" : https://pastebin.com/ZU2nq2GN

@GabrielRavier
Copy link
Author

I would also suggest not making "pacman" the command to start a game, since that's the name of the Arch Linux package manager (started with that same command) (It's also the MSYS2 package manager btw)

@keithbowes
Copy link
Contributor

keithbowes commented Jul 13, 2018

"Pacman" being the name of the Arch Linux package manager isn't that big of a problem, since this game is available in AUR: https://aur.archlinux.org/packages/pacman_sdl-ebuc99-git/.

Try:
LDFLAGS=-mwindows ./configure --program-suffix=_ebuc99

@GabrielRavier
Copy link
Author

GabrielRavier commented Jul 15, 2018

Wait so I did that... and either I didn't get what I was supposed to do afterwards or your solution doesn't work

Builds logs (I tried to do make, make clean and make again after your command) : https://pastebin.com/PrAQxD4k

If you can't see the problem I'm prolly gonna file an issue on MSYS2's SDL page.

Also the issue I had with the game taking pacman's name was that MSYS2's package manager is also pacman, and idk if MSYS2 has AUR

@p-martin
Copy link
Collaborator

p-martin commented Nov 7, 2018

It shouldn't be necessary to use MSYS or the like under Windows. Provided that you have got the needed libraries (and their header files), compiling under Windows should work using a common C++ compiler.

Btw, compiling the source from here isn't necessary at all if you just want to play our pacman under Windows. Simply use the precompiled Windows application from https://github.com/ebuc99/pacman_win/archive/master.zip

@GabrielRavier
Copy link
Author

I really was just trying to compile the project, that's all. I use MSYS2 because it's the only usable compiler on Windows that doesn't take 20 Gb of disk space.

@ebuc99
Copy link
Owner

ebuc99 commented Feb 12, 2019

Please use pacman_win (https://github.com/ebuc99/pacman_win).
This is compiled under Windows using codeblocks and the msys2 gcc Compiler.

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

4 participants