Ticket Hash: | b26629729603daa8db4551a076bc4579422fd4b0 | |||
Title: | spatialite_alloc_connection and PROJ_NEW | |||
Status: | Closed | Type: | Build_Problem | |
Severity: | Important | Priority: | Immediate | |
Subsystem: | Resolution: | Unable_To_Reproduce | ||
Last Modified: | 2020-08-26 07:35:24 | |||
Version Found In: | 5.0.0-RC1 | |||
User Comments: | ||||
anonymous added on 2020-08-16 11:15:58:
(text/x-fossil-plain)
Hi, I am trying to build the RC with emscripten and I get a build error in alloc_cache.c because of the missing pj_ctx_alloc function. When I look at the code I wonder why it is not using PROJ_NEW if defined. This seems to work for me: #ifndef OMIT_PROJ /* initializing the PROJ context */ #ifdef PROJ_NEW /* initializing the PROJ.6 context */ cache->PROJ_handle = proj_context_create (); #else cache->PROJ_handle = pj_ctx_alloc (); #endif #endif /* end PROJ */ Merci Jan sandro added on 2020-08-26 07:35:24: (text/x-fossil-plain) looks like a specific issue of emscripten the code compiles smoothly on both gcc and MSVC |