Hacking:Problems and solutions

From Seamly
Revision as of 15:59, 8 May 2016 by Dismine (talk | contribs)

Build

MSVS error: C2065: 'not': undeclared identifier

Problem: Building with MSVS fail with error C2065: 'not': undeclared identifier.
Cause: By default MSVS doesn't support C++ alternative tokens.
Solution: MSVS require the header to be included in order to use these identifiers.

#ifdef Q_CC_MSVC
    #include <ciso646>
#endif /* Q_CC_MSVC */

Rebuilding stuck on updating translations stage

Problem: Rebuilding is slow because rebuilding translations.
Cause: Usually qmake runs only one time. And in this time we really need to call rebuild all translations.
Solution: Run qmake second time. qmake will find that localization files already exist and skip this call in a makefile.