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

'geos/platform.h' file not found #24

Closed
fbirot opened this issue May 27, 2015 · 4 comments
Closed

'geos/platform.h' file not found #24

fbirot opened this issue May 27, 2015 · 4 comments

Comments

@fbirot
Copy link

fbirot commented May 27, 2015

Hi there,

I just downloaded SpatialDBKit, installed cocoapods and made sure I had automake autoconf and libtool installed. When I do a "pod install" in the "SpatialDBKitExample" directory, it downloads and installs dependencies. Yet when I try to compile the SpatialDBKitExample project, I get the following error:

"Coordinate.h:19:10: 'geos/platform.h' file not found"

When I look in the "SpatialDBKitExample/Pods/geos/include/geos" folder, I indeed don't have any platform.h file, but only a platform.h.in file (same problem with version.h that is missing but has its version.h.in file).

I'm extremely new to cocoapods and don't know what it does when it "installs" geos (I can't see any configure.in file), but it seems that autoconf doesn't generate the expected platform.h file (nor the version.h one).

Any idea of what is happening ?

@andreacremaschi
Copy link
Owner

Everything looks ok to me.. You have to change spatialite.c:87 to

#include <spatialite/spatialite/spatialite.h>

but this fix an error that is not the one you describe, so I suppose you already did it. Which version of cocoa pods are you using?

@fbirot
Copy link
Author

fbirot commented May 28, 2015

Thank you for your answer.

I re-cloned the repository, tried again and it worked (sorry for not having tried that before).

I actually had an error the first time I executed "pod install", because it couldn't find autoconf. After fixing that I thought I only needed to execute "pod install" again, and that it should work like it was the first time (since I couldn't find any "pod uninstall" command), but apparently not. It apparently kept some bad configuration somewhere. I had even tried to delete Pods/geos before executing "pod install", but still had this problem.

But anyway, it now works :) Thank you for your time!

@andreacremaschi
Copy link
Owner

Ok, thank you for the hint, the case you describe could be better documented in the README. I'll let this open as a note to remember. Enjoy the pod! 🍺

@sauvikated
Copy link

I faced the same on pod version 1.6.1 on High Sierra. Finally fixed using

...
pod 'GEOSwift', '= 3.0.1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants