Hi,
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:
3dview.show_trimplanes_normals=false
CITYENGINE_CONFIG=TRUE
CITYENGINE_FEATURE=CityEngAdv
LICENSE_SERVER=27000@127.0.0.1
LICTIME=4070937600371
SEAT_PREFERENCE_CITYENGINE=Float
SOFTWARE_CLASS_CITYENGINE=Advanced
Our code:
prt::Status _status = prt::Status::STATUS_UNSPECIFIED_ERROR;
prt::FlexLicParams _flex_licparams;
_flex_licparams.mFeature = "CityEngAdv";
_flex_licparams.mHostName = "27000@127.0.0.1";
//_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.
Have you installed a matching version of the CityEngine Administrator on your system? Its licensing service is needed.
esri-cityengine-sdk/README.md at master · Esri/esri-cityengine-sdk · GitHub
Yes,I have installed CityEngine 2014.0 already,and SDK(1.1.1471) matched with it,and the software could be start normally.Is there any other reason it can be?
does it work in release mode?