You should not need sdl2-config, if using SDL2 from ports. Building and
linking with -s USE_SDL=2 should be enough.

We should probably make an sdl2-config script that just emits -s USE_SDL=2.

- Alon


On Fri, Dec 12, 2014 at 12:56 PM, Dan Stromberg <[email protected]> wrote:
>
> I'm trying to get some SDL2 code building on emscripten.
>
> I've used:
>     emcc -c testsw.cpp -s USE_SDL=2 -s LEGACY_GL_EMULATION=1 -g -O
> $(sdl2-config --cflags) -std=c++11 -Wall -Wuninitialized -Wshadow
> -Wno-non-virtual-dtor -Wno-delete-non-virtual-dtor -Wno-multichar
>
> ...and it does appear to be building SDL2 under ~/.emscripten_cache,
> but I'm not getting an sdl2-config.  Do I need to do something more to
> get an sdl2-config?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to