Open hedwiggggg opened 3 years ago
Indeed we don't include libltdl as part of emscripten. You would need to build and install that library from source if you want to use. We do include some libraries (see tools/ports) but libltdl is not one of them.
Hey @sbc100, thank you for the fast response! I'm not quite sure If I quite undestand, what you mean.
But if I understand you correctly, it would be enough to download the libltdl source, compile it and install it on the system?
Basically, you would need to compile it and install it somewhere that emscripten can find when you run those configure tests for it.
Ideally it would be possible to configure libgphoto2 to completely avoid the libltdl dependency, especially since emscripten support for dlopen is somewhat limited and complicated. Better to avoid dynamic linking if you can.
You mean something like Nish did it with zip in this article?
Hey, sorry for the issue. I'm basically a newbie with emscripten, build chains and stuff. So i'm not kinda sure, if it's a problem with emscripten.
The problem is the following: I want to build libgphoto2 as wasm and made a docker container for it. libgphoto itself build's fine, by running
but wrapping it in emscripten with
will throw
I debugged a bit and removed the the check in configure, but the the build will fail, because it doesn't find
ltdl.h
.But adding
right before the failing checks in ./configure will print
Because of this I thought this could be an issue with emscripten. Maybe someone had a similar Issue (though I have researched a lot and could not find anything) and can help me with this.
The Dockerfile I created is the following: