Hexagon Geospatial
MENU

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
Frequent Contributor
Posts: 107
Registered: ‎10-16-2015

Spatial Modeler SDK: Visual Studio 12.0 required?

I'm new to Visual Studio and I'm really having a hard time to set everything up.

 

I'd like to use the 'Casablanca' http_client library  (C++ REST SDK) but when I try to include http_client.h I get an error message.

 

 

 

According the documentation https://github.com/Microsoft/cpprestsdk/wiki/Getting-Started-Tutorial I should use vcpkg to install it, but this is not available for VS 12.0

 

Should I upgrade Visual Studio or will that lead to more troubles? What other options do I have?

 

Frequent Contributor
Posts: 107
Registered: ‎10-16-2015

Re: Spatial Modeler SDK: Visual Studio 12.0 required?

I've just tried to use Visual Studio 15.0. Compiling my dll went just fine, but when I try to run the Spatial Modeler Editor I get an assertion fail

 

Debug Assertion Failed!

Program: ...\Hexagon\Spatial Modeler SDK 2018\bin\Win32Debug\smeditor.exe 

File f:\dd\vctools\crt\crtw32\misc\dbgdel.cpp

Line: 52

 

Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

 

Is there anything I can do to prevent this?

Frequent Contributor
Posts: 107
Registered: ‎10-16-2015

Re: Spatial Modeler SDK: Visual Studio 12.0 required?

I found out that the C++ REST SDK is part of Studio 2013 after all. Now I'm able to compile successfully. But now the Spatial Modeller Editor dies without errormessage when I add the line

 

web::http::client::http_client httpClient(url);

 

Is there a way to find out what's going wrong here?

Highlighted
Technical Evangelist
Posts: 53
Registered: ‎09-16-2015

Re: Spatial Modeler SDK: Visual Studio 12.0 required?

The supported version of Visual Studio for SMSDK 2018 is VS 2013 (12.0).  You could try a later version, but there is no guarantee that the SMSDK would work with it.

Frequent Contributor
Posts: 107
Registered: ‎10-16-2015

Re: Spatial Modeler SDK: Visual Studio 12.0 required?

what are the chances that you'll support a more modern compiler? This way I'm not able to use gdal or C++ REST SDK. This version is 5 years old? 

Technical Evangelist
Posts: 772
Registered: ‎10-01-2015

Re: Spatial Modeler SDK: Visual Studio 12.0 required?

Hi Arjen,

 

The SMSDK 2018 is, of course, built in support of ERDAS IMAGINE 2018 (and other products) and both products are released. Since the code was built internally by us using Visual Studio 2013 that's the officially supported compiler to use. As Ruth mentions you may be able to get later compilers working as well, but they wouldn't be considered officially supported. 

 

Since the products are released we wont (can't) be making changes to the compiler we used to produce them. However we certainly have plans to move to a newer version of Visual Studio for the next major release of the SMSDK and ERDAS IMAGINE.

 

Cheers

 

 

Ian Anderson
Chief Product Owner, Desktop Remote Sensing
Hexagon Geospatial
Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.