I also saw this error message using Qt 5.4.1 on a Ubuntu 12.04 system.
But the cause of the error was different. "lupdate" seems to have problems with strong C ++ - 11 enumerations, at least when using related forward declarations encapsulated in a namespace.
I use something like this in the corresponding header file:
namespace outer { namespace other { enum class MyEnum : int; }
The problem with "lupdate" can be solved with marco for the term "enum class":
#ifndef ENUM_CLASS #define ENUM_CLASS enum class #endif namespace outer { namespace other { ENUM_CLASS MyEnum : int; }
source share