Problem regarding building even an Qt example.
-
Lifetime Qt Championwrote on 10 Mar 2018, 08:52 last edited by aha_1980 3 Oct 2018, 08:54
@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.
-
wrote on 10 Mar 2018, 09:00 last edited by
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 ?
-
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 ?
From your screenshots I can see that you already changed some configurations; that may be a root of the problem.
- You installed Qt for MSVC2017 but not MSVC2017 compiler (and therefore probably the red exclamation sign in Kits)
- You added manual compilers which I guess are not needed
- 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"
- 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.
-
wrote on 10 Mar 2018, 10:36 last edited by
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. -
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.wrote on 11 Mar 2018, 01:08 last edited by@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.
- You can change the permisions, right click->properties in explorer, use the
attrib
command on the command line, etc. - 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. - 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.
- You can change the permisions, right click->properties in explorer, use the
-
wrote on 12 Mar 2018, 15:41 last edited by
Now i am getting it as no rule to make target all stop.
What should i do ? -
@Jhanvi please close Creator, delete the
*.pro.user
and then open the project again. -
wrote on 12 Mar 2018, 17:58 last edited by
where is the .pro.user ?
-
wrote on 12 Mar 2018, 18:53 last edited by
@Jhanvi In the root directory for the project you are building. At the same level of the .pro file.
-
wrote on 12 Mar 2018, 19:19 last edited by
Still the same error.
-
wrote on 12 Mar 2018, 19:27 last edited by
@Jhanvi Post the actual build log so we can see what really went wrong.
15/17