AnsweredAssumed Answered

Ask for help about prt::FlexLicParams

Question asked by on Jun 6, 2017
Latest reply on Jun 13, 2017 by SHaegler-esristaff

I am writing to ask for help.
When I use CityEngine 2014.0 to construct the rule base, here comes the problem that prt::Status shows STATUS_NO_LICENSE.
I have tried my best to solve it, but it does not work.

Some background information that may be useful as following:

prt::FileLogHandler shows:
[2017-Jun-05 15:58:28.135212] [info] ESRI Procedural Runtime
[2017-Jun-05 15:58:28.135212] [info] Version: 1.1.1471 | Build Date: Thu 05/22/2014 03:15 AM | Build Config: PRT_BC_REL PRT_CC_OPT PRT_TC_VC10 | OS: win32
[2017-Jun-05 15:58:28.135212] [debug] looking for loader library at path C:\CodePrjs\Win32_CityEngine_frame\x64\Debug
[2017-Jun-05 15:58:28.166436] [fatal] The licensing system could not be initialized, please verify your 'LicParams' data.
[2017-Jun-05 15:58:28.166436] [error] prt::init failed, exception caught: 'No license.'
[2017-Jun-05 15:58:28.166436] [error] Status code = 3 = No license.


Develop environment:
OS: Windows Server 2012 R2 Standard 64-bit
IDE:Visual Studio 2013 Ultimate 2013 Version 12.0.21005 REL
CityEngine Version:2014.0 advanced 64-bit:
*** System properties:


Our code:
prt::Status _status = prt::Status::STATUS_UNSPECIFIED_ERROR;
prt::FlexLicParams _flex_licparams;
_flex_licparams.mFeature = "CityEngAdv";
_flex_licparams.mHostName = "27000@";
//_flex_licparams.mFeature = "CityEngAdvFx";_flex_licparams.mHostName = "";
_flex_licparams.mActLibPath = "C:\CodePrjs\Win32_CityEngine_frame\x64\Debug\flexnet_prt.dll";
//_flex_licparams.mActLibPath = "C:\Program Files\Esri\CityEngine2014\plugins\com.esri.prt.clients.ce.win32.win32.x86_64_1.0.0\flexnet_prt.dll";
const wchar_t * extensions = L"C:\\Program Files\\ESRI\\CityEngine2014\\plugins\\com.esri.prt.clients.ce.win32.win32.x86_64_1.0.0\\lib";
const prt::Object * licenseHandle = prt::init(&extensions, 1, prt::LOG_DEBUG, &_flex_licparams, &_status);


I really appreciate if you can help me solve this problem or tell me what should I do.
Looking forward to your reply.