New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to allow building wasm csound using emscripten, cmake and vckpg #1797
base: develop
Are you sure you want to change the base?
Changes to allow building wasm csound using emscripten, cmake and vckpg #1797
Conversation
44dde6e
to
017ae7b
Compare
017ae7b
to
f3aa042
Compare
d1ca684
to
a1724a1
Compare
Are you using the Emscripten wrapper for CMake, as you should be? I.e.
"emcmake cmake ..."
Regards,
Mike
…-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
On Wed, Dec 27, 2023 at 8:05 PM werner mendizabal ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In CMakeLists.txt
<#1797 (comment)>:
> @@ -12,7 +12,9 @@ option(USE_VCPKG "Use VCPKG to download and manage dependencies" OFF)
if (USE_VCPKG)
# Detect correct triplet based on CMake env
- if (WIN32)
+ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
The variable EMSCRIPTEN was not available here. Maybe I'm missing
something when configuring cmake?
—
Reply to this email directly, view it on GitHub
<#1797 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIGJM5QPP7ZEEQE67DM7DYLTAULAVCNFSM6AAAAABA62NW3OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOOJXGU4DMNZRHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I'm just back from holidays but won't be able to review until next week. We
previously built Csound with Emscripten and as far as I know it still
builds in csound6 branch. I'm curious why there are so many changes here.
Will comment further when I have a chance to look at this further.
…On Wed, Dec 27, 2023 at 8:05 PM werner mendizabal ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In CMakeLists.txt
<#1797 (comment)>:
> @@ -12,7 +12,9 @@ option(USE_VCPKG "Use VCPKG to download and manage dependencies" OFF)
if (USE_VCPKG)
# Detect correct triplet based on CMake env
- if (WIN32)
+ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
The variable EMSCRIPTEN was not available here. Maybe I'm missing
something when configuring cmake?
—
Reply to this email directly, view it on GitHub
<#1797 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMMA67HTOSTXP6ZDAZ75I3YLTAUDAVCNFSM6AAAAABA62NW3OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOOJXGU4DMNZRHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
The existing wasm build found in the The changes in this pull request use vcpkg and emscripten compiler to create the wasm build. |
91a5380
to
0d45a23
Compare
Created a pull request to update vcpkg libflac microsoft/vcpkg#36080. Once merged the local libflac port can be removed. |
6f2fe68
to
4a34aae
Compare
7cb8433
to
582a782
Compare
@kunstmusik how are we with this PR? Ready to merge? |
Took a look at this now and tried to reproduce the build locally on macOS. Installed emsdk and got through configuration and then tried to build: stevenyi@stevens-MacBook-Pro cs7-prs % cmake --build build --config Release Guessing this PR needs changes for macOS. I was able to build our current nix-based WASM build from this branch though have not tested yet what was built. Sidenote: @vlazzarini I saw we have a lot of preprocessor checks for NACL. I think these could be removed. Also, there is a mixture now in our codebase between checking wasm and wasi. Haven't checked, but I wonder if we can normalize on one (i.e., will our nix-based build work if we just check for wasm ?). cc: @hlolli |
Also to note, I saw a number of messages in the github actions build regarding data sizes for LONG and others. I seem to remember we patched some code back regarding sizes when we used Emscripten in CS6. Not sure what to make of this yet, but I wanted to note it here. |
working on these now. |
582a782
to
64c35e9
Compare
ef97493
to
fa08893
Compare
6fcab20
to
24fe223
Compare
24fe223
to
af642b3
Compare
Changes to allow building wasm csound using emscripten, cmake and vckpg