Skip to content
New issue

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

error: no member named 'stdio' in 'union SDL_RWops:: while building #3

Closed
derrandz opened this issue Apr 5, 2016 · 4 comments
Closed

Comments

@derrandz
Copy link

derrandz commented Apr 5, 2016

Hello,

so I followed the specified steps to build SDL2_image, I did as README-emscripten.txt specified.
the command:

$: 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.

@derrandz derrandz closed this as completed Apr 5, 2016
@derrandz derrandz reopened this Apr 5, 2016
@gsathya
Copy link
Owner

gsathya commented Apr 5, 2016

I'd recommend trying --
https://github.com/emscripten-ports/SDL2_image

It's a more up-to-date and maintained version of this.

@derrandz
Copy link
Author

derrandz commented Apr 5, 2016

Thanks for replying,

Funny thing, I tried it first.

It seems to have the same error.

@gsathya
Copy link
Owner

gsathya commented Apr 5, 2016

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.

@gsathya gsathya closed this as completed Apr 5, 2016
@derrandz
Copy link
Author

derrandz commented Apr 5, 2016

Thank you!

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

No branches or pull requests

2 participants