"platform not supported" is due to an ifdef in that file. You need to see what is going on there, and perhaps add an #ifdef EMSCRIPTEN alongside the other OSes that are supported there.
- Alon On Tue, Mar 25, 2014 at 2:19 PM, Erasme Beck <[email protected]> wrote: > 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. > > I found this thread talking about using boost with Emscripten: > http://stackoverflow.com/questions/15724357/using-boost-with-emscripten/15732854#15732854 > > 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. > > -- > 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. > -- 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.
