Open Arghnews opened 4 years ago
Hi @Arghnews,
Thanks a lot for reporting, yes, the documentation about emscripten is outdated, we will update it as soon as possible.
I think that the error with version 1.39.13
was solved in this PR: https://github.com/bincrafters/conan-emsdk_installer/pull/8 at least for the testing
version so please check if updating the recipe to that one solves your issue. It was reverting a change that arch
setting could take the value asm.js
or wasm
that are the only supported.
If you have further issues with that recipe you can open an issue also in the bincrafters conan-emsdk_installer repo: https://github.com/bincrafters/conan-emsdk_installer
Hi @czoido , thanks for your reply.
I do not believe that the testing/1.39.13
branch for the conan-emsdk_installer
is available yet on bincrafters - I only see the stable branches with a conan search so I'm unable to test it. It looks that PR does indeed fix this issue though.
Also the https://github.com/bincrafters/conan-emsdk_installer repo doesn't seem to allow issues to be opened so I'm unsure how I'd open one there - there is no Issue button for me at least.
I can just use emsdk_installer/1.38.29@bincrafters/stable
for now as per the example page and it works so that's great.
Could I ask a related question. The build script from the [https://docs.conan.io/en/latest/integrations/cross_platform/emscripten.html](hello world emscripten) example uses this build script:
conan remove conan-hello-emscripten/* -f
conan create . conan/testing -pr emscripten.profile --build missing
conan install conanfile.txt -pr emscripten.profile
How would I be able to change this to do a more usual out of source cmake build like
# Change "include(conanbuildinfo.cmake)" in CMakeLists.txt to "include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)"
# From emscripten hello world root
mkdir build && cd build/
conan install .. -pr ../emscripten.profile --build missing
cmake ..
cmake --build .
This doesn't work, nor does it work if I add emcmake
in front of the cmake ..
call etc.
If the scope of this is too great I will make a new issue, cheers.
Hi @Arghnews
I do not believe that the
testing/1.39.13
branch for theconan-emsdk_installer
is available yet on bincrafters - I only see the stable branches with a conan search so I'm unable to test it. It looks that PR does indeed fix this issue though.
Yes, it is not in bincrafters conan repo, I meant that maybe you could test locally that branch from the github repo branch testing/1.39.13
: https://github.com/bincrafters/conan-emsdk_installer
Also the https://github.com/bincrafters/conan-emsdk_installer repo doesn't seem to allow issues to be opened so I'm unsure how I'd open one there - there is no Issue button for me at least.
I think that the place to submit an issue is here: https://github.com/bincrafters/community/issues
This doesn't work, nor does it work if I add
emcmake
in front of thecmake ..
call etc.
What error are you getting? For me this is working:
# Change "include(conanbuildinfo.cmake) ...
source activate.sh
mkdir build && cd build
conan install .. -pr ../emscripten.profile --build missing
emcmake cmake ..
cmake --build .
Hope this helps.
Hi @czoido ,
Thanks for the information about the branch locally and the place to submit the issue.
And ahh, I didn't think to source the activate.sh
script to set the environment up, yes that all seems to work perfectly.
Thanks for all your help and timely responses, I appreciate it.
I am trying to follow the conan emscripten hello world example here on Ubuntu.
I run
build.sh
runs the commandsThe
emscripten.profile
file in the current directory contains in the[build_requires]
section:This all works fine.
If I change the emsdk to
emsdk_installer/1.39.6@bincrafters/stable
this results in an error at link time (bigger log posted at the end) with output likewasm-ld: error: zutil_49ed71bb.o: machine type must be wasm32
.If I change the emsdk to
emsdk_installer/1.39.13@bincrafters/stable
however, then runningbuild.sh
produces this output and errors:I am unsure whether this is a bug, or not meant to work in the first place, or exactly what this means?
However it all works with
emsdk_installer/1.38.29@bincrafters/stable
.Ubuntu 18.10 x64, conan 1.27.1
emsdk_installer/1.39.6@bincrafters/stable
error: