Failed to Start Local Server

5077
11
Jump to solution
02-18-2015 09:28 AM
VijdanDemir
New Contributor III

Hello, I am new at using ArcGis runtime sdk 10.2.3 for Qt. I am trying MyFirstMap application.   It gives :     failed to start local server runtime in the following locations: /ArcGISRuntime10.2.3/LocalServer32/bin   "USCitiesStates.mpk failed to start" Failed to create local service.  

  My license status: 2

My license level : 1  

  What can be the problem? I am working on Ubuntu 12.04.

I enabled server logging from the LocalServerUtility but there ar no log files under /tmp.

0 Kudos
11 Replies
VijdanDemir
New Contributor III

Finally, I have solved my problem.

I add the ARCGISRUNTIMESDKQT_10_2_3="/home..", RUNTIMEHOME="/home/..", ARCH="64" to the /etc/environment file

and restart  computer. It works.

I think running ./init_sdk_qt64.sh before opening Qt Creator does not  work so I was getting the errors.

By adding the variable to /etc/environment it is ok.

But I have one small question more:

I tried the code on two different machines.

The code on desktop pc  works  successfully.

The code on leptop starts server but gives the error " USCitiesStates.mpk failed to start. Failed to create local service."   Any idea ?

Thank in advance.

0 Kudos
VijdanDemir
New Contributor III

ok.. I found it. Its reason was I  was opening qt creator with sudo.

when open qt creator directly, application runs successfully.