codecbox.js
codecbox.js copied to clipboard
Unable to build codecBox.js
Hi @duanyao
I had followed your methods to build project as follows.
-
I have installed emscriptm package in linux
-
And then i had cloned the project and run
npm install
-
Then i installed grunt npm module globally by using this command
npm install grunt -g --save
-
Then i run command
grunt init --force
(because it was exited last time when running same command without -- force) -
After running above command i got done message with some warning.
-
Next i executed
grunt build
command but shows warning in between process and finally it throws error like this
`
Running "exec:configure-x264" (exec) task
Failed with: Error: spawn /bin/sh ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:77:11) { errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn /bin/sh', path: '/bin/sh', spawnargs: [Array], cmd: 'emconfigure ./configure --disable-thread --disable-asm --disable-opencl --host=i686-pc-linux-gnu --disable-cli --enable-shared --disable-gpl --prefix=/home/gokul/testingZone/codecbox.js/build/dist' } Warning: Task "exec:configure-x264" failed. Use --force to continue.
` How to fix the above errors. Kindly provide steps to overcome this issue.
grunt init
mainly clones source repos. If this step reports errors or warnings, some repos may not have been cloned properly. Check whether build/x264
dir exists and contains x264 source codes. If not, running grunt init --force
again may help.
The error you saw is due to changed x264 repo url. Edit Gruntfile.js
, change to 'git://git.videolan.org/x264.git' to 'https://code.videolan.org/videolan/x264.git'.
Hi @duanyao ,
Thanks for reply,
After the above given correction the command was executed successfully.Now grunt build-ffmpeg
command completed without errors.but if i run grunt build-codecbox
command was aborted due to warnings as shown below.
Kindly provide steps to overcome this issue.
The error in grunt build-codecbox
is due to emcc changes. I updated my codes to align with current emscripten, ffmpeg, etc., see c31de35d32cc9e3f01dd577b3c27df7f24e599ed.
The error in
grunt build-codecbox
is due to emcc changes. I updated my codes to align with current emscripten, ffmpeg, etc., see c31de35.
@duanyao Thanks Much ! I am able to produce codecbox.js without any errors, Further below Changes is what helped me to integrate my project Successfully
https://github.com/duanyao/codecbox.js/blob/c31de35d32cc9e3f01dd577b3c27df7f24e599ed/src/codecbox-decoder-worker.js#L12