Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

sdl2_image依赖安装失败 #42

Open
lovelxc opened this issue Oct 18, 2023 · 4 comments
Open

sdl2_image依赖安装失败 #42

lovelxc opened this issue Oct 18, 2023 · 4 comments

Comments

@lovelxc
Copy link

lovelxc commented Oct 18, 2023

系统: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
Copy link
Author

lovelxc commented Oct 18, 2023

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

@xqyjlj
Copy link
Collaborator

xqyjlj commented Oct 19, 2023

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

@xqyjlj
Copy link
Collaborator

xqyjlj commented Oct 19, 2023

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

xqyjlj added a commit to xqyjlj/userapps that referenced this issue Dec 15, 2023
@xqyjlj
Copy link
Collaborator

xqyjlj commented Dec 15, 2023

试试这个分支? #51

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants