Using emrun to run emscripten apps.
Hi,
Is there anyway to use the emscripten 'emrun' utility to launch emscripten apps from within CLion?
I've tried changing the 'Executable' setting in the Run/Debug configuration to 'Custom Executable' and entering the full path to emrun for the custom executable path, but I then get this error:
~~~
"/home/marksibly/dev/emsdk/upstream/emscripten/emrun": not in executable format: file format not recognized
~~~
I assume this is because emrun is a script file, not a native executable , so I tried adding bash at the front but that results in:
~~~
File 'bash /home/marksibly/dev/emsdk/upstream/emscripten/emrun' not found in directory '/home/marksibly/dev/sgf/cmake-build-emscripten' Please specify working directory, or use absolute path for executable
~~~
Any other ideas?
Bye!
Mark
Please sign in to leave a comment.
Ok, I managed to get around this by hacking together a little C exe than simply uses the C library system() command to launch emrun, but it'd be convenient if CLion could let you use batch files as custom executables directly.
Hello!
In general it is possible to specify script as an executable in a run/debug configuration. As far as I know, Windows executes .bat, .com and .exe files by default. Is emrun marked as executable?
com.jetbrains.cidr.execution.
>com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver$GDBCommandException: "/home/marksibly/dev/emsdk/upstream/emscripten/emrun": not in executable format: file format not recognized
It's GDB error, not sure we can do something with it.
I thought you were trying to run the configuration, not to debug. Does running work?
>Toolchain settings page needs a 'toolchain file' setting IMO
Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-21087. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Thanks, I've added a comment to the 'tracker' you linked to above.