You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I want to compile a C++ Cmake-project on Windows with emscripten to WebAssembly. I was able to successfully use the Qt 6.6.2 WebAssembly (single-threaded) Kit. Therefore i installed zlib and assimp via vcpkg and emcmdprompt and also added the toolchain like this: set(CMAKE_TOOLCHAIN_FILE "C:...\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake") in my Cmake-File right at the top
I also set the VCPKG_CHAINLOAD_TOOLCHAIN_FILE in the initial configuration to the Path
I get the following ninja build error when trying to build wasm-ld: error: --shared-memory is disallowed by 3DSLoader.cpp.o because it was not compiled with 'atomics' or 'bulk-memory' features
The problem seems to be that the pthreads option does not seem to be enabled on assimp. I tried to check if there was such an option on installation with vcpkg in
I need to mention that I am fairly new to everything on this topic, so feel free to correct me on anything i might have done wrong.
To Reproduce
Steps to reproduce the behavior:
I have installed the following programs/packages:
CMake 3.29.0
Python 3.12.2 (64-bit)
Qt Creator 12.0.2 with Qt 6.6.2
emscripten package 3.1.37
vcpkg for windows
zlib and assimp via emcmdprompt and wasm32-emscripten.cmake triplet
Then i set the Variables and included assimp in Cmake.
Expected behavior
The Qt 6.6.2 multithreading Kit (with emsdk 3.1.37) compiles the assimp Library with pthreads enabled. Screenshots
Platform (please complete the following information):
OS: Windows 10
Browser Google Chrome Version 123.0.6312.106 (64-Bit)
Additional information
This is CmakeLists.txt where i see the most potential in fixing or me being the problem.
I one tried ther set(WASM_BUILD_FLAGS) but could not find any proper documentation on using it like here? emscripten-core/emscripten#20129
I also tried the -pthread option on target_compile_options.
Describe the bug
I want to compile a C++ Cmake-project on Windows with emscripten to WebAssembly. I was able to successfully use the Qt 6.6.2 WebAssembly (single-threaded) Kit. Therefore i installed zlib and assimp via vcpkg and emcmdprompt and also added the toolchain like this:
set(CMAKE_TOOLCHAIN_FILE "C:...\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake")
in my Cmake-File right at the topI also set the
VCPKG_CHAINLOAD_TOOLCHAIN_FILE
in the initial configuration to the PathAs soon as I switch from the single-threaded to the multi-threaded kit and change the VCPKG_CHAINLOAD_TOOLCHAIN_FILE accordingly to:
I get the following ninja build error when trying to build
wasm-ld: error: --shared-memory is disallowed by 3DSLoader.cpp.o because it was not compiled with 'atomics' or 'bulk-memory' features
The problem seems to be that the pthreads option does not seem to be enabled on assimp. I tried to check if there was such an option on installation with vcpkg in
I need to mention that I am fairly new to everything on this topic, so feel free to correct me on anything i might have done wrong.
To Reproduce
Steps to reproduce the behavior:
I have installed the following programs/packages:
Then i set the Variables and included assimp in Cmake.
Expected behavior
The Qt 6.6.2 multithreading Kit (with emsdk 3.1.37) compiles the assimp Library with pthreads enabled.
Screenshots
Platform (please complete the following information):
Additional information
This is CmakeLists.txt where i see the most potential in fixing or me being the problem.
I one tried ther set(WASM_BUILD_FLAGS) but could not find any proper documentation on using it like here?
emscripten-core/emscripten#20129
I also tried the -pthread option on target_compile_options.
The text was updated successfully, but these errors were encountered: