Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
New Contributor
Posts: 2
Registered: ‎02-20-2018

Block file generation with Spatial Modeler 2020

Dear All,

 

we're trying to translate a small project developed with Erdas Developer's Toolkit 2015 into a Spatial Modeler SDK 2020 project, in order to use its executable into Erdas Imagine 2020. We imported the project into Microsoft Visual Studio 2013 and it is responsible to create a block file containing IKONOS RPC sensor model. During the compilation phase in x64 Release mode, we have problems linking the libraries (.lib) ephoguilib, lggmphoguilibu, epholib and epho_ikonos. We noted that these libraries are only in Win32Release directory of Spatial Modeler SDK 2020 (Spatial Modeler SDK 2020/usr/lib/Win32Release).

 

Any suggestions?

 

Thank you in advance,

 

Andrea

Staff
Posts: 10
Registered: ‎10-09-2015

Re: Block file generation with Spatial Modeler 2020

[ Edited ]

Those libraries have different names in 64-bit: lggmpholib, lggmphoguilib, lggmikonoslib, etc. Thanks.

New Contributor
Posts: 2
Registered: ‎02-20-2018

Re: Block file generation with Spatial Modeler 2020

Hello,

 

thank you for your reply. With your suggestion we are now able to compile and correctly link the libraries, but we receive an error during execution (error message in attachment). The executable, generated in x64 Release mode with Microsoft Visual Studio 2013, is generated in Erdas Imagine 2020/bin/x64URelease/. It seems that the error regards lggmphoguilib.dll. Maybe the generated executable needs some environment variables containing path of Erdas dlls?

 

Thank you in advance,

 

Andrea

Technical Evangelist
Posts: 1,052
Registered: ‎10-01-2015

Re: Block file generation with Spatial Modeler 2020

Hi Andrea,

 

I'm not sure if it relates directly to the issue you are encountering, but SMSDK 2020 is supported on  Microsoft Visual Studio 2017, not 2013.

 

Cheers

 

Ian Anderson
Chief Product Owner, Desktop Remote Sensing
Hexagon Geospatial
Staff
Posts: 10
Registered: ‎10-09-2015

Re: Block file generation with Spatial Modeler 2020

Also the visual studio projection configuration setting is URelease instead of Release for x64.