Page 1 of 4

Compiling 3.1 with visual studio

Posted: 28 May 2012, 04:04
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.

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 08:20
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)

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 09:00
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.

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 09:06
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

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 10:40
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.

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 11:35
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...

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 14:44
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.

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 19:25
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!

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 20:24
by Lord Apocalypse
As far as dependency walker is concerned Qt isn't required at all unless its compiler as an internal lib.

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 21:11
by Emdek
crass, no, it's not.
Or proof it. ;-)

Re: Compiling 3.1 with visual studio

Posted: 28 May 2012, 23:14
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

Re: Compiling 3.1 with visual studio

Posted: 29 May 2012, 01:50
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.

Re: Compiling 3.1 with visual studio

Posted: 29 May 2012, 03:54
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.

Re: Compiling 3.1 with visual studio

Posted: 29 May 2012, 04:01
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.

Re: Compiling 3.1 with visual studio

Posted: 29 May 2012, 05:34
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.