On 08/07/2014 16:57, Mark Callow wrote:
> I am trying to use your GitHub emscripten fork that contains the SDL2
> libraries. I was hoping to avoid having to build SDL2 myself. I just
> tried that and the emconfigure step is failing, as noted in another
> thread.
>
> Is it necessary to add -lSDL2 to my link command? I was expecting that
> since I was using your fork, emcc would automatically search the SDL2
> libraries.
>
> The error I am seeing is because it looks like some source is being
> compiled during the link step when no -I is defined (and in VS cannot
> be defined) so the SDL includes are not found. I have been unable to
> figure out what file is being compiled from source.
>
I managed to get my application to build using emscripten 1.21.0 and the
following steps

  * Copy system/lib/libSDL2.a from your fork of Emscripten to my
    project's "other_lib" area
  * Add -lSDL to AdditonalDependencies
  * Add <path to my other_lib area> to AdditionalLibraryDirectories

However nothing is being drawn and no error messages output. The only
output in the console is echoing of the GETs for the .html, .js and
.data files and "pre-main prep time: 45 ms". I will now debug it.

The difference from last week is that I was using emscripten 1.16.0
then. I had changed EMSCRIPTEN_ROOT in ~/.emscripten to my clone of your
fork but had failed to change EMSCRIPTEN in my global environment, which
is what vs-tool uses to select emcc.

Regards

    -Mark

-- 
注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合
が有ります。正式なメール受信者では無い場合はメール複製、 再配信または情
報の使用を固く禁じております。エラー、手違いでこのメールを受け取られまし
たら削除を行い配信者にご連絡をお願いいたし ます.

NOTE: This electronic mail message may contain confidential and
privileged information from HI Corporation. If you are not the intended
recipient, any disclosure, photocopying, distribution or use of the
contents of the received information is prohibited. If you have received
this e-mail in error, please notify the sender immediately and
permanently delete this message and all related copies.

-- 
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