Re: help with converting library to JS

2018-04-12 Thread Peter
my current errors are: during emcmake .. from sub directory: [root@osboxes _buikd]# /home/osboxes/emsdk/emscripten/1.37.36/emcmake .. emconfigure is a helper for configure, setting various environment variables so that emcc etc. are used. Typical usage: emconfigure ./configure [FLAGS]

Re: help with converting library to JS

2018-04-12 Thread Peter
Hello again, so I try to do as you told and now i have something like this: https://github.com/marwin1991/libamtrackforjs If someone could look at cmake and tell me if its good :) W dniu czwartek, 5 kwietnia 2018 08:44:06 UTC+2 użytkownik Peter napisał: > > Hello, I am working on application to

Re: help with converting library to JS

2018-04-05 Thread Floh
PS: I found out that using Ubuntu emescripten package also isn't the best idea > so now i am download it from git. > Best option is to use the official emsdk as described here: https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html -- You received this message

Re: help with converting library to JS

2018-04-05 Thread Floh
> So i should use this : https://github.com/GSL-for-JS/gsl-js or standar GSL? I would try standard GLS, and check whether gls-js was heavily modified to make it work on emscripten, but since it's mostly simple C code I guess it wasn't) > And using Ubuntu subsystem for Win is really bad idea

Re: help with converting library to JS

2018-04-05 Thread Peter
>Wait, here is the problem, a big fat FORTRAN source file: > > https://github.com/libamtrack/library/blob/master/thirdparty/cernlib/CERNLIBFUNS.f > >I don't think it's possible to get that through emscripten. So I have to remove it with all dependencies to this, right? -- You received this

Re: help with converting library to JS

2018-04-05 Thread Floh
...maybe a Fortran to C converter like this: http://cci.lbl.gov/fable/ would be solution..., but it might not be a trivial thing to do... On Thursday, 5 April 2018 10:16:57 UTC+2, Floh wrote: > > Wait, here is the problem, a big fat FORTRAN source file: > > >

Re: help with converting library to JS

2018-04-05 Thread Peter
Thank you for your replay. I found out that using Ubuntu emescripten package also isn't the best idea so now i am download it from git. About GSL So i should use this : https://github.com/GSL-for-JS/gsl-js or standar GSL? And using Ubuntu subsystem for Win is really bad idea for dealing with

Re: help with converting library to JS

2018-04-05 Thread Floh
Wait, here is the problem, a big fat FORTRAN source file: https://github.com/libamtrack/library/blob/master/thirdparty/cernlib/CERNLIBFUNS.f I don't think it's possible to get that through emscripten. On Thursday, 5 April 2018 10:12:12 UTC+2, Floh wrote: > > (1) I would try to start with a pure

Re: help with converting library to JS

2018-04-05 Thread Floh
(1) I would try to start with a pure GSL source repo, not the gsl-js repo (this provides a precompiled .js blob callable from Javascript, but it looks like you need GSL as a normal C library to be compiled with libamtrack. (2) the main problem here which I don't understand is why it's trying