Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Duplicates found when rebuilding after a clean operation, that were not there before.
Forum Updated to NodeBB v4.3 + New Features

Duplicates found when rebuilding after a clean operation, that were not there before.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 311 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dencla
    wrote on last edited by
    #1

    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????

    C 1 Reply Last reply
    0
    • D dencla

      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????

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      What version of Qt is your project being built with?
      What does your CMakeLists.txt contain? (Post it using the </> tool)

      D 1 Reply Last reply
      0
      • C ChrisW67

        What version of Qt is your project being built with?
        What does your CMakeLists.txt contain? (Post it using the </> tool)

        D Offline
        D Offline
        dencla
        wrote on last edited by
        #3

        @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.

        C 1 Reply Last reply
        0
        • D dencla has marked this topic as solved on
        • D dencla

          @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.

          C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          @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.

          D 1 Reply Last reply
          1
          • C ChrisW67

            @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.

            D Offline
            D Offline
            dencla
            wrote on last edited by
            #5

            @ChrisW67 Where would you find that I can only find qt version 5.9.7 in the configuration.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved