adaptagrams icon indicating copy to clipboard operation
adaptagrams copied to clipboard

Building Java Bindings with SWIG on Mac

Open dbinkele opened this issue 4 years ago • 0 comments

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.

dbinkele avatar Nov 11 '20 08:11 dbinkele