QtWebEngineProcess.exe not found.
-
Hello,
I need to add QtWebEngine support to my old project prepared with Qt 5.9.0 (cant upgrade to newer version)I wrote the necessary code by looking at the help documentation, and my project is working, but when I tried to run it on another PC, I received the error "QtWebEngineProcess.exe not found."
The directory where Qt is installed on My PC is "D:\Qt\Qt5.9.0\5.9" and the environment variable definitions for QTDIR, QT_PLUGIN_PATH, and QT_QPA_PLATFORM_PLUGIN_PATH are using this directory: "D:\Qt\Qt5.9.0\5.9".
On the other PC, the directory where Qt is installed is "C:\Users\abc\Project\Qt\Qt5.9.0\5.9" and the environment variable definitions for QTDIR, QT_PLUGIN_PATH, and QT_QPA_PLATFORM_PLUGIN_PATH are using this directory: "C:\Users\abc\Project\Qt\Qt5.9.0\5.9".
I defined the QTWEBENGINEPROCESS_PATH environment variable and set its value to "C:\Users\abc\Project\Qt\Qt5.9.0\5.9\msvc2017_64\bin", but it still crashes with an error.
Also tried to "C:\Users\abc\Project\Qt\Qt5.9.0\5.9\msvc2017_64\bin\QtWebEngineProcess.exe" still getting error.Any ideas?
-
@CDQT said in QtWebEngineProcess.exe not found.:
I defined the QTWEBENGINEPROCESS_PATH environment variable and set its value to "C:\Users\abc\Project\Qt\Qt5.9.0\5.9\msvc2017_64\bin
Well this is wrong (I think) for a start, since it requires the full path to the
.exe
file, not just some directory, See https://forum.qt.io/post/482842, where OP replied to me:set the QTWEBENGINEPROCESS_PATH environment variable to the absolute path of QtWebEngineProcess.exe (including the .exe file) works now. Qt official Doc I used makes no detail about this.
So that's a start. But I guess you will say you have tried with
C:\Users\abc\Project\Qt\Qt5.9.0\5.9\msvc2017_64\bin\QtWebEngineProcess.exe
. Do you mean you still goterror "QtWebEngineProcess.exe not found."
? You would have told us if the message was different, wouldn't you? Does that file exist? Did you try running it directly from command line just to see whether you get same error? -
-
Do you do that from the command line or from C++ code? If C++ code it's wrong.
-
I asked you whether that file exists at that path --- no response.
-
I asked you to try running it from the command line outside of Qt application --- no response.
-
I asked you if you do do it from command line whether the error message remains
"QtWebEngineProcess.exe not found."
--- no response.
I can't guess what you might or might not have done. Up to you.....
-
-
Do you do that from the command line or from C++ code? If C++ code it's wrong.
QTWEBENGINEPROCESS_PATH=C:\Users\abc\Project\Qt\Qt5.9.0\5.9\msvc2017_64\bin\QtWebEngineProcess.exe - this is my environment.
my codes work on my pc.
I asked you whether that file exists at that path --- no response.
yes. files exists. checked the environment with cmd command "echo %QTWEBENGINEPROCESS_PATH%"
I asked you to try running it from the command line outside of Qt application --- no response.
my qt application starting with command line. i saw the error on console.
I asked you if you do do it from command line whether the error message remains "QtWebEngineProcess.exe not found." --- no response.I'm sorry for incomplete answers; I am still trying things out. I copied the files "QtWebEngineProcess," "QtWebEngineCore.dll resources," and "translations" to the directory where the Qt application is located. This time I am receiving this error: Qt WebEngine ICU data not found at D:/Qt/Qt5.9.0/5.9/msvc2017_64/resources. Trying parent directory... Qt WebEngine ICU data not found at D:/Qt/Qt5.9.0/5.9/msvc2017_64. Trying application directory... Qt WebEngine ICU data not found at C:/Projects/dev/application. Trying fallback directory... The application MAY NOT work. Installed Qt WebEngine locales directory not found at location D:/Qt/Qt5.9.0/5.9/msvc2017_64/translations/qtwebengine_locales. Trying application directory... Qt WebEngine locales directory not found at location C:/Projects/dev/application/qtwebengine_locales. Trying fallback directory... Translations MAY NOT be correct. [0115/172530.990:ERROR:icu_util.cc(178)] Invalid file descriptor to ICU data received. QtWebEngine is looking for the executable in the wrong directory. correct path is "C:\Users\abc\Project\Qt\Qt5.9.0\5.9". "D:\Qt\Qt5.9.0\5.9" <--- This directory is where I have the Qt directory on my development machine. "C:\Users\abc\Project\Qt\Qt5.9.0" <--- This directory is the location of the QT installation on the other computer where I ran the application.
-
@CDQT said in QtWebEngineProcess.exe not found.:
echo %QTWEBENGINEPROCESS_PATH%
This does not verify that the path is valid, it just prints the value of the environment variable.
Please, make sure the path is actually valid (a file with that name in that folder exists)... -
@CDQT said in QtWebEngineProcess.exe not found.:
yes. files exists. checked the environment with cmd command "echo %QTWEBENGINEPROCESS_PATH%"
That does not tell us whether a file exists, it just shows the value of an environment variable. Something like
dir %QTWEBENGINEPROCESS_PATH%
would be better thanecho
.The error when you run
QtWebEngineProcess
from the command line was to be expected, I was just trying to find out whether it would be found and run.Have you checked whether
QTWEBENGINEPROCESS_PATH
is recognised/handled in a Qt version as old as 5.9? I don't know. Maybe find what doc page https://doc.qt.io/qt-5/qtwebengine-deploying.html#deploying-qt-webengine-processes read at 5.9? You might also try GooglingQtWebEngineProcess.exe not found
and look through the various hits to see whether any of them might be applicable to your situation.