Post by jdforce on Jan 15, 2021 2:13:53 GMT
Hi,
Just purchased basic4GL Mobile to take advantage of the web assembly export.
It seems that the basic4GL Mobile is not compatible with any recent version of emscripten, so the build never succeeds. Tested with emscripten latest builds and did go back up to 1.38.30.
Since the output keeps failing with "path not found", I went to the build file that B4GLM generates, (build.bat) and tested it right from the windows command line.
First problem is that the path where the compiler emcc.bat is located is different in reality than the path that basic4GL puts in the build.bat file.
Real path: c:/dev/emsdk/emscripten/incoming/emcc.bat
B4GLM generated path in build.bat is c:/dev/emsdk/emscripten/incoming/emcc.bat <a bunch of arguments>
(the forward slash does not seem to be a problem)
So I changed the path to the correct one, and when running in the command prompt it does trigger the compiler. But after some time, the compilation fails with the error: WASM must be 32 or 64 bits.
I installed and activated older versions, and basically with any version newer than 1.38.33 the compiler fails the same. With older versions, the error list is really long, but all of them point to the "structure of the assembly", which I think is the projectname.bc file generated by basic4gl.
There is pretty much nothing I can do past this point, so I kindly request Tom to update this so it can use the latest emscripten.
The way I installed emscripten is the way they recommend, which is via git, install a version, activate. emscripten. I didn´t build emscripten, since it basically seems to install prebuilt binaries using this method, and they have the build yourself option as that, optional.
Thanks,
JD
Just purchased basic4GL Mobile to take advantage of the web assembly export.
It seems that the basic4GL Mobile is not compatible with any recent version of emscripten, so the build never succeeds. Tested with emscripten latest builds and did go back up to 1.38.30.
Since the output keeps failing with "path not found", I went to the build file that B4GLM generates, (build.bat) and tested it right from the windows command line.
First problem is that the path where the compiler emcc.bat is located is different in reality than the path that basic4GL puts in the build.bat file.
Real path: c:/dev/emsdk/emscripten/incoming/emcc.bat
B4GLM generated path in build.bat is c:/dev/emsdk/emscripten/incoming/emcc.bat <a bunch of arguments>
(the forward slash does not seem to be a problem)
So I changed the path to the correct one, and when running in the command prompt it does trigger the compiler. But after some time, the compilation fails with the error: WASM must be 32 or 64 bits.
I installed and activated older versions, and basically with any version newer than 1.38.33 the compiler fails the same. With older versions, the error list is really long, but all of them point to the "structure of the assembly", which I think is the projectname.bc file generated by basic4gl.
There is pretty much nothing I can do past this point, so I kindly request Tom to update this so it can use the latest emscripten.
The way I installed emscripten is the way they recommend, which is via git, install a version, activate. emscripten. I didn´t build emscripten, since it basically seems to install prebuilt binaries using this method, and they have the build yourself option as that, optional.
Thanks,
JD