Skip to content

sdl2_image依赖安装失败 #42

Open

Description

@lovelxc

系统:debian 12
xmake版本:v2.8.3+20231018,
执行命令xmake f -a aarch64时,显示

  => install aarch64-smart-musleabi 188177 .. ok
  => download https://github.com/libsdl-org/SDL_image/archive/refs/tags/release-2.0.5.tar.gz .. ok
  => install sdl2_image 2.0.5 .. failed

具体报错情况如下:

...
mv -f .deps/IMG_WIC.Tpo .deps/IMG_WIC.Plo
mv -f .deps/showimage.Tpo .deps/showimage.Po
IMG_webp.c:42:10: fatal error: webp/decode.h: No such file or directory
   42 | #include <webp/decode.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:619: IMG_webp.lo] Error 1
make: *** Waiting for unfinished jobs....
mv -f .deps/IMG_tif.Tpo .deps/IMG_tif.Plo
mv -f .deps/IMG_pcx.Tpo .deps/IMG_pcx.Plo
mv -f .deps/IMG_xv.Tpo .deps/IMG_xv.Plo
mv -f .deps/IMG_pnm.Tpo .deps/IMG_pnm.Plo
mv -f .deps/IMG.Tpo .deps/IMG.Plo
mv -f .deps/IMG_tga.Tpo .deps/IMG_tga.Plo
mv -f .deps/IMG_jpg.Tpo .deps/IMG_jpg.Plo
mv -f .deps/IMG_xpm.Tpo .deps/IMG_xpm.Plo
mv -f .deps/IMG_lbm.Tpo .deps/IMG_lbm.Plo
mv -f .deps/IMG_gif.Tpo .deps/IMG_gif.Plo
mv -f .deps/IMG_bmp.Tpo .deps/IMG_bmp.Plo
mv -f .deps/IMG_xcf.Tpo .deps/IMG_xcf.Plo
mv -f .deps/IMG_png.Tpo .deps/IMG_png.Plo
mv -f .deps/IMG_svg.Tpo .deps/IMG_svg.Plo

Activity

  1. lovelxc commented on Oct 18, 2023

    @lovelxc
    Author

    一个比较蠢的办法就是,把apps/player文件夹下的xmake.lua关于sdl2_image的全部注释掉,再把系统上的SDL_image.h放入player文件夹,再把main.c的#include <SDL_image.h>改成#include "SDL_image.h"

  2. xqyjlj commented on Oct 19, 2023

    @xqyjlj
    Collaborator

    奇怪了,webp在SDL_image应该是disable状态的,难道在debian的configure过程中勿开了?

  3. xqyjlj commented on Oct 19, 2023

    @xqyjlj
    Collaborator

    image
    好吧,默认是开启的,ubuntu上configure会自动检测到不支持然后自动disabled的,我下个版本修一下

  4. added a commit that references this issue on Dec 15, 2023
  5. xqyjlj commented on Dec 15, 2023

    @xqyjlj
    Collaborator

    试试这个分支? #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions