SDK won't work on Linux Arch

#1

After downloading the SDK from the official website (ArmorySDK-2019-06.zip), i installed the plugin on the system installation of blender, set the SDK path and tried to start blender’s default scene on the browser.

The first changes i had to make were to set some files as executable:

chmod +x ./Armory/Krom/krom
chmod +x ./Armory/nodejs/node-linux64
chmod +x ./Armory/nodejs/copysysbin.sh

Modified and executed the script to rename the nodejs executable

cp "$( dirname "${BASH_SOURCE[0]}" )"/node-linux64 "$( dirname "${BASH_SOURCE[0]}" )"/node

Copied the Kha file make.sh to make (because Armory it doesn’t launch make.sh, but make):

cp Armory/Kha/make.sh Armory/Kha/make

Now if i try to start the scene on the browser directly from the Play button, i get in the system console an error while starting the bash script “make”:

Armory v2019.6 ($Id: 1669fe81d52283ecb6ecd4c6c8f0c8ca6770fadb $)
OS: linux, Target: html5, GAPI: webgl, Blender: 2.80 (sub 74)
Exporting Scene
Scene exported in 0.11207175254821777
Exported modules: ['audio', 'ui']
Shader flags: ['_Irr', '_EnvCol', '_Deferred', '_ShadowMap', '_CSM', '_SinglePoint', '_SMAA', '_SSAO']
Khafile flags: ['arm_deferred', 'arm_csm', 'rp_hdr', 'rp_renderer=Deferred', 'rp_shadowmap', 'rp_shadowmap_cascade=1024', 'rp_shadowmap_cube=512', 'rp_background=World', 'rp_render_to_texture', 'rp_compositornodes', 'rp_antialiasing=SMAA', 'rp_supersampling=1', 'rp_ssgi=SSAO']
Running:  ['/home/alfio/Projects/Blender/Plugins/Armory//nodejs/node-linux64', '/home/alfio/Projects/Blender/Plugins/Armory//Kha/make', 'html5', '-g', 'webgl', '--shaderversion', '300', '--parallelAssetConversion', '4', '--to', 'build_untitled/debug']
Using project from /home/alfio/Projects/Blender/Projects/ArmoryTest
/home/alfio/Projects/Blender/Plugins/Armory/Kha/make:2
directory=$(dirname "$BASH_SOURCE")
            ^^^^^^^

SyntaxError: missing ) after argument list
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:599:28)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
Finished in 0.26328325271606445
Build failed, check console
0 Likes