Thank you for your time, much appreciated! > In general it should be the same object files as when building natively
Could you please elaborate on that a little bit? Native compilation usually just means calling ./configure and make to me. Open source project, lots of folders and makefiles - could I read the files needed for emscripten compilation out of the makefile.am files' contents somehow (there are a lot of them)? The order of .o files doesn't matter. If you link with .a files, however, > then it does. > The program I am trying to port with emscripten uses zlib1g-dev library, which has libz.a file. Could you point me to the right direction as to how I find out the correct order (again, should I rummage through makefile.am files)? You can use llvm-nm to see which symbols are in a file. If you have > multiple main()s, then you should find out where that comes from, and link > in just the right main out of all of them. So am I right to say the right course of action would be to.. 1. Download the main programs source and all of the dependancies' source. 2. Compile main program and dependancies with emconfigure ./configure and emmake make 3. run *emcc <list of main project bitcode files> -o output.html* to get warnings on the unresolved symbols: *warning: unresolved symbol: glob warning: unresolved symbol: globfree warning: unresolved symbol: pixClone warning: unresolved symbol: boxaCreate* etc.. 4. run *llvm-nm <list of dependancies' bitcode files>* to find out which bitcode files contain: *T glob = glob.h (from libc library) T globfree = glob.h (from libc library) T pixClone = pix1.o (from leptonica library) T boxaCreate = boxbasic.o (from leptonica library) etc.. * 5. running *emcc <list of main project bitcode file> <list of library bitcode files identified in the previous list item> -o output.html* -- 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.
