### Torque2D on Patreon

2D version of the Torque engine.

Moderator: marauder2k9

• 1
• 3
• 4
• 5
• 6
• 7

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am
Major Problem:

Now coming up to the time to release the app on the play store im building the signed apk for upload and there is an error everytime i try to build

error: undefined reference to 'png_init_filter_functions_neon'

i have no idea even where to begin with fixing this ive tried everything i could find on github and stackoverflow

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am
sorted it! Add this to Application.mk

APP_CFLAGS += -DPNG_ARM_NEON_OPT=0

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am
last problem i ran into after uploading to the play store and all and getting everything ready for release an error came up, as of august 2019 all apps must include support for 64bit, basically arm64-v8a

#elif defined(__aarch64__)
#  define TORQUE_CPU_STRING "ARM"
#  define TORQUE_CPU_ARM
#  define TORQUE_LITTLE_ENDIAN
#  define TORQUE_64
then to Android.mk at the bottom before LOCAL_ARM_MODE := arm
ifeq ($(TARGET_ARCH_ABI),$(filter \$(TARGET_ARCH_ABI), arm64-v8a))
LOCAL_CFLAGS := -DHAVE_NEON=1
LOCAL_ARM_NEON := true
endif
in Application.mk
APP_ABI   := armeabi-v7a x86 x86_64 arm64-v8a
and finally in the build.gradle for the app
abiFilters 'x86', 'x86_64', 'armeabi-v7a' , 'arm64-v8a'
folders had to be created for the prebuilt libraries for freetype and openal and i copied over the prebuilt libraries for armeabi-v7a, everything seems to build and work fine but i think arm64-v8a will require its own prebuilt libraries.

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am
Okay arm64-v8a definitely needs its own libraries error message output

libfreetype.a: error adding symbols: File in wrong format

i cant release my game because of it now. Can anyone build the prebuilt libraries for android? I cant seem to get it to work. Tried cygwin and even tried building on my linux virtual machine and cant figure it out

The two prebuilt ones are freetype and openal

#### Re: Torque2D on Patreon

greenfire27
Posts: 48
Joined: Tue Nov 03, 2015 8:18 pm

You should probably move that question to it's own thread. Maybe someone with some Android knowledge will spot it and help you out.

Wish I could help, but I've done painfully little with Android.

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am
its okay after some more digging i got libraries made for arm64 and im now putting it up on the store!

some of these changes may need to be added to the repo, part of the reason why i was putting so many posts here was because im keeping track of what im doing, these will probably need to be made available to people as a pull request, especially since google is making it mandatory and in 2021 its going to be that no 32bit app is going to be supported only 64bit

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am
YUP THAT WORKED!! App is now up on the Play store and will be released after google checks it out which should be within 7 days!!!

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am
received an email from google saying about a vulnerability in libpng library and had to update the libpng to 1.5.26 hopefully that will sort things out

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am
Yeah it seems to be grand now. no errors on play console showing up, some of the changes i have made will need to be added to the git for android developers so they can be released on play store since google is making it mandatory for 64bit.

Another thing, ive created a few scripts that do certain functions that come easy in other game development kits, i will collate these all together into the ToyAssets with their own folder and documentation on what they do and how to use them when i get a chance

#### Re: Torque2D on Patreon

marauder2k9
Posts: 418
Joined: Wed Feb 18, 2015 7:36 am