System Cannot Find Path Specified
-
You seem to have been bitten by PATH poisoning (i.e. some other program is interfering with MSVC)
To be able to pull the same stunt from Qt Creator you will have to launch Qt Creator from that same CMD that has the neutered path (or find a way to do it inside Qt Creator)
-
I'm wondering, I found some directories that did not exist in my system environment variables. I deleted or modified them to work. I am wondering now if the System Environment path variable in my stock kit looks correct. I would assume it is:
@JonB Qt Creator still produces the same errors. It does say that perhaps:
but we already knew the environment is probably screwed up in some fashion. -
@hskoglund Thank you for your help.
I currently only have VS 2019 Community and Qt Creator 4.12.4 installed. They were installed after uninstalling all instances of VS and Qt.
I just updated to 16.6.4 and it still produces the same errors/warnings. Ex:
-
Does anyone else have any possible solutions, besides reinstalling Windows?
-
Hi, maybe you can use Qt Creator through my suggestion before (i.e. launch a normal (not a Developer) CMD window) and type these 3 lines:
set path= "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 C:\Qt\Tools\QtCreator\bin\qtcreator.exe
If you can compile nside Qt Creator now, you could put those 3 lines a .bat file...
-
@surferbrain
You need to look inside thatvcvarsall.bat
file and see what paths it is trying to find/execute which cannot be found. Isn't the problem in your VS set up rather than Creator? -
@jondoe420 said in System Cannot Find Path Specified:
I thought those enterprise licenses were supposed to pay for something
What "enterprise licenses"? Do you mean some kind of Qt commercial licence? If so why not ask TQtC?
-
@jondoe420 said in System Cannot Find Path Specified:
I am still having this problem in 2022. Did no one work on a fix? I thought those enterprise licenses were supposed to pay for something
The Qt enterprise license can't fix your Visual Studio installation for you.
If you'd like assistance, please provide diagnoatic information like what @surferbrain did above.
-
-
@Nahian
Hello and welcome." step by step guide" to what? This thread is a question about the MS-supplied
vcvars...bat
file having an error in it when run on the user's system, likely nothing to do with Qt.I used ifstream, fstream, ofstream, and QFile, but none worked.
Used them for what? I don't see any connection between these calls and
vcvars.bat
issuing an error message. -
@JonB sorry for the late reply, my problem seems different, but the error message is similar to mine.
So my problem is: I am using a basic c++ technique just create a text file, but it's always telling me that file not found or cant open. It worked when I downloaded the qt creator for the first time, but now it doesn't work. The common error message was "System Cannot Find Path Specified" I am going to upload a video about the problem and send the link here so you can see everything.
-
@Nahian
Sorry, don't have time to watch a 5 minute video. You are supposed to paste a minimal example of any code which goes wrong.If you get the message "System Cannot Find Path Specified" it means exactly what it says: the file path you handed to it, probably to open for reading (you sure you are creating a file not opening a file??), cannot be found. Either you are passing an absolute path to a file which does not exist or, most likely, you are using a relative path. And since you don't know what directory that is relative to you must not do that, and must make a suitable absolute path to the file, e.g. with the help of QStandardPaths Class. Or you might use Qt resource paths if you want to supply a file embedded in your executable.