epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
315 stars 104 forks source link

wasm compilation does not result in .wasm file #2621

Open StLeonidas opened 1 week ago

StLeonidas commented 1 week ago

I am using the instruction from https://github.com/epam/Indigo

Each tool is installed including Python, cmake, ninja, emscripten All build comments seem to be fine (see below, tried for Linux and win) but the .wasm file is not generated. Subfolders of build do not contain any .wasm file or associated .js files

that is what I get in Linux (Ubuntu 22)

Linux configure: cmake .. -DZLIB_LIBRARY=/usr/lib/x86_64-linux-gnu/libz.so -DZLIB_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu -DCMAKE_BUILD_TYPE=Debug -G Ninja -DCMAKE_TOOLCHAIN_FILE=/usr/share/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/node;--experimental-wasm-threads -- Enabling BUILD_INDIGO_WRAPPERS_PYTHON, BUILD_INDIGO_WRAPPERS_JAVA, BUILD_INDIGO_WRAPPERS_DOTNET because BUILD_INDIGO_WRAPPERS=ON -- Enabling BUILD_BINGO_POSTGRES, BUILD_BINGO_SQLSERVER, BUILD_BINGO_ORACLE because BUILD_BINGO=ON -- Emscripten build: Disabling all except indigo-ketcher and indigo-wasm, and enabling them -- ENABLE_TESTS=OFF -- BUILD_STANDALONE=ON -- BUILD_INDIGO=ON -- BUILD_INDIGO_WRAPPERS=OFF -- BUILD_INDIGO_WRAPPERS_PYTHON=OFF -- BUILD_INDIGO_WRAPPERS_JAVA=OFF -- BUILD_INDIGO_WRAPPERS_DOTNET=OFF -- BUILD_INDIGO_UTILS=OFF -- BUILD_BINGO_POSTGRES=OFF -- BUILD_BINGO_SQLSERVER=OFF -- BUILD_BINGO_ORACLE=OFF -- BUILD_BINGO_ELASTIC=OFF -- DIST_DIRECTORY=/src/Indigo/cmake/../dist -- CMAKE_C_FLAGS= -c -fexceptions -s DISABLE_EXCEPTION_CATCHING=0 -s USE_SDL=0 -s USE_SDL_IMAGE=0 -s USE_SDL_TTF=0 -s USE_SDL_NET=0 -s -fvisibility=hidden -- CMAKE_CXX_FLAGS= -c -fexceptions -s DISABLE_EXCEPTION_CATCHING=0 -s USE_SDL=0 -s USE_SDL_IMAGE=0 -s USE_SDL_TTF=0 -s USE_SDL_NET=0 -s -fvisibility=hidden -fvisibility-inlines-hidden -- CMAKE_C_FLAGS_DEBUG=-g3 -- CMAKE_CXX_FLAGS_DEBUG=-g3 -- CMAKE_C_COMPILER=/usr/bin/emcc -- CMAKE_CXX_COMPILER=/usr/bin/em++ -- OS=emscripten -- ARCH=x86 -- Using local version of png -- Using local version of inchi -- Using local version of rapidjson -- Using local version of z -- Using local version of tinyxml2 -- Using local version of pixman -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Using local version of cairo -- Using local version of object_threadsafe -- Found Git: /usr/bin/git (found version "2.34.1") -- Indigo full version: 1.27.0-dev.1.7-g5b4187512 -- Configuring done -- Generating done -- Build files have been written to: /src/Indigo/build

