windows cl build permission error: This app cant run on your pc
-
Hello!
I'm working on a windows 10 machine, working with Qt Creator. so far all is well. my executable is created and running.
Now I'm trying to build using the command prompt: using the command copied from the creator build steps:
D:/Qt/5.15.10/msvc2019_64/bin/qmake.exe "D:\Workspace D\QT-USEG\USEG.pro" -spec win32-msvc "CONFIG+=qtquickcompiler" && D:/Qt/Tools/QtCreator/bin/jom/jom.exe qmake_allAny idea?
Tanks -
@gpss
Starting point: given that you show that "Access is denied." immediately, no other output, I would just runD:\Qt\5.15.10\...\qmake.exe
with no arguments and see if just that causes this error. If not, try to discover what theqmake
invokes which causes it.Given that it runs from Creator but not from the command line: check carefully the commands being issued. Candidates for difference include:
- Different commands.
- Different
PATH
. - Different environment variable values.
- Running Creator as a different user/elevated versus the Command Prompt.
-
@hskoglund said in windows cl build permission error: This app cant run on your pc:
Hi, just guessing but perhaps you're running on a 32-bits version of Windows 10, if so then 64-bits apps cannot run.
That may well be true. But then the question is how does it run from Creator? Do they run different
qmake.exe
s from different paths? Or, I assume Creator itself is 64-bit(?), is the OP's Command Prompt somehow a 32-bit one?