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. Ui_dialog.h
QtWS25 Last Chance

Ui_dialog.h

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 5.3k 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
    DimitriJunker
    wrote on last edited by
    #1

    hi,

    when I try to compile a project I get the error:

    F:\osm\dyjtrackQt\dyjtrack\dialog.cpp:2: Fehler: C1083: Datei (Include) kann nicht ge”ffnet werden: "ui_dialog.h": No such file or directory

    as far as I understand ui_dialog is created by Qt Creator, so he should know where to find it. I found it under:
    F:\osm\dyjtrackQt\build-dyjtrack-Desktop_Qt_5_2_0_MinGW_32bit-Debug
    of course I could set the absolut path, but if I look at the end of the path (Debug) I would have to change it depending if I compile the Debug or Release Version.

    What can I do?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Yes. It should automatically pickup. Did you enable shadow build by any chance ?
      @Can you try cleaning and rebuild again ?
      Can you create another project and try ?@

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DimitriJunker
        wrote on last edited by
        #3

        I'm not sure about shadow build, I use the german version and I find nothing which could be the translation of shadow build. But I found
        Vorgabe-Build-Verzeichnis
        = Preset Build-Derectory
        ../build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}

        Is this what you mean?
        Cleaning and rebuild all didn't helped.
        I have to leave now, so more this evening

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DimitriJunker
          wrote on last edited by
          #4

          I found the shadow buld option, it was activated, I deactivated it and got the same error, then I coppied ui_dialog.h from
          F:\osm\dyjtrackQt\build-dyjtrack-Desktop_Qt_5_2_0_MinGW_32bit-Debug
          to
          F:\osm\dyjtrackQt\dyjtrack
          and it worked.
          Thank you

          1 Reply Last reply
          0
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on last edited by
            #5

            You don't have to copy. It should work on it's own. What is your build directory ? Check this in Project->Build Directory. Is it set properly to :\osm\dyjtrackQt\build-dyjtrack-Desktop_Qt_5_2_0_MinGW_32bit-Debug? If yes, it should work on it's own.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DimitriJunker
              wrote on last edited by
              #6

              When i anchecked "shadow build" the Build-Directory changed and it only worked after copying the file.

              1 Reply Last reply
              0
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Qt Champions 2022
                wrote on last edited by
                #7

                Let us check the shadow build and run the qmake. Do you see your directory shown 'build directory' ? Now if you rebuild does it work ?

                Dheerendra
                @Community Service
                Certified Qt Specialist
                http://www.pthinks.com

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DimitriJunker
                  wrote on last edited by
                  #8

                  Hi,
                  I check "chadow build" and it worked, but this was obvious since I copied ui_dialog.h into
                  F:\osm\dyjtrackQt\dyjtrack
                  when I delete it there I get:
                  :-1: Fehler: No rule to make target '../dyjtrack/ui_dialog.h', needed by 'debug/dialog.o'. Stop.

                  So I think the problem is, that at some point ui_diolog.h is created in the build-directory. If you delete this or change it, for example because you change the compiler, it is not found and can't be rebuild. So it would probably better to create it in the source directory in the first place. But since I'm a total QT-Beginner I might have overlooked something.
                  Dimitri

                  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