We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
so I followed the specified steps to build SDL2_image, I did as README-emscripten.txt specified. the command:
README-emscripten.txt
$: emconfigure ./configure --disable-sdltest --with-sdl-prefix=/mycustompath --prefix=/mycustompath
has succeeded, however when I run
$: emmake make
the following error promps out:
$: emmake make /bin/sh ./libtool --tag=CC --mode=compile emcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_image\" -DVERSION=\"2.0.0\" -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -MT IMG.lo -MD -MP -MF .deps/IMG.Tpo -c -o IMG.lo IMG.c libtool: compile: emcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_image\" -DVERSION=\"2.0.0\" -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -MT IMG.lo -MD -MP -MF .deps/IMG.Tpo -c IMG.c -fPIC -DPIC -o .libs/IMG.o IMG.c:184:23: error: use of undeclared identifier 'SDL_RWOPS_STDFILE' if ( src->type == SDL_RWOPS_STDFILE ) { ^ IMG.c:189:74: error: no member named 'stdio' in 'union SDL_RWops::(anonymous at /home/hrt/Schoolspace/Capstone/Libraries/emsdk_portable/emscripten/master/system/include/SDL/SDL_rwops.h:83:5)' data = emscripten_get_preloaded_image_data_from_FILE(src->hidden.stdio.fp, &w, &h); ~~~~~~~~~~~ ^ 2 errors generated. ERROR:root:compiler frontend failed to generate LLVM bitcode, halting make: *** [IMG.lo] Error 1
I appreciate the help.
The text was updated successfully, but these errors were encountered:
I'd recommend trying -- https://github.com/emscripten-ports/SDL2_image
It's a more up-to-date and maintained version of this.
Sorry, something went wrong.
Thanks for replying,
Funny thing, I tried it first.
It seems to have the same error.
I've poked the maintainers on emscripten-ports/SDL2_image#5
Hopefully they'll have a look at it, otherwise I'll take a look over the weekend and follow up on that issue.
Thank you!
No branches or pull requests
Hello,
so I followed the specified steps to build SDL2_image, I did as
README-emscripten.txt
specified.the command:
has succeeded, however when I run
the following error promps out:
I appreciate the help.
The text was updated successfully, but these errors were encountered: