Duplicates found when rebuilding after a clean operation, that were not there before.
-
I did a clean Project on my application. The build directory is empty after except for the make file. When I do rebuild on my project I get the following errors on all of the objects in my application.
compiler output:
18:50:45: Running steps for project Feed_GML... 18:50:45: Starting: "/usr/bin/make" clean -j2 Makefile:1478: warning: overriding recipe for target 'moc_alarmpanel.cpp' Makefile:1309: warning: ignoring old recipe for target 'moc_alarmpanel.cpp' . . . Makefile:2294: warning: overriding recipe for target 'user.o' Makefile:2013: warning: ignoring old recipe for target 'user.o' rm -f moc_predefs.h rm -f moc_mainwindow.cpp moc_machinepanel.cpp moc_auxilarypanel.cpp moc_alarmpanel.cpp moc_profilepanel.cpp moc_remakepanel.cpp moc_toolpanel.cpp moc_toolsetpanel.cpp moc_axispanel.cpp moc_axissetup.cpp . . . moc_user.o moc_passw.o moc_gagdiagdlg.o moc_comboboxdelegate.o moc_coilusage.o moc_customerservice.o moc_configpanel.o moc_diebedpanel.o moc_stringlistmodel.o moc_testwindow.o rm -f *~ core *.core 18:50:45: The process "/usr/bin/make" exited normally. 18:50:45: Elapsed time: 00:00.
Issues:
/home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/Makefile:1478: warning: overriding recipe for target 'moc_alarmpanel.cpp' /home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/Makefile:1309: warning: ignoring old recipe for target 'moc_alarmpanel.cpp' . . . :-1: error: alarmpanel.o: in function `qt_noop()': /home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/ui_alarmpanel.h:43: error: multiple definition of `AlarmPanel::AlarmPanel(QWidget*)'; alarmpanel.o:/home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/../Feed_GML/alarmpanel.cpp:4: first defined here . . . /home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/ui_user.h:87: error: multiple definition of `User::on_radioButton_clicked()'; user.o:/home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/../Feed_GML/user.cpp:78: first defined here :-1: error: collect2: error: ld returned 1 exit status
1521 issues were found for all modules in the program.
I'm Running SUSE Linux,
Qt Creator 4.8.2
Based on Qt 5.9.7 (GCC 7.4.0, 64 bit)I have tried deleting rebuilding renaming nothing seems to make a difference.
What am I missing???? -
I did a clean Project on my application. The build directory is empty after except for the make file. When I do rebuild on my project I get the following errors on all of the objects in my application.
compiler output:
18:50:45: Running steps for project Feed_GML... 18:50:45: Starting: "/usr/bin/make" clean -j2 Makefile:1478: warning: overriding recipe for target 'moc_alarmpanel.cpp' Makefile:1309: warning: ignoring old recipe for target 'moc_alarmpanel.cpp' . . . Makefile:2294: warning: overriding recipe for target 'user.o' Makefile:2013: warning: ignoring old recipe for target 'user.o' rm -f moc_predefs.h rm -f moc_mainwindow.cpp moc_machinepanel.cpp moc_auxilarypanel.cpp moc_alarmpanel.cpp moc_profilepanel.cpp moc_remakepanel.cpp moc_toolpanel.cpp moc_toolsetpanel.cpp moc_axispanel.cpp moc_axissetup.cpp . . . moc_user.o moc_passw.o moc_gagdiagdlg.o moc_comboboxdelegate.o moc_coilusage.o moc_customerservice.o moc_configpanel.o moc_diebedpanel.o moc_stringlistmodel.o moc_testwindow.o rm -f *~ core *.core 18:50:45: The process "/usr/bin/make" exited normally. 18:50:45: Elapsed time: 00:00.
Issues:
/home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/Makefile:1478: warning: overriding recipe for target 'moc_alarmpanel.cpp' /home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/Makefile:1309: warning: ignoring old recipe for target 'moc_alarmpanel.cpp' . . . :-1: error: alarmpanel.o: in function `qt_noop()': /home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/ui_alarmpanel.h:43: error: multiple definition of `AlarmPanel::AlarmPanel(QWidget*)'; alarmpanel.o:/home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/../Feed_GML/alarmpanel.cpp:4: first defined here . . . /home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/ui_user.h:87: error: multiple definition of `User::on_radioButton_clicked()'; user.o:/home/dencla/Qt/Projects/build-Feed_GML-Desktop-Debug/../Feed_GML/user.cpp:78: first defined here :-1: error: collect2: error: ld returned 1 exit status
1521 issues were found for all modules in the program.
I'm Running SUSE Linux,
Qt Creator 4.8.2
Based on Qt 5.9.7 (GCC 7.4.0, 64 bit)I have tried deleting rebuilding renaming nothing seems to make a difference.
What am I missing???? -
What version of Qt is your project being built with?
What does your CMakeLists.txt contain? (Post it using the </> tool)@ChrisW67 I was able to recover it by deleting the build directory and the project directory, then loading a backup and updating the lost changes. This is the same program that i did the Clear Project on. My version is listed in the previous post. If anyone has any ideas as to why doing a clear would cause this issue I would be curious to know.
Thanks for the feedback, but I guess it is solved for now.
I do not have the make file as it was deleted when I deleted the build directory.
-
-
@ChrisW67 I was able to recover it by deleting the build directory and the project directory, then loading a backup and updating the lost changes. This is the same program that i did the Clear Project on. My version is listed in the previous post. If anyone has any ideas as to why doing a clear would cause this issue I would be curious to know.
Thanks for the feedback, but I guess it is solved for now.
I do not have the make file as it was deleted when I deleted the build directory.
@dencla said in Duplicates found when rebuilding after a clean operation, that were not there before.:
My version is listed in the previous post.
No. Your original post listed the version of Qt that is embedded in your ancient Qt Creator. This is independent of the version(s) of Qt that you are building your code with. This is identified in the Project Settings for your project.
I do not have the make file as it was deleted when I deleted the build directory.
The CMakeLists.txt file is part of your source code, not the Makefile that is created from it as a build artifact.
-
@dencla said in Duplicates found when rebuilding after a clean operation, that were not there before.:
My version is listed in the previous post.
No. Your original post listed the version of Qt that is embedded in your ancient Qt Creator. This is independent of the version(s) of Qt that you are building your code with. This is identified in the Project Settings for your project.
I do not have the make file as it was deleted when I deleted the build directory.
The CMakeLists.txt file is part of your source code, not the Makefile that is created from it as a build artifact.