Search found 5 matches

by CesarIII
22 Dec 2014, 03:20
Forum: Coding
Topic: power level
Replies: 5
Views: 5036

Re: power level

X and Y would give most top-left of power bar, added with 308 it would end at most right of 'build screen' (menu above power bar). still there's an appendix near map ( 8px extra ). I suppose you are talking about this: http://i.imgur.com/Pei54rp.png?1 The 8px you mention could be because of the rou...
by CesarIII
21 Dec 2014, 02:38
Forum: Coding
Topic: Preprocessor directives checking
Replies: 3
Views: 4199

Re: Preprocessor directives checking

NoQ wrote:Also, they seem to be activated only in MSVC debug builds (?)
It can be activated by adding -DDEBUG as a compiler option. In the Makefile you can find it here:

Code: Select all

WZ_CPPFLAGS =  ... -DDEBUG ... 
So after you run make outside MSVC or any other IDE, all of them are activated.
by CesarIII
20 Dec 2014, 19:59
Forum: Coding
Topic: Preprocessor directives checking
Replies: 3
Views: 4199

Preprocessor directives checking

This is a very specific question about the game code. More like a doubt actually. In the case of, for example, the main.cpp file, we can see the following directives all over the code: #ifdef DEBUG debug() ... #endif Wouldn't the following be "equivalent"? Or are we aiming to avoid conditional state...
by CesarIII
16 Dec 2014, 23:56
Forum: Technical Help / Troubleshooting
Topic: Unable to compile master branch: Qt5 missing
Replies: 7
Views: 7323

Re: Unable to compile master branch: Qt5 missing

Did you install *both* Qt 5 libs AND Qt 5 headers?
I installed the QT5 core ones, but...
I bet you have missing QT5Script.
... I didn't install these.
The fix was "apt-get install qtscript5-dev".
Thanks for your help.
by CesarIII
16 Dec 2014, 05:54
Forum: Technical Help / Troubleshooting
Topic: Unable to compile master branch: Qt5 missing
Replies: 7
Views: 7323

Unable to compile master branch: Qt5 missing

I'm using Ubuntu x86_64 and have the Qt5 packages installed. I got the master branch with this command: git clone -b master --single-branch https://github.com/Warzone2100/warzone2100.git wzmaster Then, to compile, I try: sh autogen.sh ./configure make The problem is that ./configure throws the follo...