hove-io / navitia

The open source software to build cool stuff with locomotion
https://www.navitia.io/
GNU Affero General Public License v3.0
434 stars 126 forks source link

Migration todo: proj4 macro is deprecated #2897

Closed crocme10 closed 4 years ago

crocme10 commented 5 years ago
/usr/include/proj_api.h:37:2: error: #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
crocme10 commented 5 years ago
add_definitions("-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H")
pbougue commented 5 years ago

As discussed aside, it looks like it's an issue related to the compiling on an archlinux platform. We can either clarify things a bit and add it to a doc or an install script for arch (we have to find where). Or we can just track here troubleshooting information (and probably close the issue once it's done).

@riendegris I let you precise/edit your comments according to what's best for you (and for anyone new to the issue :wink: )

kinnou02 commented 5 years ago

It's a bit more complex than that, new version of proj have disabled support for the API we are using, next version will drop it, this will catch us some day. The point of this issue is to track it, and if possible migrate to the new api.

kinnou02 commented 5 years ago

Sadly the new API is only available in proj 5 that isn't available in debian 8 that is still a target of navitia. Once we drop support for debian 8 we will be able to migrate to the new api.

azime commented 4 years ago

Corrected in this PR 3289