projectM-visualizer / examples-emscripten

Example code to show how to use projectM within WASM-based emscripten applications.
GNU Lesser General Public License v2.1
2 stars 1 forks source link

access refused while trying to build with emcmake #2

Closed jgarnierGit closed 5 months ago

jgarnierGit commented 5 months ago

Hi,

I am trying to build the project, and following the documentation https://emscripten.org/docs/getting_started/downloads.html, or using directly, https://hub.docker.com/r/emscripten/emsdk

I get the same error :

root@d9d58d178516:/src# cd examples-emscripten/
.git/                        LICENSE.md                   cmake-build-emscripten/
CMakeLists.txt               README.md                    projectM_SDL_emscripten.cpp
root@d9d58d178516:/src# cd examples-emscripten/cmake-build-emscripten/
root@d9d58d178516:/src/examples-emscripten/cmake-build-emscripten# emcmake ..
configure: .. -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/emsdk/node/18.20.3_64bit/bin/node
emcmake: error: '.. -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/emsdk/node/18.20.3_64bit/bin/node' failed: [Errno 13] Permission denied: '..'

Did I miss a step or a configuration outside the scope of this project ? Thank you in advance for the help you could provide Cheers, Jonathan

jgarnierGit commented 5 months ago

Found a way out based on https://github.com/evoyy/projectm-webgl-demo, Thank you for providing your code this was really inspiring and educational ! cheers, Jonathan