Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

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

Description

@derrandz

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.

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