[Solved] error: [debug/moc_mainwindow.cpp] Error 1
-
wrote on 11 Nov 2010, 21:49 last edited by
It is generated by Qmake.
-
wrote on 11 Nov 2010, 21:56 last edited by
can you post it here? maybe there are some problems.
-
wrote on 11 Nov 2010, 22:04 last edited by
[removed]
-
wrote on 11 Nov 2010, 22:10 last edited by
oops, I meant .pro file :)
-
wrote on 11 Nov 2010, 22:14 last edited by
[removed]
I don't see anything wrong with it. It built fine until today. I just moved the project to a different location on my hard drive.
I remember having this problem once, but I don't remember how I fixed it.
-
wrote on 11 Nov 2010, 23:26 last edited by
Try to remove .pro.user file at new location and open project again in QtCreator.
-
wrote on 12 Nov 2010, 00:40 last edited by
I tried that. Same.
-
wrote on 14 Nov 2010, 02:23 last edited by
I just uninstalled and reinstalled the Qt SDK, but it didn't change anything. I also tried copying the files again, even to a different place. It is still not building.
-
wrote on 15 Nov 2010, 13:48 last edited by
I created a new empty project, imported the old files, and now it's working!
-
wrote on 7 Feb 2011, 14:38 last edited by
Your Build directory path must not contain spaces.. In your case `C:/My Dropbox/Extreme Image Converter/ExtremeImageConverter-build-desktop’ contains spaces..
-
wrote on 6 Apr 2016, 17:17 last edited by
@szh1 said:
[debug/moc_mainwindow.cpp] Error 1
I know this is a very old post but I've just bumped into it. This could be helpful.
This kind of errors:
[debug/moc_mainwindow.cpp] Error 1
[debug/moc_*cpp] Error 1might come when declaring class data members in the slots / signals section by mistake.
-
wrote on 26 Jul 2016, 13:02 last edited by
Remove your file from project (not permanently) than add again with "Add Existing Files"
-
@szh1 said:
[debug/moc_mainwindow.cpp] Error 1
I know this is a very old post but I've just bumped into it. This could be helpful.
This kind of errors:
[debug/moc_mainwindow.cpp] Error 1
[debug/moc_*cpp] Error 1might come when declaring class data members in the slots / signals section by mistake.
wrote on 30 Dec 2018, 20:26 last edited byThis post is deleted! -
wrote on 17 Oct 2019, 13:04 last edited by eximus
@MarcosAD said in [Solved] error: [debug/moc_mainwindow.cpp] Error 1:
I know this is a very old post but I've just bumped into it. This could be helpful.
This kind of errors:
[debug/moc_mainwindow.cpp] Error 1
[debug/moc_*cpp] Error 1
might come when declaring class data members in the slots / signals section by mistake.In my case I've got the same error: I use enum members of 3.h file in 1.cpp file, the 3.h file wasn't included into 1.cpp file (and no warning from Qt Creator 12.3.1). Also, when I have the same enum in 1.h and in 3.h files and use it in 1.cpp file.