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. What does "error: cycle in targets detected: \obj\_cuda.obj" mean??
Forum Updated to NodeBB v4.3 + New Features

What does "error: cycle in targets detected: \obj\_cuda.obj" mean??

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 893 Views 2 Watching
  • 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.
  • gde23G Offline
    gde23G Offline
    gde23
    wrote on last edited by
    #1

    Hello,

    I'm trying to compile an project with QtCreator (qmake) and Visualstudio 2017Compiler. I am getting following error, but have no idea what it means.

    error: cycle in targets detected: \obj\_cuda.obj
    

    Anybody an idea what the error message means?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you have any CUDA code in your project ?
      Any file with cuda in its name ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • mranger90M Offline
        mranger90M Offline
        mranger90
        wrote on last edited by
        #3

        It looks to me like an unresolved macro in either the .pro, .pri or .prf files used by the project.
        I'm guessing somewhere there is a $$MACRO_VARIABLE_cuda.obj dependency that isn't being resolved.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raator
          wrote on last edited by
          #4

          Accidentally got Error: cycle in targets detected: ui_.h after I add h-, cpp- and ui-files to project.
          Sometime after using context menu "Add Existing Files...." of the project backslash-space-backslash instead single backslash appended after added filename in the pro-file.
          Example:

          FORMS += \
              gui/mainwindow.ui \ \
              gui/newwindow.ui
          

          That '\ \' causes Error: cycle in targets detected.

          1 Reply Last reply
          1

          • Login

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