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

GDAL Built for Apple ARM #243

Open
Bio7 opened this issue Mar 23, 2022 · 0 comments
Open

GDAL Built for Apple ARM #243

Bio7 opened this issue Mar 23, 2022 · 0 comments

Comments

@Bio7
Copy link

Bio7 commented Mar 23, 2022

I have a question regarding the built of GDAL with WorldWind.

Since there is no built shipped with WorldWind I compiled GDAL 3.4.2 with Java from the sources which took me a while to figure out all dependencies and linker options.

I left out the MrSID dependency since there is no built available at the moment for ARM.

However I try to understand how GDAL for WorldWind was configured to create a single dynamic library
as described in the repository:

To simplify deployment, our GDAL+PRO4+MRSID bundles are compiled as a single dynamic library
that has all dependent libraries statically compiled.

So any hints how you configured GDAL to create one .dylib for WorldWind would be a help.

At the moment I configure GDAL like this:

CPPFLAGS=-I/usr/local/lib/include LDFLAGS=-L/Usr/local/lib ./configure --with-java --with-jvm-lib=/Applications/Eclipse.app/Contents/MacOS/jdk/Contents/Home --with-threads --without-grass --with-jasper --with-libtiff --with-jpeg= --with-gif --with-png --with-geotiff --with-pcraster=internal --with-geos --with-proj --with-expat --with-curl --with-netcdf --with-hdf5

Then I execute make (or for a static lib: make static-lib)

After that I change to the swig/java directory and create the java *.jar (My JDK is bundled within the Eclipse.app)

make CFLAGS="-I/Applications/Eclipse.app/Contents/MacOS/jdk/Contents/Home/include -I/Applications/Eclipse.app/Contents/MacOS/jdk/Contents/Home/include/darwin"

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

No branches or pull requests

1 participant