errors when I ran cmake --build . --target lupdate --

• Mar 23, 2017 - 08:53

[e@V12 build.qtc]$ cmake --build . --target lupdate --
Info: creating stash file /home/e/MuseScore/build.qtc/.qmake.stash
/home/e/MuseScore/libmscore/durationtype.cpp:780: Qualifying with unknown namespace/class ::TDuration
/home/e/MuseScore/libmscore/mscore.cpp:457: Class 'Ms::MScore' lacks Q_OBJECT macro
/home/e/MuseScore/mscore/editdrumset.cpp:83: Class 'Ms' lacks Q_OBJECT macro
/home/e/MuseScore/mscore/inspector/inspectorTextLine.cpp:27: Cannot invoke tr() like this
/home/e/MuseScore/mscore/inspector/inspectorTextLine.cpp:27: Class 'Ms' lacks Q_OBJECT macro
/home/e/MuseScore/mscore/inspector/inspectorTextLine.cpp:28: Cannot invoke tr() like this
/home/e/MuseScore/mscore/inspector/inspectorTextLine.cpp:29: Cannot invoke tr() like this
/home/e/MuseScore/mscore/inspector/inspectorTextLine.cpp:39: Cannot invoke tr() like this
/home/e/MuseScore/mscore/inspector/inspectorTextLine.cpp:40: Cannot invoke tr() like this
/home/e/MuseScore/mscore/inspector/inspectorTextLine.cpp:41: Cannot invoke tr() like this
/home/e/MuseScore/mscore/inspector/inspectorTextLine.cpp:42: Cannot invoke tr() like this

Finally completed after 40 minutes...here is full output: https://gist.github.com/ericfont/39e7053ef19d8f067acf0af5c17109df

Those "Cannot invoke tr()" seem like they are invoking tr from a QComboBox ...here's what the first one looks like:

void populateHookType(QComboBox* b)
      {
      b->clear();
      b->addItem(b->tr("None"), int(HookType::NONE));

Maybe that isn't allowed...maybe needs to be cast to a QObject??

The "Qualifying with unknown namespace/class ::TDuration" occurs with:

durationtype.cpp:780 QString s = QObject::tr("Custom");

Actually, I'm a little unclear why some code has: QObject::tr() while other code just has tr(). The ones it says Class 'Ms' lacks Q_OBJECT macro is always for the first time tr() is called in each .cpp file, and those are all when was called without Q_OBJECT:: first:

mscore.cpp:457 qmlRegisterUncreatableType("MuseScore", 1, 0, "StyledPropertyListIdx", tr("You can't create an enum"));
editdrumset.cpp:83 noteHead->addItem(tr("invalid"));

Do you still have an unanswered question? Please log in first to post your question.