{"id":20255316,"url":"https://github.com/projectm-visualizer/examples-emscripten","last_synced_at":"2026-05-11T10:33:28.074Z","repository":{"id":72407264,"uuid":"458940475","full_name":"projectM-visualizer/examples-emscripten","owner":"projectM-visualizer","description":"Example code to show how to use projectM within WASM-based emscripten applications.","archived":false,"fork":false,"pushed_at":"2023-07-28T15:11:42.000Z","size":970,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T03:39:07.488Z","etag":null,"topics":["beatdrop","emscripten","milkdrop","projectm","wasm"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projectM-visualizer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-02-13T21:48:12.000Z","updated_at":"2024-04-23T10:52:43.000Z","dependencies_parsed_at":"2024-01-23T21:20:29.161Z","dependency_job_id":"9f7f5fee-c538-4a6d-a2a7-15c4e9b98f78","html_url":"https://github.com/projectM-visualizer/examples-emscripten","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectM-visualizer%2Fexamples-emscripten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectM-visualizer%2Fexamples-emscripten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectM-visualizer%2Fexamples-emscripten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectM-visualizer%2Fexamples-emscripten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectM-visualizer","download_url":"https://codeload.github.com/projectM-visualizer/examples-emscripten/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241709163,"owners_count":20007013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beatdrop","emscripten","milkdrop","projectm","wasm"],"created_at":"2024-11-14T10:38:04.505Z","updated_at":"2026-05-11T10:33:28.039Z","avatar_url":"https://github.com/projectM-visualizer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"projectM Emscripten Example\n===========================\n\nThis application is a sample entry point for the emscripten-built version of projectM.\n\nIt's a very basic application without many features.\n\n## Limitations\n\nemscripten builds of projectM only support building as a static library. Shared libraries are only simulated and\nbasically identical to static libraries.\n\nMultithreading and OpenMP support are disabled due to the lack of real multithreading capabilities in\nJavaScript/WebAssembly.\n\nThe build will use OpenGL ES 3.0, using `FULL_ES2` compatibility only.\n\n## Prepare for building\n\nDownload and build the emscripten SDK: https://emscripten.org/docs/getting_started/downloads.html\n\nNo other libraries are required as emscripten has everything built-in that is needed by projectM.\n\n## Configure and compile projectM\n\nCMake will auto-detect that emscripten is used for building as the toolchain sets `CMAKE_SYSTEM_NAME`\naccordingly. No other options need to be set except `CMAKE_INSTALL_PREFIX` if you plan to install the build results for\nfurther use.\n\nRunning these commands in projectM's source dir will configure and build projectM for Emscripten:\n\n```sh\nmkdir cmake-build-emscripten\ncd cmake-build-emscripten\nemcmake ..\nemmake\n```\n\nIf the build was successful, you will find the projectM_SDL_emscripten.html, .data, .js and .wasm files in\nthe `cmake-build-emscripten/src/projectM-emscripten`directory. The .data file includes all presets as a virtual\nfilesystem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectm-visualizer%2Fexamples-emscripten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectm-visualizer%2Fexamples-emscripten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectm-visualizer%2Fexamples-emscripten/lists"}