Skip to content

Trying to create an html5 build with wav audio files on an Ubuntu based linux machine produces an error #1535

Description

@jrdoughty

Describe the bug
Trying to create an html5 build with wav audio files on an Ubuntu based linux machine produces the following error:
node:internal/process/promises:394
triggerUncaughtException(err, true /* fromPromise */);
^

[Error: ENOENT: no such file or directory, stat 'build/html5/klack.ogg'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: 'build/html5/klack.ogg'
}

To Reproduce
Steps to reproduce the behavior:

  1. Clone Blocks from heaven on an Ubuntu 24.04 (or more recent) machine git clone https://github.com/Kha-Samples/BlocksFromHeaven.git --recursive
  2. run node Kha/make html5 from BlocksFromHeaven root directory
  3. You'll receive the following:
    Using Kha (0426d80) from /home/john/Documents/BlocksFromHeaven/Kha
    Creating Kha project.
    Exporting asset 1 of 13 (block_blue.png).
    Exporting asset 2 of 13 (block_green.png).
    Exporting asset 3 of 13 (block_orange.png).
    Exporting asset 4 of 13 (block_purple.png).
    Exporting asset 5 of 13 (block_red.png).
    Exporting asset 6 of 13 (block_violet.png).
    Exporting asset 7 of 13 (block_yellow.png).
    Exporting asset 8 of 13 (board.png).
    Exporting asset 9 of 13 (klack.wav).
    node:internal/process/promises:394
    triggerUncaughtException(err, true /* fromPromise */);
    ^

[Error: ENOENT: no such file or directory, stat 'build/html5/klack.ogg'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: 'build/html5/klack.ogg'
}

Node.js v22.22.1

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Execution Environment:

  • Host system (where you compile your code): Kubuntu 26.04, 5800x3d, 32gb ram, 9070 xt
  • Target system (where you run your code): HTML5/Chrome
  • IDE used (if any): VSCodium/Terminal
  • Kha revision:kodetech.kha-25.8.0-universal/
  • Kha build output (Using Kha...):
    Using Kha (0426d80) from /home/john/Documents/BlocksFromHeaven/Kha
    Creating Kha project.
    Exporting asset 1 of 13 (block_blue.png).
    Exporting asset 2 of 13 (block_green.png).
    Exporting asset 3 of 13 (block_orange.png).
    Exporting asset 4 of 13 (block_purple.png).
    Exporting asset 5 of 13 (block_red.png).
    Exporting asset 6 of 13 (block_violet.png).
    Exporting asset 7 of 13 (block_yellow.png).
    Exporting asset 8 of 13 (board.png).
    Exporting asset 9 of 13 (klack.wav).
    node:internal/process/promises:394
    triggerUncaughtException(err, true /* fromPromise */);
    ^

[Error: ENOENT: no such file or directory, stat 'build/html5/klack.ogg'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: 'build/html5/klack.ogg'
}

Node.js v22.22.1

  • Application output (if it runs):

Additional context
problem is fixed by replacing oggenc and lame binaries with versions downloaded using apt install
prior to doing so oggenc would error when I'd run it ./oggenc: error while loading shared libraries: libFLAC.so.8: cannot open shared object file: No such file or directory
lame would work if i ran it from its directory, but would fail as part of the build citing the device missing libtinfo.so.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions