novacoin-project / novacoin

Novacoin sources tree
MIT License
114 stars 517 forks source link

error: 'intro.moc' file not found #373

Closed kenneth closed 2 years ago

kenneth commented 6 years ago

how to generate intro.moc?

/novacoin/src/qt/intro.cpp:54: error: 'intro.moc' file not found
#include "intro.moc"
         ^~~~~~~~~~~
CryptoManiac commented 6 years ago

*.moc files are generated automatically by the meta object compiler, before compiling Qt class files.

If this doesn't happen for some reason then you can force them build manually through invoking moc tool directly.

There are few known bugs in Qt which may cause this kind of behaviour:

https://bugreports.qt.io/browse/QTVSADDINBUG-276 https://forum.qt.io/topic/14170/solved-moc-file-that-does-not-get-created

nerdlabs001 commented 3 years ago

how to generate intro.moc?

/novacoin/src/qt/intro.cpp:54: error: 'intro.moc' file not found
#include "intro.moc"
         ^~~~~~~~~~~

I had the same problem when trying to build from within qt creator on another coin (how i ended up here) . I ran make clean , then cleaned out my build folder and the obj folder , re ran qmake and it built without issue . qt tends to not regenerate files that are already in existence