Build Windows Exe from source code

7 replies [Last post]
Shiroi
User offline. Last seen 14 years 50 weeks ago. Offline
Joined: 2009-03-04
Posts: 2

Hi, I would like to know how I can build a Windows Exe from the sourcecode of Hedgewars (head revision). I was able to compile it already under Ubuntu but I have no clue how I can build an Windows Exe :/ My friends are likely to use Windows and I would like to play with them once the latest head revision.
Thanks a lot!

rbaleksandar
rbaleksandar's picture
User offline. Last seen 9 years 33 weeks ago. Offline
Joined: 2009-01-09
Posts: 685

Why not download the ready installation package and give it to your friends? They can download it too (since you're going to play over the internet I supposed they have internet too Smile).

HTML = How To Meet the Ladies

Here is my Unofficial Manual for HW. Hope you like it. Wink Smiley Still working on it. Don't worry. Will get it finished...Sometime in the future. Big Grin

ChrisIgel
User offline. Last seen 7 years 19 weeks ago. Offline
Joined: 2010-04-23
Posts: 5

I need to know that too because we want to play a lan party and I have modded the game a bit and I need to compile it for Windows. I have already compiled it for Ubuntu, which worked perfectly.

Thank You!

nemo
nemo's picture
User offline. Last seen 3 weeks 8 hours ago. Offline
Joined: 2009-01-28
Posts: 1861

Modded it how?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

ChrisIgel
User offline. Last seen 7 years 19 weeks ago. Offline
Joined: 2010-04-23
Posts: 5

Just decreased the damages and explosions a bit and some other small things like that.

ChrisIgel
User offline. Last seen 7 years 19 weeks ago. Offline
Joined: 2010-04-23
Posts: 5

I've solved the problem now (cmopile it with Windows)

BetaNium
User offline. Last seen 13 years 52 weeks ago. Offline
Joined: 2010-04-27
Posts: 1

So how do I compile hedgewars on windows? complete guide in FAQ section would be good.

nemo
nemo's picture
User offline. Last seen 3 weeks 8 hours ago. Offline
Joined: 2009-01-28
Posts: 1861

Why bother decreasing damage in code? There is a scheme option for adjusting damage.
Granted, that doesn't change explosion size, but that was a deliberate consistency choice.
Perhaps that was what was bothering you.
*shrug*
Anyway, the number of options in game schemes seems more than enough to satisfy most players, and avoids the issues of making incompatible clients.

Anyway, if you do do this, please be responsible. Change HEDGEWARS_PROTO_VER from 31 to, oh, 1.

That should avoid colliding with future releases for a long long while.

And BetaNium, the reason the FAQ doesn't describe compiling under windows is that it is a very complex process, unlike the two or three lines to get a build running in linux.

Perhaps someone who uses windows like Smaxx will take the time to make a complete guide with screenshots and links to everything needed, but will probably require more update and maintenance. If you figure out how to do it, feel free to write your own guide.

Or you could just take 15minute and setup an ubuntu dual boot for your game development Wink Smiley

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]