Brion:

Is there an "export all" option?

Thanks,
Jeff

On Mon, Jul 6, 2015 at 11:34 AM, gonzobrains <[email protected]> wrote:

> Automatic removal was my initial suspicion as well.  I guess explicit
> exporting is what others have done when using speex in the past.  I'll give
> that a shot.  Thanks!
>
> On Monday, July 6, 2015 at 12:19:38 AM UTC-7, Brion Vibber wrote:
>>
>> Unused functions are removed automatically by the linker, so this is
>> normal behavior.
>>
>> You'll need to either use some of the library functions from your main
>> function, or export some functions explicitly. See the "notes" box on
>> http://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html
>>
>> To make functions easier to identify in a search of the JS output try
>> using the --profiling option on the final compilation ; this maintains
>> function names and such instead of minifying them all.
>>
>> -- brion
>>
>> On Sunday, July 5, 2015, Jeff Gonzales <[email protected]> wrote:
>>
>>> I will try that; I just thought I would see somethink speex related
>>> within the generated file.  Is there anything I can search for within the
>>> file?
>>>  On Jul 5, 2015 9:58 PM, "Alon Zakai" <[email protected]> wrote:
>>>
>>>> Building the .a file into js creates a file with the libspeex library
>>>> in it. But it doesn't have a main() function. Perhaps link it with an
>>>> example program, then run that?
>>>>
>>>>
>>>> On Sun, Jul 5, 2015 at 6:49 PM, gonzobrains <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi everyone,
>>>>>
>>>>> I have been trying to build libspeex but have ran into a few
>>>>> problems.  I seem to have the emscripten portable SDK set up okay in an
>>>>> Ubuntu 14 VM, but there were a few tests that failed.
>>>>>
>>>>> Despite that, I ran emconfigure ./configure and emmake make, and can
>>>>> see libspeex.a and libspeex.so were built.
>>>>>
>>>>> I can even run llvm-nm and can inspect their contents.  However, if I
>>>>> try something like the following:
>>>>>
>>>>> emcc -O2 libspeex.a -o libspeex.js
>>>>>
>>>>> I get a file that seems to have "boilerplate" stuff but nothing
>>>>> specific to speex.
>>>>>
>>>>> What am I doing wrong?  I noticed there is a guy on Github who was
>>>>> able to do this so I'd like to be able to do the same thing myself:
>>>>>
>>>>> https://github.com/jpemartins/speex.js/
>>>>>
>>>>> I would just stick what he has done but the examples don't seem to
>>>>> work, so I'd like to start from scratch.
>>>>>
>>>>> Thanks,
>>>>> gb
>>>>>
>>>>>  --
>>>>> 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.
>>>>
>>>  --
>>> 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.
>

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