View Ticket
Not logged in
Ticket Hash: e3446fff3ff8582e2dfa443c8fd61a84ae3d2025
Title: Unable to build spatialite 4.2 sources
Status: Closed Type: Build_Problem
Severity: Critical Priority: Immediate
Subsystem: Resolution: Overcome_By_Events
Last Modified: 2020-08-26 07:13:56
Version Found In: 4.2
User Comments:
anonymous added on 2015-04-08 11:59:56:
Hi,

I downloaded spatiallite4.2 sources from internet. I tried building the lib using namke statement. I am getting the following error.

error C2491: 'rint' : definition of dllimport function not allowed.

Any help in this regard is highly appreciated.

Thanks for your help in advance,
Subahshini

anonymous added on 2015-04-08 13:02:06:
I am trying to get the lib for windows using Microsoft VisualStudio 2013. When I installed OSGeo4w, it is providing 4.1 version of spatialite library and dll. If we cannot build, is there a way to get the latest 4.2 spatialite lib using OSGeo4W? Please let me know your inputs.

sandro added on 2015-04-09 13:04:55:
the standard compiler for building libspatialite on Windows is MinGW (gcc).

MSVC is sporadically tested from time to time but is not always expected to 
correctly work without requiring some manual hack.

anonymous added on 2015-04-10 11:50:54:
I tried the same with GCC compiler. I did followed the instructions provided in http://www.gaia-gis.it/gaia-sins/mingw_how_to.html#libspatialite. 

But now I am getting an error as "configure: error: cannot find inttypes.h, bailing out".

Can you please provide inputs on this. We are in need of 4.2 spatialitelib to access gpkg information.

Thanks,
Subhashini

sandro added on 2020-08-26 07:13:56:
too old to be still considered