Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed build with proj-6.0.0 #3

Open
wenheping opened this issue May 28, 2019 · 2 comments
Open

Failed build with proj-6.0.0 #3

wenheping opened this issue May 28, 2019 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@wenheping
Copy link

Build log say:

...
--- config ---
Running Mkbootstrap for Proj4 ()
--- Proj4.bs ---
chmod 644 "Proj4.bs"
--- blib/arch/auto/Geo/Proj4/Proj4.bs ---
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Proj4.bs blib/arch/auto/Geo/Proj4/Proj4.bs 644
--- pm_to_blib ---
cp lib/Geo/Proj4.pm blib/lib/Geo/Proj4.pm
cp lib/Geo/Proj4.pod blib/lib/Geo/Proj4.pod
--- Proj4.c ---
mv Proj4.xsc Proj4.c
--- Proj4.o ---
cc -c -I/usr/local/include -I. -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -DVERSION="1.09" -DXS_VERSION="1.09" -DPIC -fPIC "-I/usr/local/lib/perl5/5.28/mach/CORE" Proj4.c
Proj4.xs:7:10: fatal error: 'projects.h' file not found
#include "projects.h"
^~~~~~~~~~~~
1 error generated.
*** [Proj4.o] Error code 1

@markov2
Copy link
Owner

markov2 commented May 28, 2019

Proj 5 and 6 are incompatible with release 4. Geo::Proj4 currently only supports library version 4. I am working on a solution (but that's quite hard to fix: the library does not implement backwards compatibility)

@markov2 markov2 added the duplicate This issue or pull request already exists label May 28, 2019
@wenheping
Copy link
Author

Thank your reply.
But Geo-Proj4 could build with proj-5.1.0.

ppisar added a commit to ppisar/perl5-Geo-Proj4 that referenced this issue Sep 9, 2019
Proj 6.2.0 depreacted some API and removed some (retrieving a list of
datums). This patch aims to make the XS code buildable with 6.2.0 as
well as with the previous Proj versions. The unaviable API is solved
by returning an empty list.

The code builds fine but some tests fail. Probably pj_fwd() changed
not only syntax (argument types), but also semantics. I have no
idea what proj did or should do. Any advice is welcome.

<markov2#1>
<markov2#3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants