Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Target release/test.obj doesn't exist.
Qt 6.11 is out! See what's new in the release blog

Target release/test.obj doesn't exist.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 708 Views 1 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote on last edited by Andy314
    #1

    Hallo all,

    From one minute to the next I got a compiling problem with the QtCreator:

    My main projekt has some subprojects (*.pri). If I open a file of one special subprojet in the editor I cannot compile this file via
    Menu: Build -> Build file test.cpp (respectively I use the corrosponding hotkey)
    I get the error: target release/test.obj doesn't exist.

    For files in other subprojekt it works.
    If I select the file in the subproject tree (left side bar) and choose in the context menu "build" it works.
    Build all works too.

    Only the compiling via hot, what I use very often for syntax check, works not.

    I have cleared the output dir incl. make file many time, but nothing helps.
    Remove subprojekt and add it again helps not.

    Has anyone an idea what can be the error ?

    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Can you share the root .pro file and the .pri file of the subproject containing test.cpp?

      Software Engineer
      The Qt Company, Oslo

      Andy314A 1 Reply Last reply
      0
      • Axel SpoerlA Axel Spoerl

        Can you share the root .pro file and the .pri file of the subproject containing test.cpp?

        Andy314A Offline
        Andy314A Offline
        Andy314
        wrote on last edited by
        #3

        @Axel-Spoerl said in Target release/test.obj doesn't exist.:

        Can you share the root .pro file and the .pri file of the subproject containing test.cpp?

        Thank you for your answer.
        Meanwhile the problem has dissapeared with the following steps:

        I have an other project in my project panel, which has the same subproject integrated. Once I cleared this project, I could compile the file in the first project. Very strange!
        Any ideas what happed?

        1 Reply Last reply
        0
        • Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          Well, could be interferences between the builds of both projects.
          The error message indicates that a target expected to exist for linking, but it does not exist.
          Without the *.pro, *.pri files and compile kit screenshots - it's poking in the fog.

          Software Engineer
          The Qt Company, Oslo

          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