Don't run deployed application in Windows

1278
4
Jump to solution
08-31-2020 05:25 PM
Tkm_Knj
New Contributor

Hi.

I try to run deployed application, but It don't run.

I don't quite understand how to deploy and run.

My application make from [ArcGIS Runtime SDK for Qt 100.8], and [Qt 5.15.0 MSVC2019 64bit].

I use to Qt Creator 4.12.4.

Here are the steps I took

1. Application building in Qt creator.

2. windeployqt.exe copy from  "C:\Qt\5.15.0\msvc2019_64\bin" and paste into the folder with application.exe

3. windeploy run. Command is [ windeployqt.exe --qmldir ../../ ./ ]

4. All ArcGIS SDKs file copy from "C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\windows\x64\bin"  and paste into the folder with application.exe

I referred to " https://developers.arcgis.com/qt/latest/qml/guide/deploy-your-app.htm ".

How do I deploy and run my application?

Regards.

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

From my experience, windeployqt gets you 90% of the way there but doesn't pick up all of the dependencies. Try downloading this zip and comparing the contents to see what else needs to be included - https://www.arcgis.com/home/item.html?id=c8f2bd986fd342ad933684db73dc4b69 

View solution in original post

0 Kudos
4 Replies
LucasDanzinger
Esri Frequent Contributor

From my experience, windeployqt gets you 90% of the way there but doesn't pick up all of the dependencies. Try downloading this zip and comparing the contents to see what else needs to be included - https://www.arcgis.com/home/item.html?id=c8f2bd986fd342ad933684db73dc4b69 

0 Kudos
Tkm_Knj
New Contributor

Thanks for answer.

I can run the application in my machine,but different machine can't.

It machine is't install ArcGIS SDK and Qt.

New application (No changed code) isn't run too.

But Sample application is run.

I comparing the contents,and made sure it was all the same.

My Code is bad? or Running Environment is bad?

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Hard to know what the issue is. I'd assume if it works on your system, the code is fine. Did you use one of our template applications to build your app? One idea would be to add CONFIG += console at the top of your app's .pro file, add lots of qDebug logging messages in your app to see where it is choking, and rebuild/deploy. 

0 Kudos
Tkm_Knj
New Contributor

Ok, I could run.

Somehow the EsriCommonQt's binary data were different in the SDK and the sample.

When I use the sample's files,It run, 

Thanks.

0 Kudos