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

Building Java Bindings with SWIG on Mac #43

Open
dbinkele opened this issue Nov 11, 2020 · 0 comments
Open

Building Java Bindings with SWIG on Mac #43

dbinkele opened this issue Nov 11, 2020 · 0 comments

Comments

@dbinkele
Copy link

I stumbled over some obstacles in the above endeavor. First it is necessary to stick with 3.x version of SWIG. Mine was 3.0.12.
As you use C11 I had to add -std=c++11 to FATFLAGS in buildSWIGVersionForMac. Then during the java-compilation part the java compiler complained about doubled getters and setters of the class BoundingBox. I had to resolve that manually. But looking at graph.h there is the struct BoundingBox which contains 4 doubles x,X,y,Y. It seems this reuse of of x and y as capitalized letters caused the doubled getter/setter problem. Not sure if this is an issue or a bug. I simply wanted to point out this obstacles such that others are a bit more fortunate than I was.

Cheers && thanks for your work.

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

1 participant