[Interest] Failed to make moc for cpp source file.

Igor Mironchik igor.mironchik at gmail.com
Tue Feb 10 10:30:27 CET 2015


Hi. I ran into a problem.

When building project for Android target, build doesn't make moc for a cpp  
file and compilation failed.

In that cpp I have Q_OBJECT and #include "messagebox.moc"

In Makefile generated I have:

mocables: compiler_moc_header_make_all compiler_moc_source_make_all

compiler_moc_source_make_all: .moc\messagebox.moc

But I got:

..\..\..\Mobile\QtMWidgets\src\messagebox.cpp:622:26: fatal error:  
messagebox.moc: No such file or directory
  #include "messagebox.moc"
                           ^
compilation terminated.

How can I fix it? Thank you.

-- 
Best Regards,
Igor Mironchik.



More information about the Interest mailing list