Sample code

1739
4
01-20-2017 06:50 PM
DavidBoosalis
New Contributor

Hi.

I am a new to ESRI's Qt SDK v100.  I have a binary version of Qt 5.7 installed on Ubuntu. When I try to run either the C++ or the QL example with their corresponding script I get no map showing up.  But the application window with tabs and everything is there so I do not think it is a Qt version issue.  I did build and install openssl on my machine and set my LD_LIBRARY_PATH to /usr/local/lib were it installed, but no cigar yet. 

Can some one please offer some advise. Maybe thre is a license file to install.  I commented out the /dev/null for output and see nothing about missing license or openssl.  I do see a lot of QML errors, (Even for the the CPP app)

Thank you,

David Boosalis

Polaris Industries

Sunnyvale CA

0 Kudos
4 Replies
EricBader
Occasional Contributor III

Hi David.

It sounds like you've set up things correctly.

Can you use something like Fiddler to see what's going on across the network?

That may help to find out what the culprit might be.

0 Kudos
DavidBoosalis
New Contributor

Hi Eric.

I do not have Fiddler on Linux, but did run WireShark.  I am a novice with wirekshark, but did not see any errors.  Treid reverse lookup of many ip addresses, but saw nothing associated with ESRI. Perhaps you are using a cloud server, can you tell me what IP address to monitor in Wireshark.  I think it is still a libssl error (see output below) , even though I have treid it with libssl as installed by ubuntu 16..10 and installed lbssl and put it in /usr/local/lib and then et LD_LIBRARY_PATH to search  there first. 

CONSOLE OUTPUT:

david@david-Latitude-E5450:~/arcgis/runtime_sdk/qt100.0/sdk/samples/ArcGISRuntimeSDKQt_CppSamples/bin64$ ./ArcGISQt_CppSamples_100_0
int main(int, char**) ArcGISRuntimeCppSamplesApp
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
Adding import path: "/home/david/arcgis/runtime_sdk/qt100.0/sdk/samples/ArcGISRuntimeSDKQt_CppSamples/bin64/qml"
Import path list: ("/home/david/arcgis/runtime_sdk/qt100.0/sdk/samples/ArcGISRuntimeSDKQt_CppSamples/bin64", "/home/david/arcgis/runtime_sdk/qt100.0/sdk/samples/ArcGISRuntimeSDKQt_CppSamples/bin64/qml")
Plugin path list: (".")
static QVariantList ArcGISRuntimeSDKQt_CppSamples::buildCategoriesList(const QDir&) QDir( ":/Samples" , nameFilters = { "*" }, QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )

.

.

.

qrc:/Resources/ArcGISRuntimeSDKQt_QMLSamples.qml:1: TypeError: Cannot read property 'dataItems' of undefined
qml: onSampleChanged
qrc:/Resources/ArcGISRuntimeSDKQt_QMLSamples.qml:1: TypeError: Cannot read property 'dataItems' of undefined

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Couple of things. Do you use a proxy server in your organization? If so, there is a little settings icon that will let you setup the application to work with a proxy.

If that is a non issue, could you try navigating to one of the offline samples, like Search > Offline Geocode. That one should use all offline data, so no online services will be used. It would be interesting to see if it is only the samples that use online data work or not. However, this sample will attempt to download that data, so it is possible that would not work either.

0 Kudos
RenaudGuezennec
New Contributor

Hi, I got the same problem over here.

I tried to install the offline content. The download starts, but when the 4th file was downloading, I got a crash of the application (QML example:[Bash] ./ArcGISRuntimeSDKQt_QMLSamples.sh *** Error in `./bin64/ArcGISQt_QMLSamples_1 - Pastebin.com ).

I restart the QML application > go to Offline geocode > Select an address in california, I changed the address few times  then it crashed.

The C++ application does not crash but neither QML or Cpp show the map.

I'm not using my organization network, I use my phone to get the Internet.

My Graphical Card is an embedded one from Intel. The driver may not be really good and stable. I don't know.

0 Kudos