Compiling 3.1 with visual studio

Discuss the future of Warzone 2100 with us.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Compiling 3.1 with visual studio

Post by Lord Apocalypse »

Looking into compiling but have run across a few issues. First (and biggest) is that the windows compiling wiki page is seriously outdated (compiling 2.3.9?).

So, I open the 2010 solution and first thing I get is an error about missing files from devpkg. Problem is, there is no longer a devpkg in the files section on sourceforge. So, is the package that is currently up what I need? After downloading it... No.

I have a broken solution.. no devpkg.. and no way of setting up bison/flex.props

This leaves me with out a working framework, scrip, warzone2100, and gamelib projects. I will see what I can do about getting this to work if no one has a working win32 build package.
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiling 3.1 with visual studio

Post by Reg312 »

you have to build devpkg by yourself.. somewhere was a link with prepared devpkg/vs10 projects here (but it can be hidden...many stuff here are hidden :) )

i can send my devpkg which i use for compile 3.1beta version

(this topic should be placed in development subforum)

also you need QT and some other libraries on your PC,
in my own trial with compiling wz in vs2010 i had to install and rebuild QT (spent 3-4 hours on QT)
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Compiling 3.1 with visual studio

Post by Lord Apocalypse »

What is Qt used for? I know it was going to be used for gui work but that seems to have fallen to the wayside and switched back to SDL. Either way all I need is the devpkg for 2010. I already have a lot of the libraries (SDL, libpng, Qt, etc) since I have to use them for compiling Vega Strike.

Yes, I would like to get your devpkg. Every other devpkg is still on 2.3.9 and I have no need to compile 2.x code.
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiling 3.1 with visual studio

Post by Reg312 »

ok, here is link to my devpkg: http://www.mediafire.com/?3ds9bbsbjpeve92
also link to dlls which i use to run compiled wz: http://www.mediafire.com/?y7a6y8kd6c86q0w

devpkg and dlls should have same versions i guess...
hmm.. i dont remember why every user should compile his own devpkg..


version 3.1 requires Qt.. i know places in code where Qt functions are used. you need QT on your PC (and may be Qt with openSSL)
see my compile thread: viewtopic.php?f=32&t=8738
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland
Contact:

Re: Compiling 3.1 with visual studio

Post by Emdek »

Lord Apocalypse, most prominent use of Qt (not QT, that's QuickTime :-P) is for scripting and AFAIK it was previously used (was that backend removed anyway?) to manage window and handle events and not for creating GUI itself.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Compiling 3.1 with visual studio

Post by Lord Apocalypse »

Thanks Reg, I will see what I can do after some sleep.. trying to stay awake to finish another download but may have to hit the sack before it finishes...
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Compiling 3.1 with visual studio

Post by cybersphinx »

Emdek wrote:most prominent use of Qt (not QT, that's QuickTime :-P) is for scripting and AFAIK it was previously used (was that backend removed anyway?) to manage window and handle events and not for creating GUI itself.
IIRC we also use Qt's ini parser, and probably a few other things like that. The Qt backend is still in lib/qtgame, the SDL backend is in lib/sdl.
We want information... information... information.
crass
Trained
Trained
Posts: 113
Joined: 21 Mar 2012, 02:26

Re: Compiling 3.1 with visual studio

Post by crass »

cybersphinx wrote:
Emdek wrote:most prominent use of Qt (not QT, that's QuickTime :-P) is for scripting and AFAIK it was previously used (was that backend removed anyway?) to manage window and handle events and not for creating GUI itself.
IIRC we also use Qt's ini parser, and probably a few other things like that. The Qt backend is still in lib/qtgame, the SDL backend is in lib/sdl.
don't you dare use that again! qt is broken!
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Compiling 3.1 with visual studio

Post by Lord Apocalypse »

As far as dependency walker is concerned Qt isn't required at all unless its compiler as an internal lib.
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland
Contact:

Re: Compiling 3.1 with visual studio

Post by Emdek »

crass, no, it's not.
Or proof it. ;-)
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
crass
Trained
Trained
Posts: 113
Joined: 21 Mar 2012, 02:26

Re: Compiling 3.1 with visual studio

Post by crass »

Emdek wrote:crass, no, it's not.
Or proof it. ;-)
BS! :x
read the announcement threads for the versions that used that crap
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Compiling 3.1 with visual studio

Post by Lord Apocalypse »

Qt itself isn't crap, it just wasn't designed for use with games yet people still try to find ways to do so. Some succeed and some fail.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Compiling 3.1 with visual studio

Post by stiv »

Qt was an experiment worth doing. It turned out the answer was no, it is not suitable for our game - mainly some OpenGL and drawing issues.
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Compiling 3.1 with visual studio

Post by vexed »

Lord Apocalypse wrote:Qt itself isn't crap, it just wasn't designed for use with games yet people still try to find ways to do so. Some succeed and some fail.
:3
Qt is fine for what it is meant to be used for. I even suggested making a Warzone frontend with that, with integrated lobby and all that good stuff.
That would fix many of the issues we have now with WZ's lack of updating the GUI elements.
Then we could even skin it to match WZ's colors...

Just need to find someone willing to do it. :stressed:

Oh, as for the dev package, I update it when I got time, and I think there is one on trac, and another archive available on one of these threads around here.

The main problem with a doing that, is it is hard to keep it up to date, that is why I suggest people compile it themselves, and if you use the Qt backend, then you must compile Qt yourself, if the trolls didn't update the prebuilt package for VS2010.
There is also the issue of people making builds and releasing them without knowing all the limitations, and why that isn't a smart thing to do, but I'll get into that some other time again.

BTW, it is a 100% idiotic move for MS to be charging for VS2011. http://arstechnica.com/information-tech ... windows-8/ Makes no sense at all. :shakehead:
That means 2010 will be the last supported version for Warzone.
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Compiling 3.1 with visual studio

Post by Lord Apocalypse »

Well, thats one more reason windows 8 will fail worse than ME or Vista. First reason is that is looks like a frelling cell phone OS (still haven't installed a VM for the dev preview).

Side note, one issue I have with WZ windows builds is the lack of true support for VC8 or VC9. Why only a solution for VS 2010? At least use cmake to build the windows project.
Post Reply