Hello!
I'm trying to compile the boost libraries with emscripten.
The turorial for building projects says:
emconfigure ./configure
emmake make
emcc [-Ox] project.bc -o project.js
Unfortunately, boost doesn't use configure and make but jam instead.
After the following change in the project-config.jam, he managed to compile boost:
if ! gcc in [ feature.values <toolset> ]
{
using gcc : : "/full/path/to/em++" ;
}
I doesn't work for me.
I have too many errors to be pasted here but here are the first I run into:
erasme$ ./b2
ERROR root: no input files
...
WARNING root: emcc: cannot find library "rt"
...
libs/context/src/unsupported.cpp:7:2: error: "platform not supported"
#error "platform not supported"
^
1 error generated.
ERROR root: compiler frontend failed to generate LLVM bitcode, halting
"em++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1 -DBOOST_CONTEXT_SOURCE -DNDEBUG -I"." -c -o "bin.v2/libs/context/build/gcc/release/threading-multi/unsupported.o" "libs/context/src/unsupported.cpp"
...failed gcc.compile.c++ bin.v2/libs/context/build/gcc/release/threading-multi/unsupported.o...
...skipped <pbin.v2/libs/context/build/gcc/release/threading-multi>libboost_context.so.1.55.0 for lack of <pbin.v2/libs/context/build/gcc/release/threading-multi>unsupported.o...
...skipped <pstage/lib>libboost_context.so.1.55.0 for lack of <pbin.v2/libs/context/build/gcc/release/threading-multi>libboost_context.so.1.55.0...
...skipped <pstage/lib>libboost_context.so for lack of <pstage/lib>libboost_context.so.1.55.0...
Thank you for your help.