>From that ;!<arch> prefix, I think it might be embedding a binary .a file

https://en.wikipedia.org/wiki/Ar_(Unix)#File_signature

What may be happening is the build system emits output.a, a library in .a
form. To get the emscripten output you need to compile that with emcc, to
get js+wasm,

https://emscripten.org/docs/compiling/Building-Projects.html#integrating-with-a-build-system

(Btw, is the build system expected to emit a .a library? Is there no main
program that the library would be linked with?)

On Fri, Oct 18, 2019 at 9:30 AM Arthuro555 <[email protected]> wrote:

> I tried to change some stuff in the codebase of gdevelop (
> github.com/4ian/GDevelop). It is a JavaScript project that uses a C++
> core. I added a mothod to a C++ Class and Tried to get it to the rest in
> JavaScript, with the default build system that uses EMscripten. But the
> emscripten generated code is very weird. This is the official precompiled
> gdevelop c++ file:
> https://s3.amazonaws.com/gdevelop-gdevelop.js/master/latest/libGD.js  But
> my version ( I pasted only the first few lines ) looks like this:
> https://pastebin.com/M8kACk5n . Mine doesn't look like javascript and
> also doesn't work. Any idea how I can fix this problem? I use the latest
> version of emscripten, I am on windows, the compiling process uses cmake
> from an Anaconda env and make from MinGW and nodeJS, and of course
> emscripten.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/210320d0-f93b-4634-879a-0e9c0ff5379d%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/210320d0-f93b-4634-879a-0e9c0ff5379d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpSVhLwobvLp93YDrUCKPxk9C9e8RGOMQ54jPk7sey%2Bepg%40mail.gmail.com.

Reply via email to