An updated version of the Add-On is underdevelopment that will provide easy settings of the configuration flags, including the compiler optimizations. As a work around, you can use the MATLAB coder app. In the configurations, select the "Emscripten" toolchain. You can then set and add additional compilation flags and arguments; including the compiler optimizations. Please feel free to reach out to me though the email contact information provided in the installed Add-On if you need any further help.
My initial guess is that the emscripten binaries need to be recompiled for your host computer architecture AMD64, see https://emscripten.org/docs/building_from_source/index.html. Please feel free to reach out to me though the email contact information provided in the installed Add-On for help with this process.
Hi there, please advice - is it possible to make changes to the compilation flags used by Emscripten using this add-on?
c:\Users\lee\Desktop\emsdk>emsdk install latest
Warning: unknown machine architecture AMD64
Error: No tool or SDK found by name 'sdk-releases-fastcomp-7b4b328af02eafbc857b8ca1e3d9b12dddc56ef7-64bit'.
Could you please advise
⚠ For Add-On version 1.0.3 and before, on Windows, install the archived emsdk-1.12.0-full-64bit from the archived releases at the bottom of the downloads page, https://emscripten.org/docs/getting_started/downloads.html, instead of the git installation.
Can you provide more detail on the problem you had with the installation?
On Windows 10, the steps should be almost exactly as follows:
1. In Windows 10, install Emscripten
C:\Users\<user>\Desktop> git clone https://github.com/emscripten-core/emsdk.git
C:\Users\<user>\Desktop> cd emsdk
C:\Users\<user>\Desktop> emsdk install latest
C:\Users\<user>\Desktop> emsdk activate latest
3. In MATLAB, open the Setup.mlx by running:
4. Follow steps 3 to 6 in Setup.mlx
Please reach out if any of the above does not work. Please include any error message that is thrown.
I still couldn't install it correctly, haha. I'm using windows 10
Thank you for the feedback. An update, v1.0.3, has corrected the typos in the examples.
Can you provide more information on the specific issues experienced in installation process? I would like to better understand and, in the future, potentially correct these issues.
Please fix the typo in the example
>> server = webcoder.utilities.DeploymentServer("Port",8000)
it should be
>>server = webcoder.utilities.DevelopmentServer("Port",8000)
I spent a long time to figure this out. Plus...the entire installation process was a headache.
On Mac OSX, emscripten setup is done with bash scripts, so webcoder.setup.verifyThirdPartyTools failed with an error "BASH_SOURCE Undefined variable". You'll want to set MATLAB's shell to bash using something like: export MATLAB_SHELL=`which bash` before you verify.
Fix to the missing Toolchain issue.
Fixed issue that limited function name size.
Installation updated to support the Fastcomp update to Emscripten SDK.
Added checks on setup and fix typos in examples.
Update to title to add spaces for improved web search
Fix to icon.