Hmm,
So I had two separate-ish dependency management issues:
1) How can I use emscripten ports with emconfigure. This isn't
described in the documentation, and was why I compiled libpng and zlib
manually. For my application I still would have needed to do libjpeg
and libgd, but this would have simplified it some. I think this one is
probably possible, but I just missed how.
2) What is the expected workflow for using dependencies that aren't
provided by emscripten ports, especially if some of them transitively
do depend on ones that are provided by ports.
For the second issue, the "natural" way to cross compile nontrivial
programs like this would be to set up a prefix, importantly containing
an include, lib and lib/pkgconfig, and then compile each dependency
and install it into the prefix. The configure scripts (or cmake or
whatever) could then be all pointed to that prefix, and would
automatically find how to link against each other, etc. At the end
you'd have a bitcode file (instead of an ELF), and then would just
have to add one final step to compile this to javascript.
Obviously with emscripten there are still going to be some hiccups,
but it would provide a more intuitive experience for folks that are
used to cross-compilation or other compilation involving non-system
libs.
Anyway, just wanted to bring it to your attention/open up the issues
for discussion. I was able to get my stuff successfully working, it
was just kind of bumpy :)
Cheers,
Allan
>>> email to
emscripten-disc...@googlegroups.com.
>>> 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
emscripten-disc...@googlegroups.com.
> You received this message because you are subscribed to a topic in the
> Google Groups "emscripten-discuss" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/emscripten-discuss/cqYZCu5ELh0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
emscripten-disc...@googlegroups.com.