Skip to content

Update dependencies + improvements - #6

Merged
peerless2012 merged 19 commits into
peerless2012:masterfrom
moi15moi:Update-dep
Sep 8, 2026
Merged

peerless2012 merged 19 commits into
peerless2012:masterfrom
moi15moi:Update-dep

Conversation

@moi15moi

@moi15moi moi15moi commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

This help to have much better performance with libass.
When libass use the flag --enable-asm, it use nasm, so we need to install it.
Without this, I was getting this error with libass:
```
checking for nasm... yes
checking if nasm supports vpmovzxwd... no
configure: WARNING: nasm is too old (found NASM version 2.16.01); ASM functions are disabled.
configure: WARNING: Install nasm-2.10 or later for a significantly faster libass build.
configure: error: Assembly was requested, but cannot be built; see prior messages.
```
Fix this warning: `configure: WARNING: unrecognized options: --disable-docs`
As said in the android documentation (https://developer.android.com/ndk/guides/other_build_systems#autoconf), we only need to specify `--host`.
Also, CMAKE_C_COMPILER_TARGET doesn't contains the right value.
For the ABI armeabi-v7a, CMAKE_C_COMPILER_TARGET = armv7-none-linux-androideabi21. It should be armv7a-linux-androideabi.
For the ABI arm64-v8a, CMAKE_C_COMPILER_TARGET = aarch64-none-linux-android21. It should be aarch64-linux-android.
For the ABI x86, CMAKE_C_COMPILER_TARGET = i686-none-linux-android21. It should be i686-linux-android.
For the ABI x86-64, CMAKE_C_COMPILER_TARGET = x86_64-none-linux-android21. It should be x86_64-linux-android.
Without this, pkg-config could actually use system libraries because PKG_CONFIG_PATH simply add a path to search.

For example, in my case, since I have json-c installed on my system, I was getting this error `ld.lld: error: unable to find library -ljson-c` because fontconfig was trying to link to it.
Fix this error:
```
2026-09-08T00:16:52.3705815Z checking for FREETYPE... no
2026-09-08T00:16:52.3706403Z configure: error: Package requirements (freetype2 >= 21.0.15) were not met:
2026-09-08T00:16:52.3706874Z
2026-09-08T00:16:52.3707083Z Package 'zlib', required by 'freetype2', not found
2026-09-08T00:16:52.3707446Z
2026-09-08T00:16:52.3707743Z Consider adjusting the PKG_CONFIG_PATH environment variable if you
2026-09-08T00:16:52.3708382Z installed software in a non-standard prefix.
2026-09-08T00:16:52.3708715Z
2026-09-08T00:16:52.3739357Z Alternatively, you may set the environment variables FREETYPE_CFLAGS
2026-09-08T00:16:52.3740176Z and FREETYPE_LIBS to avoid the need to call pkg-config.
2026-09-08T00:16:52.3740726Z See the pkg-config man page for more details.
```
@peerless2012
peerless2012 merged commit 3394504 into peerless2012:master Sep 8, 2026
4 checks passed
@moi15moi
moi15moi deleted the Update-dep branch September 8, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants