digitalmars.D.learn - need help to use Emscripten with LDC to build wasm projects
- Dakota (2/2) Aug 22 Is there a way to link ldc objects with Emscripten to build wasm
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (5/7) Aug 22 Some years a go, i was able to build and run my hobby game using
- monkyyy (4/6) Aug 22 yes; you'll have to untangle my build system
Is there a way to link ldc objects with Emscripten to build wasm binary ?
Aug 22
On Thursday, 22 August 2024 at 07:28:00 UTC, Dakota wrote:Is there a way to link ldc objects with Emscripten to build wasm binary ?Some years a go, i was able to build and run my hobby game using EMScripen. Things must be changed now. I drop the link here. I cannot help further since i don't work on it anymore. https://github.com/aferust/drawee
Aug 22
On Thursday, 22 August 2024 at 07:28:00 UTC, Dakota wrote:Is there a way to link ldc objects with Emscripten to build wasm binary ?yes; you'll have to untangle my build system https://github.com/crazymonkyyy/raylib-2024 It will always suck tho
Aug 22
On Thursday, 22 August 2024 at 21:19:57 UTC, monkyyy wrote:On Thursday, 22 August 2024 at 07:28:00 UTC, Dakota wrote:Hi Ferhat Kurtulmuş, monkyyy Thanks for the tips. I will check your both solution. I try`-mtriple=wasm32-emscripten-none` with ldc, get this druntime time error. any suggestions how to fix this? ```sh /ldc/bin/../import/core/stdc/stdio.d(31): Error: module `core.stdc.stdint` import `intptr_t` not found /ldc/bin/../import/core/stdc/stdio.d(1211): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1216): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1222): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1226): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1228): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1228): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1231): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1233): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1366): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1369): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1378): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1381): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1406): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1408): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1412): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1414): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1435): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1438): Error: undefined identifier `FILE` /ldc/bin/../import/core/stdc/stdio.d(1440): Error: undefined identifier `FILE` ```Is there a way to link ldc objects with Emscripten to build wasm binary ?yes; you'll have to untangle my build system https://github.com/crazymonkyyy/raylib-2024 It will always suck tho
Aug 22
On Friday, 23 August 2024 at 05:50:43 UTC, Dakota wrote:any suggestions how to fix this? ```sh /ldc/bin/../import/core/stdc/stdio.d(31): Error: module ```I dont use the std with wasm, everything imports everything else and there are just broken symbols deep in "core" that wont be fixed
Aug 23