Boost logo

Boost :

Subject: Re: [boost] boost build with emscripten
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2017-01-23 10:11:55


On Sat, Jan 21, 2017 at 6:08 PM, Emil Dotchevski <emildotchevski_at_[hidden]>
wrote:

> On Fri, Jan 20, 2017 at 7:15 PM, Rene Rivera <grafikrobot_at_[hidden]>
> wrote:
>
> > I think I fixed it, on develop branch. Try it now. Note that for the path
> > you either have to escape the back slashes (use \\), or use the forward
> > slash (/) separator.
>
>
> Thank you so much - it seems this did fix that problem but I still get
> errors, see below. The command line used is variant=debug
> toolset=emscripten <target>. Using toolset=msvc-14.0 works fine.
>
> Is there a valid simple test case I can try?
>

The simple hello example in bbv2 works fine for me <
https://github.com/boostorg/build/tree/develop/example/hello>:

===
Coqui:hello grafik$ b2 toolset=emscripten -d+2
common.mkdir bin

        mkdir -p "bin"

common.mkdir bin/emscripten-1.36.5

        mkdir -p "bin/emscripten-1.36.5"

common.mkdir bin/emscripten-1.36.5/debug

        mkdir -p "bin/emscripten-1.36.5/debug"

emscripten.compile.c++ bin/emscripten-1.36.5/debug/hello.bc

    "/Developer/Tools/emscripten/emscripten/tag-1.36.5/emcc" -x c++ -O0
-fno-inline -Wall -g4 -s DEMANGLE_SUPPORT=1 -c -o
"bin/emscripten-1.36.5/debug/hello.bc" "hello.cpp"

emscripten.link bin/emscripten-1.36.5/debug/hello.js

    "/Developer/Tools/emscripten/emscripten/tag-1.36.5/emcc" -o
"bin/emscripten-1.36.5/debug/hello.js"
"bin/emscripten-1.36.5/debug/hello.bc" -O0 --llvm-lto 0 -g4 -s
DEMANGLE_SUPPORT=1

warning: emitted code will contain very large numbers of local variables,
which is bad for performance (build to JS with -O2 or above to avoid this -
make sure to do so both on source files, and during 'linking')
Coqui:hello grafik$ node ./bin/emscripten-1.36.5/debug/hello.js
Hello!
Coqui:hello grafik$
===

Try that one.

-- 
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk