Oh right - if you're using --preload-file as part of emcc/em++, then a
separate file_data.js will not get generated, but the contents of that file
will be embedded at the start of the normal .js file output. Try seaching
the start of your output .js file for lines like
new DataRequest(51084, 51908, 0, 0).open('GET', '/DrawBatchPS.cso');
that shows the VFS structure. If you use the file_packager.py directly,
then there is a separate file_data.js that will get generated.
2014-02-18 9:07 GMT+02:00 Mark Callow <[email protected]>:
> On 2014/02/13 19:09, Jukka Jylänki wrote:
>
> You can use the syntax --preload-file srcpath@dstpath to choose which
> directory to place the source content into. See e.g. comments in this
> issue: https://github.com/kripken/emscripten/issues/486 . Also, you can
> open up the created file_data.js file to examine the path names of the
> files that were generated there. Does that help?
>
> I can't find file_data.js. The only js file I see in the $(OutputDir) is
> the one containing the compiled application. There is a *.data file but
> that is binary. Is there some link flag I need to set for that file to be
> created?
>
> 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/groups/opt_out.
>
--
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/groups/opt_out.