That is what I get in Windows (11) configure: cmake .. -DPKG_CONFIG_EXECUTABLE=C:\cygwin64\bin\pkgconf.exe -DZLIB_LIBRARY=D:\datagrok\vcpkg\packages\zlib-x64-windows\lib -DZLIB_INCLUDE_DIR=D:\datagrok\vcpkg\packages\zlib-x64-windows -DCMAKE_BUILD_TYPE=Debug -G Ninja -DCMAKE_TOOLCHAIN_FILE=D:\datagrok\emsdk\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=D:/datagrok/emsdk/node/20.18.0_64bit/bin/node.exe CMake Warning (dev) at CMakeLists.txt:5 (project): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it. CMake Deprecation Warning at CMakeLists.txt:6 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Enabling BUILD_INDIGO_WRAPPERS_PYTHON, BUILD_INDIGO_WRAPPERS_JAVA, BUILD_INDIGO_WRAPPERS_DOTNET because BUILD_INDIGO_WRAPPERS=ON -- Enabling BUILD_BINGO_POSTGRES, BUILD_BINGO_SQLSERVER, BUILD_BINGO_ORACLE because BUILD_BINGO=ON -- Emscripten build: Disabling all except indigo-ketcher and indigo-wasm, and enabling them -- ENABLE_TESTS=OFF -- BUILD_STANDALONE=ON -- BUILD_INDIGO=ON -- BUILD_INDIGO_WRAPPERS=OFF -- BUILD_INDIGO_WRAPPERS_PYTHON=OFF -- BUILD_INDIGO_WRAPPERS_JAVA=OFF -- BUILD_INDIGO_WRAPPERS_DOTNET=OFF -- BUILD_INDIGO_UTILS=OFF -- BUILD_BINGO_POSTGRES=OFF -- BUILD_BINGO_SQLSERVER=OFF -- BUILD_BINGO_ORACLE=OFF -- BUILD_BINGO_ELASTIC=OFF CMake Deprecation Warning at cmake/setup.cmake:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. Call Stack (most recent call first): CMakeLists.txt:111 (include) -- DIST_DIRECTORY=D:/datagrok/Indigo/cmake/../dist -- CMAKE_C_FLAGS= -c -fexceptions -s DISABLE_EXCEPTION_CATCHING=0 -s USE_SDL=0 -s USE_SDL_IMAGE=0 -s USE_SDL_TTF=0 -s USE_SDL_NET=0 -s -fvisibility=hidden -- CMAKE_CXX_FLAGS= -c -fexceptions -s DISABLE_EXCEPTION_CATCHING=0 -s USE_SDL=0 -s USE_SDL_IMAGE=0 -s USE_SDL_TTF=0 -s USE_SDL_NET=0 -s -fvisibility=hidden -fvisibility-inlines-hidden -- CMAKE_C_FLAGS_DEBUG=-g3 -- CMAKE_CXX_FLAGS_DEBUG=-g3 -- CMAKE_C_COMPILER=D:/datagrok/emsdk/upstream/emscripten/emcc.bat -- CMAKE_CXX_COMPILER=D:/datagrok/emsdk/upstream/emscripten/em++.bat -- OS=emscripten -- ARCH=x86 CMake Deprecation Warning at third_party/libpng/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using local version of png CMake Deprecation Warning at third_party/cppcodec/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at third_party/inchi/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using local version of inchi CMake Deprecation Warning at third_party/rapidjson/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using local version of rapidjson CMake Deprecation Warning at third_party/zlib/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using local version of z CMake Deprecation Warning at third_party/tinyxml2/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using local version of tinyxml2 CMake Deprecation Warning at third_party/pixman/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using local version of pixman CMake Deprecation Warning at third_party/freetype/CMakeLists.txt:111 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Found PkgConfig: C:/cygwin64/bin/pkgconf.exe (found version "2.3.0") -- Found ZLIB: D:\datagrok\vcpkg\packages\zlib-x64-windows\lib -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for fcntl.h -- Looking for fcntl.h - found CMake Deprecation Warning at third_party/cairo/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using local version of cairo CMake Deprecation Warning at third_party/object_threadsafe/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using local version of object_threadsafe CMake Deprecation Warning at core/indigo-core/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at core/render2d/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at api/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.47.0.windows.1") -- Indigo full version: 1.27.0-dev.1.0-g05c000add CMake Deprecation Warning at api/c/indigo/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at api/c/indigo-inchi/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at api/c/indigo-renderer/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at api/c/bingo-nosql/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at api/cpp/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at api/wasm/indigo-ketcher/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Configuring done (5.3s) -- Generating done (0.1s) -- Build files have been written to: D:/Indigo/build

AlexanderSavelyev commented 3 days ago

did you run make after cmake? or cmake --build . --config Release --target indigo-ketcher-package -- -j $(nproc)

result files will be compiled into dist/ folder