mesonbuild / mesonbuild/wrapdb

SDL2 2.32.8-1 fails to link with OpenSLES for Android

Open
#2,621 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Meson
Stars
118
Forks
298
Avg merge
2d 2h
Merged PRs (30d)
24

Description

I'm getting `ld.lld: error: undefined symbol: SL_IID_VOLUME` when trying to compile my Project for Android. `SL_IID_VOLUME` belongs to `libOpenSLES.so` which is available in the host sysroot but the wrap doesn't even try to find OpenSLES.

In `meson.build:1301` it says (`sys_audio_driver = ['opensles', 'android']`) but `sys_audio_driver` isn't used anywhere. There are also various other `sys_*` variables that are assigned to but never used.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in meson.build around line 1301 and inspect how sys_audio_driver and the other sys_* variables are assigned and consumed. Reproduce the Android link failure, then verify that the OpenSLES dependency is discovered from the host sysroot and that the Android project links successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.