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. Problem regarding building even an Qt example.
Forum Updated to NodeBB v4.3 + New Features

Problem regarding building even an Qt example.

Scheduled Pinned Locked Moved Unsolved General and Desktop
17 Posts 3 Posters 3.7k 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.
  • aha_1980A aha_1980

    Hi @Jhanvi and welcome!

    to help you we need some more information.

    Which Operating system are you using?
    Which Qt version?
    How did you install Qt?
    I assume you use QtCreator, if yes, which version?
    Which compiler did you install / intent to use?

    Regards

    J Offline
    J Offline
    Jhanvi
    wrote on last edited by
    #3

    @aha_1980
    I am using Windows 10 (64 bit OS)
    I am using the Qt version 5.10.1
    I installed Qt with mingw as the compiler
    I am using Qt creator 5.10.1
    I intalled the MingW compiler and the MSVC2017 as the compiler
    I intend to use mingw as the compiler but i am getting the error as:
    Error while building/deploying the project test1(project name) (kit: Desktop Qt 5.10.1 MinGW 32bit)
    When executing step "qmake"

    aha_1980A 1 Reply Last reply
    0
    • J Jhanvi

      @aha_1980
      I am using Windows 10 (64 bit OS)
      I am using the Qt version 5.10.1
      I installed Qt with mingw as the compiler
      I am using Qt creator 5.10.1
      I intalled the MingW compiler and the MSVC2017 as the compiler
      I intend to use mingw as the compiler but i am getting the error as:
      Error while building/deploying the project test1(project name) (kit: Desktop Qt 5.10.1 MinGW 32bit)
      When executing step "qmake"

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @Jhanvi

      so please go to Tools > Options > Build & Run and check if your Compilers are detected properly. Also make sure that each Qt version has the correct compiler assigned in Kits.

      you can also post some screenshots here if in doubt.

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jhanvi
        wrote on last edited by
        #5

        0_1520671492248_eg3.png 0_1520671499248_eg4.png

        aha_1980A 1 Reply Last reply
        0
        • J Offline
          J Offline
          Jhanvi
          wrote on last edited by
          #6

          @Jhanvi 0_1520671895130_eg5.png

          1 Reply Last reply
          0
          • J Jhanvi

            0_1520671492248_eg3.png 0_1520671499248_eg4.png

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by aha_1980
            #7

            @Jhanvi did you read the red error output?

            it cannot create a directory as it seems you dont have write access there.

            try copying the example to a writable location and try again.

            edit: other possibility: the path to the build folder got messed up.

            Qt has to stay free or it will die.

            1 Reply Last reply
            2
            • J Offline
              J Offline
              Jhanvi
              wrote on last edited by
              #8

              I did not clearly understand what you are trying to explain . Could you please elaborate with more detailed steps. And also how to make sure the compilers are detected properly and assign the kits as you mentioned earlier ?

              aha_1980A 1 Reply Last reply
              0
              • J Jhanvi

                I did not clearly understand what you are trying to explain . Could you please elaborate with more detailed steps. And also how to make sure the compilers are detected properly and assign the kits as you mentioned earlier ?

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #9

                @Jhanvi

                From your screenshots I can see that you already changed some configurations; that may be a root of the problem.

                1. You installed Qt for MSVC2017 but not MSVC2017 compiler (and therefore probably the red exclamation sign in Kits)
                2. You added manual compilers which I guess are not needed
                3. You changed the default build directory in the third screenshot, therefore the warning "The build directory needs to be at the same level as the source directory"
                4. You get a red error in the second screenshot: "Could not create directory [...]" This is probably because you don't have write access to that directory

                Point 4 is the critical point here; it's impossible to build if directories and files cannot be created. Can you try to create a new project in a directory you surely have write access? I assume that building with MinGW will work then.

                Qt has to stay free or it will die.

                1 Reply Last reply
                2
                • J Offline
                  J Offline
                  Jhanvi
                  wrote on last edited by
                  #10

                  So please tell me how should i check that i have the write access to it and if please provide me the steps to do the same.
                  I am trying to run a simple qt example but still it is showing me the same error and hence i can not build any of my projects please help me with it.

                  A 1 Reply Last reply
                  0
                  • J Jhanvi

                    So please tell me how should i check that i have the write access to it and if please provide me the steps to do the same.
                    I am trying to run a simple qt example but still it is showing me the same error and hence i can not build any of my projects please help me with it.

                    A Offline
                    A Offline
                    ambershark
                    wrote on last edited by
                    #11

                    @Jhanvi You probably installed with admin permissions to that directory and you are trying to build with a non-admin/elevated user.

                    So it can not create the build directory it needs because of the permissions on the Qt install.

                    1. You can change the permisions, right click->properties in explorer, use the attrib command on the command line, etc.
                    2. You could copy the example out into a directory you do have permissions to, i.e. c:\users\youruser\qt-examples and then open and build from there.
                    3. You could run qt creator as admin

                    I recommend #2... #1 and #3 can be dangerous, so I wouldn't go that route, but it's an option.

                    My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                    1 Reply Last reply
                    1
                    • J Offline
                      J Offline
                      Jhanvi
                      wrote on last edited by
                      #12

                      Now i am getting it as no rule to make target all stop.
                      What should i do ?

                      aha_1980A 1 Reply Last reply
                      0
                      • J Jhanvi

                        Now i am getting it as no rule to make target all stop.
                        What should i do ?

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        @Jhanvi please close Creator, delete the *.pro.user and then open the project again.

                        Qt has to stay free or it will die.

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          Jhanvi
                          wrote on last edited by
                          #14

                          where is the .pro.user ?

                          A 1 Reply Last reply
                          0
                          • J Jhanvi

                            where is the .pro.user ?

                            A Offline
                            A Offline
                            ambershark
                            wrote on last edited by
                            #15

                            @Jhanvi In the root directory for the project you are building. At the same level of the .pro file.

                            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                            1 Reply Last reply
                            1
                            • J Offline
                              J Offline
                              Jhanvi
                              wrote on last edited by
                              #16

                              Still the same error.

                              A 1 Reply Last reply
                              0
                              • J Jhanvi

                                Still the same error.

                                A Offline
                                A Offline
                                ambershark
                                wrote on last edited by
                                #17

                                @Jhanvi Post the actual build log so we can see what really went wrong.

                                My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                                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