mapsforge / vtm

OpenGL vector map library - running on Android, iOS, Desktop and browser.
GNU Lesser General Public License v3.0
273 stars 89 forks source link

Desktop: Apple ARM support #1004

Open devemux86 opened 1 year ago

devemux86 commented 1 year ago

Couldn't load shared library 'libvtm-jniarm64.dylib' for target: Mac OS X, ARM, 64-bit

We probably need to create new desktop VTM native libraries for Mac OS (x64 + arm64). (gdx-platform natives-desktop jar includes .dylib for both architectures)

devemux86 commented 1 year ago

LWJGL 2 does not seem to be maintained anymore and only supports Apple x86. (but works easily with Swing)


LWJGL 3 supports Apple ARM. (but does not seem to work easily with Swing)


libGDX provides native libs for Apple ARM. (but not Windows ARM)

devemux86 commented 1 year ago

Until VTM + LWJGL 2 native libs for Apple ARM are created...

There is also the Rosetta translator: https://support.apple.com/en-us/HT211861

"Rosetta 2 enables a Mac with Apple silicon to use apps built for a Mac with an Intel processor."

treee111 commented 8 months ago

I heard that VTM needs help from a developer with ARM here: https://github.com/devemux86/cruiser/discussions/20?notification_referrer_id=NT_kwDOAylNybM1NDAyMTc1NDI5OjUzMDM4NTM3#discussioncomment-8764482.

I have an mac ARM, how could that help be provided, what needs to be done?

devemux86 commented 8 months ago

@treee111 thanks for the help! :+1:

It has been many years since I built all the VTM native libraries, and now I don't have that build environment available anymore:

Probably can start from vtm/jni, but this needs search and know how it could be done.