xmake f -a aarch64命令报错

Open
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c
Domain
build-system

Research direction

Start by reproducing xmake f -a aarch64 and inspect the SDL2 package and linker configuration involved in the failed installation. Done means the aarch64 configuration installs SDL2 successfully without the reported undefined references to SDL_Init.

Written by the indexing model from the issue text.

Description

在执行 xmake f -a aarch64 命令时报下面的错误
=> install sdl2 2.0.16 .. failed

/root/.xmake/packages/a/aarch64-smart-musleabi/236309-e8ed057a81/92ace334959c4a2c9fc34a7aa7427678/bin/../lib/gcc/aarch64-linux-musleabi/12.2.0/../../../../aarch64-linux-musleabi/bin/ld: /tmp/.xmake0/250910/_492F801E26CE4030876A00F13DDEFB60.o: in function main': _96C6C5DB4540489984B0E45C2FA97F27.c:(.text+0xc): undefined reference to SDL_Init'
/root/.xmake/packages/a/aarch64-smart-musleabi/236309-e8ed057a81/92ace334959c4a2c9fc34a7aa7427678/bin/../lib/gcc/aarch64-linux-musleabi/12.2.0/../../../../aarch64-linux-musleabi/bin/ld: _96C6C5DB4540489984B0E45C2FA97F27.c:(.text+0x10): undefined reference to `SDL_Init'
collect2: error: ld returned 1 exit status

Dominant language
C
Stars
29
Forks
37
PR merge metrics
No merged PRs in 30d

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.

More from RT-Thread/userapps

All issues in RT-Thread/userapps

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.