Porting a large project using emscripten

286 views
Skip to first unread message

Guillaume Leclerc

unread,
Jul 3, 2015, 10:41:18 AM7/3/15
to emscripte...@googlegroups.com
Hello,

I'am actually trying to port a scientific project to Javascript using emscripten.

The first part I want to achieve is to compile the dependencies. These are the dependencies of the project  :

I have a lot of question I hope somebody has the time to answer me :


  1. I compiled protobuf from https://github.com/invokr/protobuf-emscripten, The compilation was correct I think but I got this message : "ignoring dynamic library libprotoc.so because not compiling to JS or HTML, remember to link it when compiling to JS or HTML at the end". In the documentation we can read : "The file output from make might have a different suffix: .a for a static library archive, .so for a shared library". How my file can have ".so" as an extension if the tool always ignore ".so" files. How can I build the library ? Do I have to link every ".o" files ?
  2. I want to build OpenSceneGraph. I saw someone already tried to port it (see https://github.com/Kurdakov/emscripten_OSG) but it seems it only work with visualstudio, and it does not say which modules are working and which are not. Do you think I should make my own port, or I can try to reuse his work ? If I have to port it myself what is the process ?
  3. I managed to build OpenDynamicsEngine from source but I got an archive file. In the documentation it states that it would be better to have a .so file. Do you think a ".a" would work ?

Best regards and thanks for your help !


Guillaume Leclerc

chronotext

unread,
Jul 21, 2015, 5:38:15 AM7/21/15
to emscripte...@googlegroups.com
For the record:

I was able to build (via CMake) a recent (3+) version of Google protobuf for Emscripten and a few other platforms:


HTH,
Ariel

Guillaume Leclerc

unread,
Jul 21, 2015, 6:15:29 AM7/21/15
to emscripte...@googlegroups.com
Thank you but the 2.6 version worked perfectly for me, my project was using (2.5 anyway). In the end I was able to port all these libraries and my project is now ported. If anyone needs help feel free to ask.

--
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/NVI2eIkQMdg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages