problem when compile #10
Comments
Thanks for submitting this issue. What Emscripten SDK version are you using? Try dl the latest one from https://emscripten.org/docs/getting_started/downloads.html. I successfully compiled this project using the latest Emscripten SDK a couple of weeks ago. What cmake version are you using? |
Yes, I used the latest Emscripten SDK. And my cmake version is 3.13.3. Now I can compile by using 'emcmake cmake..', but when I 'make -j4' ,it reported many errors:
|
I'm having difficulty reproducing your errors. I updated emsdk to the latest version (per https://emscripten.org/docs/getting_started/downloads.html, I pulled the latest changed and ran "./emsdk install latest", "./emsdk activate latest", "source ./emsdk_env.sh"). Cloned a clean copy of tpm-js, initialized submodules ("git submodule update --init"), and built it with: You were right about changing "emconfigure cmake .." to "emcmake cmake ..", I also got that error. Maybe you're missing "build-essential" package? Note that if you only want to go through the code-labs, TPM-JS live web site is at: https://google.github.io/tpm-js/. Unless you want to change the codelabs, there's no real need to rebuild the project. |
Thanks for your help. If it's convenient for you, please provide docker image to me. I want to learn this framework, but I met lots of problems when building, even though I used the same instructions as you did above. Sorry for bothering. |
I added an emsdk Dockerfile and a couple of helper shell scripts in 77d7b80. Please pull, delete your "build-web" dir if you have any and run: The first prepares the Docker image, creates 'build-web' directory, and invokes cmake in the Docker image. You need to run this only once. The second runs make in the Docker image. Please give it a try. |
I think groupadd command use -g to add a new group that has a new gid, but $group gid may have been used, will it cause an error?And the second command useradd -u may be the same. |
These are arguments set by dcmake.sh and dmake.sh. Please look at the shell scripts. |
Sorry, arguments set by dinit.sh when it builds the image: docker build |
Yes.
User is current user's uid, and group is current user's gid, so in dockerfile,useradd and groupadd may cause error 'uid is not unique' and 'gid is not unique'.Because they are used.When I compile ,it's actually like this. After I change them, it can work normally now and I can run the web. |
I'm glad it works for you. Thanks for your interest in this project. |
Sorry for bothering.When I tried to use the command "emconfigure cmake ..",it reports error: use 'emcmake' rather then 'emconfigure' for cmake projects. So I used ' emcmake cmake ..', it also report error,like the following:
configure: cmake .. -DCMAKE_TOOLCHAIN_FILE=/home/samfisher/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="/home/samfisher/emsdk/node/12.9.1_64bit/bin/node"
CMake Warning at third_party/googletest/googlemock/CMakeLists.txt:43 (project):
VERSION keyword not followed by a value or was followed by a value that
expanded to nothing.
CMake Warning at third_party/googletest/googletest/CMakeLists.txt:54 (project):
VERSION keyword not followed by a value or was followed by a value that
expanded to nothing.
-- Checking for module 'libunwind-generic'
-- No package 'libunwind-generic' found
libunwind not found. Disabling unwind tests.
CMake Error at third_party/boringssl/CMakeLists.txt:51 (message):
Could not find Go
-- Configuring incomplete, errors occurred!
See also "/home/samfisher/test/tpm-js/bulid-web/CMakeFiles/CMakeOutput.log".
See also "/home/samfisher/test/tpm-js/bulid-web/CMakeFiles/CMakeError.log".
The text was updated successfully, but these errors were encountered: