Hi, On Tue, Jul 8, 2014 at 3:31 AM, Mark Callow <[email protected]> wrote: > 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 >
Did you copy the SDL2 directory from my fork's path/to/emscripten/system/include to your /path/to/emscripten/system/include as well? The -lSDL2 flag tells the emcc to link against SDL2 as opposed to SDL1.x iirc Thanks, --Sathya > 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. -- 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.
