Libgdx could not load the gdx freetype shared library for target Linux 32bit, how do I fix it?

I started using libgdx and tried to get freetype to work on Android, but no matter how hard I try, I can't get it to work. My application worked fine until I tried using freetypefont. I posted the extensions as directed on the libgdx website. The application will crash or stop working as soon as it starts.

The console says it failed to load the gdx-freetype shared library for 32-bit 32-bit. I feel like I've tried everything. I put the two main files freetype and freetype in the main game libraries, I put them on the desktop and only put freetype on Android. I used the latest nightly .so files for armeabi folders and still nothing. I also included an overnight build .so file for the x86 folder as suggested here, and still nothing. If anyone has anything about this, please help. Thank.

+3
source share
3 answers

For me, there was a decision to add the following for each project dependency in the build.gradle file https://github.com/libgdx/libgdx/wiki/Dependency-management-with-Gradle#freetypefont-gradle

+3

, , . ( "" ) :

libs/armeabi/libgdx-freetype.so:     ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, stripped
libs/armeabi-v7a/libgdx-freetype.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, stripped

, , . FWIW, (1.0-SNAPSHOT).

, ARM Android, . x86 Android, , freetype .

+2

The problem was that for some reason libgdx.soit was not copied to any of the folders armeabi, armeabi-v7aor x86to the android project project folder lib.

Copying these files from the libgdx distribution worked for me.

The setup-ui program just copies things from the libgdx distribution for you. You can find these folders there.

0
source

All Articles