userapps icon indicating copy to clipboard operation
userapps copied to clipboard

sdl2_image依赖安装失败

Open lovelxc opened this issue 2 years ago • 4 comments

系统: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

lovelxc avatar Oct 18 '23 11:10 lovelxc

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

lovelxc avatar Oct 18 '23 11:10 lovelxc

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

xqyjlj avatar Oct 19 '23 03:10 xqyjlj

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

xqyjlj avatar Oct 19 '23 03:10 xqyjlj

试试这个分支? https://github.com/RT-Thread/userapps/pull/51

xqyjlj avatar Dec 15 '23 09:12 xqyjlj